[341] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Quick bit of Kerberos 5 build lore: how to rebuild libkrb5.a....

tytso@ATHENA.MIT.EDU (tytso@ATHENA.MIT.EDU)
Tue Oct 16 17:45:16 1990

There was a fairly serious typo in my original message, so I've deleted
the root transaction of this discussion and reposted it here with the fix:

Subject: Quick bit of Kerberos 5 build lore:  how to rebuild libkrb5.a....
....without rebuilding all of the .o files.  This happened to me when
libkrb5.a somehow got corrupted, and I discovered to my dismay that even
"make clean;make libkrb5.a" is not enough to to generate a complete
libkrb5.a.  Worse yet, there's no way to discover that you do not have a
complete libkrb5.a until you try to link against an application, and you
discover that routines are missing.

In any case, here's the trick:

1)  rm /mit/krb5/build/@sys/lib/krb/libkrb5.a
    rm /mit/krb5/build/@sys/lib/krb/fookrb5
    rm /mit/krb5/build/@sys/lib/krb/*/fookrb5
    rm /mit/krb5/build/@sys/lib/krb/*/*/fookrb5

2)  But wait!  That's not all you have to do!  You also have to do:
	rm /mit/krb5/build/@sys/error_tables/fookrb5
		[this was originally missing ^^^^^^^]
     (not that this is *not* under /mit/krb5/build/@sys/lib/krb, so it's
     hard to find if you don't know about it)

3)  cd /mit/krb5/build/@sys/error_tables
    make

4)  cd /mit/krb5/build/@sys/lib/krb
    make

This took me quite a while to figure out.  (Probably just a little less
time than it would have to do a top-level make clean; make all.  :-)

home help back first fref pref prev next nref lref last post