[OpenAFS] Re: OpenAFS + Kerb5

Jeff Blaine jblaine@mitre.org
Wed, 22 Feb 2006 13:53:33 -0500


Jeffrey Altman wrote:
> Jeff Blaine wrote:
>>>> "aklog_main.c", line 204: #error: "You must have one of
>>>> krb5_524_convert_creds or krb524_convert_creds_kdc available"
>>>> cc: acomp failed for aklog_main.c
>>> When you built Kerberos 5 did you build it with Kerberos 4
>>> support?  That would be required for including krb524 support
>>> in aklog.
>> Last week, no, not explicitly.
>>
>> 3 hours ago, in an effort to make this error go away, yes.
>>
>> make distclean
>> ./configure --with-krb4 --blahblahblah
>> make
>> make install (into same old location)
> 
> MIT 1.4.x contains the functions that are required.  Make
> sure you are not linking to the wrong libkrb5.a

There's no other libkrb5\* on the entire machine according
to 'find'.

According to 'nm', /export/home/krb5/lib/libkrb5.so does
in fact have krb5_524_convert_creds

Here is the problem:

configure:8072: checking for krb5_524_convert_creds
configure:8100: /opt/SUNWspro/bin/cc -o conftest -g -O2 
-I/export/home/krb5/include -L/usr/rcf/lib -R/usr/rcf/lib conftest.c 
-lsocket -lnsl -L/export/home/krb5/lib -R/export/home/krb5/lib 
-L/usr/rcf/lib -R/usr/rcf/lib -lkrb5 -lk5crypto -lkrb5support -lcom_err 
-lresolv -lsocket -lnsl 1>&5
cc: Warning: option -2 passed to ld
/usr/ccs/bin/ld: illegal option -- 2

It would appear I was bitten once again by environment
variables being used during configure (?), but not during
the 'make' process.

Setting CC=/opt/SUNWspro/bin/cc and LD=/usr/ccs/bin/ld,
make distclean, and configure results in the success
below with proper command line options "determined
wherever"...

configure:8072: checking for krb5_524_convert_creds
configure:8100: /opt/SUNWspro/bin/cc -o conftest -g 
-I/export/home/krb5/include -L/usr/rcf/lib -R/usr/rcf/lib conftest.c 
-lsocket -lnsl -L/export/home/krb5/lib -R/export/home/krb5/lib 
-L/usr/rcf/lib -R/usr/rcf/lib -lkrb5 -lk5crypto -lkrb5support -lcom_err 
-lresolv -lsocket -lnsl 1>&5
configure:8072: checking for krb524_convert_creds_kdc
configure:8100: /opt/SUNWspro/bin/cc -o conftest -g 
-I/export/home/krb5/include -L/usr/rcf/lib -R/usr/rcf/lib conftest.c 
-lsocket -lnsl -L/export/home/krb5/lib -R/export/home/krb5/lib 
-L/usr/rcf/lib -R/usr/rcf/lib -lkrb5 -lk5crypto -lkrb5support -lcom_err 
-lresolv -lsocket -lnsl 1>&5