On Fedora a 20 box got the following linker errors during 'make check'.

* krb5 built from git master
* sssd git master
* Both built with --prefix=/opt/build ...

Attached is a patch which fixes the problem.

Cheers,

Stef

libtool: link: gcc -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith
-Wcast-qual -Wcast-align -Wwrite-strings
-Werror-implicit-function-declaration -fno-strict-aliasing -std=gnu99
-DUNIT_TESTING -O0 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -o .libs/ad_access_filter_tests
src/providers/ad_access_filter_tests-data_provider_be.o
src/providers/ad_access_filter_tests-data_provider_fo.o
src/providers/ad_access_filter_tests-data_provider_opts.o
src/providers/ad_access_filter_tests-data_provider_callbacks.o
src/providers/ad_access_filter_tests-dp_dyndns.o
src/providers/ad_access_filter_tests-dp_ptask.o
src/providers/ad_access_filter_tests-dp_refresh.o
src/providers/ad_access_filter_tests-fail_over.o
src/providers/ad_access_filter_tests-fail_over_srv.o
src/resolv/ad_access_filter_tests-async_resolv.o
src/resolv/ad_access_filter_tests-async_resolv_utils.o
src/util/ad_access_filter_tests-sss_ldap.o
src/util/ad_access_filter_tests-sss_krb5.o
src/util/ad_access_filter_tests-find_uid.o
src/util/ad_access_filter_tests-user_info_msg.o
src/providers/ad/ad_access_filter_tests-ad_common.o
src/tests/cmocka/ad_access_filter_tests-test_ad_access_filter.o  -lpam
-lcmocka -lcares -lkrb5 -lk5crypto -lcom_err ./.libs/libsss_util.so
-lpopt -lldb -ldbus-1 -lpcre -lini_config -lcollection -ldhash -llber
-lldap -ltdb -lglib-2.0 ./.libs/libsss_crypt.so -lssl3 -lsmime3 -lnss3
-lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread ./.libs/libsss_debug.so
./.libs/libsss_child.so -lsystemd-login ./.libs/libsss_ldap_common.so
./.libs/libsss_idmap.so ./.libs/libsss_krb5_common.so
./.libs/libsss_test_common.a -ltevent -ltalloc -ldl -Wl,-rpath
-Wl,/opt/build/lib64/sssd -Wl,-rpath -Wl,/opt/build/lib64
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_add_fmt@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_get_error@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_len@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_add@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_add_len@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_labeled_open@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_data@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_free_buf@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_free_error@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_init_fixed@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_labeled_fopen@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_pop_fscreatecon@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_vset_error_fl@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_push_fscreatecon_for@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_set_error_info_callout_fn@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_vset_error@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_init_dynamic@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_set_error@krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_clear_error@krb5support_0_MIT'

>From 03af4560413b3c47c70c7348607f9f7c9ee35078 Mon Sep 17 00:00:00 2001
From: Stef Walter <[email protected]>
Date: Tue, 7 Jan 2014 10:04:24 +0100
Subject: [PATCH] Fix libkrb5support.so dependencies in tests

Otherwise 'make check' fails with linker errors
---
 Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 4015dad..043a9cd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1407,7 +1407,7 @@ test_search_bases_LDADD = \
     $(POPT_LIBS) \
     $(SSSD_LIBS) \
     $(CARES_LIBS) \
-    $(KRB5_LIBS) \
+    $(KRB5_LIBS) -lkrb5support \
     $(SSSD_INTERNAL_LTLIBS) \
     $(SYSTEMD_LOGIN_LIBS) \
     libsss_ldap_common.la \
@@ -1432,7 +1432,7 @@ ad_access_filter_tests_LDADD = \
     $(CMOCKA_LIBS) \
     $(SSSD_LIBS) \
     $(CARES_LIBS) \
-    $(KRB5_LIBS) \
+    $(KRB5_LIBS) -lkrb5support \
     $(SSSD_INTERNAL_LTLIBS) \
     $(SYSTEMD_LOGIN_LIBS) \
     libsss_ldap_common.la \
@@ -1458,7 +1458,7 @@ ad_common_tests_LDADD = \
     $(CMOCKA_LIBS) \
     $(SSSD_LIBS) \
     $(CARES_LIBS) \
-    $(KRB5_LIBS) \
+    $(KRB5_LIBS) -lkrb5support \
     $(SSSD_INTERNAL_LTLIBS) \
     $(SYSTEMD_LOGIN_LIBS) \
     libsss_ldap_common.la \
-- 
1.8.4.2


_______________________________________________
sssd-devel mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to