[OpenAFS] Re:

Ted Creedon tcreedon@easystreet.net
Thu, 11 Aug 2016 16:57:32 +0000

-ldl is an output... not an argument

Apparently configure needs to be modded via KRB5_CONFIG=3D "krb5-config --d=
eps --libs" then rerun configure?
From: Ted Creedon
Sent: Thursday, August 11, 2016 9:42:10 AM
Cc: openafs-info@openafs.org
Subject: Re: [OpenAFS] Compile failure


whats the -ldl for in krb5-config?

From: Chaskiel Grundman <cg2v@andrew.cmu.edu>
Sent: Wednesday, August 10, 2016 8:08:01 AM
To: Benjamin Kaduk
Cc: Ted Creedon; openafs-info@openafs.org
Subject: Re: [OpenAFS] Compile failure

I rejected ted's reply because 2MB of logs seemed excessive. Here's a
relevant bit of the log:

configure:25263: gcc -c   conftest.c >&5
configure:25263: $? =3D 0
configure:25264: result: yes
configure:25301: checking size of long
configure:25320: result: 8
configure:25627: checking for krb5-config
configure:25658: result: /usr/heimdal/bin/krb5-config
configure:25668: checking for krb5 support in krb5-config
configure:25679: result: yes
configure:25695: checking for krb5_init_context
configure:25695: gcc -o conftest  -I/usr/heimdal/include    conftest.c
-Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/heimdal/lib64
-L/usr/heimdal/lib64 -lkrb5  >&5
configure:25695: $? =3D 0
configure:25695: result: yes
configure:26638: checking for krb5_get_error_message
configure:26638: gcc -o conftest  -I/usr/heimdal/include    conftest.c
-Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/heimdal/lib64
-L/usr/heimdal/lib64 -lkrb5  >&5
configure:26638: $? =3D 0
configure:26638: result: yes
configure:26645: checking for krb5_free_error_message
configure:26645: gcc -o conftest  -I/usr/heimdal/include    conftest.c
-Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/heimdal/lib64
-L/usr/heimdal/lib64 -lkrb5  >&5
configure:26645: $? =3D 0
configure:26645: result: yes

It suggests that krb5-config was used, but it only put -lkrb5 in
That's consistent with what I see on ubuntu trusty:

% krb5-config.heimdal --version
heimdal 1.6.99
% krb5-config.heimdal --libs
-L/usr/lib/x86_64-linux-gnu/heimdal -lkrb5

It apears to get the full set of libraries, you need to add --deps:

% krb5-config.heimdal --libs --deps
-L/usr/lib/x86_64-linux-gnu/heimdal -lkrb5 -lhx509 -lcom_err -lhcrypto
-lasn1 -lwind -lheimbase -lroken -lcrypt -pthread -lpthread -ldl -lresolv
-pthread -lpthread