compile fails again using the latest heimdal-master export|g -i krb declare -x KRB5_CONFIG="/usr/heimdal/bin/krb5-config --libs --deps" declare -x PATH_KRB5_CONFIG="/usr/heimdal/bin/krb5-config --libs --deps" ookpik:/data1/openafs-1.6.18.2 #
configure:27910: checking for krb5-config configure:27941: result: /usr/heimdal/bin/krb5-config --libs --deps configure:29042: checking for library containing res_search configure:29073: gcc -o conftest -I/usr/heimdal/include -L/usr/heimdal/lib conftest.c >&5 /tmp/cc8MEyGl.o: In function `main': conftest.c:(.text+0xa): undefined reference to `res_search' collect2: error: ld returned 1 exit status configure:29073: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "OpenAFS" | #define PACKAGE_TARNAME "openafs" | #define PACKAGE_VERSION "1.6.18.2" | #define PACKAGE_STRING "OpenAFS 1.6.18.2" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "openafs" | #define VERSION "1.6.18.2" | #define STDC_HEADERS 1 ________________________________________ From: openafs-info-ad...@openafs.org <openafs-info-ad...@openafs.org> on behalf of Ted Creedon <tcree...@easystreet.net> Sent: Thursday, August 11, 2016 9:42:10 AM Cc: openafs-info@openafs.org Subject: Re: [OpenAFS] Compile failure Thanks whats the -ldl for in krb5-config? ________________________________________ From: Chaskiel Grundman <c...@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: $? = 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 libs. 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 _______________________________________________ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info _______________________________________________ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info