[SSSD] Fix linker errors during 'make check'

Stef Walter stefw at redhat.com
Tue Jan 7 09:32:54 UTC 2014


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 at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_get_error at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_len at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_add at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_add_len at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_labeled_open at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_data at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_free_buf at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_free_error at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_init_fixed at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_labeled_fopen at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_pop_fscreatecon at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_vset_error_fl at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_push_fscreatecon_for at 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 at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_vset_error at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_buf_init_dynamic at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_set_error at krb5support_0_MIT'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libkrb5.so:
undefined reference to `krb5int_clear_error at krb5support_0_MIT'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-libkrb5support.so-dependencies-in-tests.patch
Type: text/x-patch
Size: 1222 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140107/a54d918f/attachment.bin>


More information about the sssd-devel mailing list