On Tue, Oct 29, 2002 at 03:34:31PM -0500, Brian Johnson wrote:

> Alan, I'm going to give your suggestion a try and see if it works for
> me.  In the meantime, I thought I'd post my config.log for Steve and
> anyone else interested to see if they can find out anything useful from
> it.  Here it is:

Ok.

> configure:974: checking for krb5_encrypt_data in -lk5crypto
> configure:993: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall 
>-D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings 
>-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
>-I/usr/kerberos/include conftest.c -lk5crypto  -lnsl -lresolv  -lpthread 1>&5
> configure:986: warning: function declaration isn't a prototype
> configure:988: warning: function declaration isn't a prototype
> /usr/bin/ld: cannot find -lk5crypto
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 982 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char krb5_encrypt_data();
> 
> int main() {
> krb5_encrypt_data()
> ; return 0; }

And this is the only time it checks for libk5crypto.  The problem is
that the test link does not include -L/usr/kerberos/lib, but should.
The error is the same for all the other Kerberos libraries being checked
for.

The --with-rlm-krb5-lib-dir option you used appears to be well-formed,
but the directory is not being picked up by the configure script.  This
appears to be a bug in the build scripts, and Alan's suggestion is
likely to be the best way to solve your immediate problem of getting it
running.  I'll take a look at the status of the module in CVS, and make
sure it gets fixed if it hasn't been already.

As for the problem you're having with the hand-hacked Makefile, you will
need to add -L/usr/kerberos/lib to the beginning of your LIBS line.

Steve Langasek
postmodern programmer

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to