[OpenAFS] Compile failure

Chaskiel Grundman cg2v@andrew.cmu.edu
Wed, 10 Aug 2016 11:08:01 -0400

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: $? = 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: $? = 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: $? = 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: $? = 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