On (20/10/16 06:58), Joakim Tjernlund wrote: >On Wed, 2016-10-19 at 21:48 +0200, Jakub Hrozek wrote: >> === SSSD 1.14.2 === >> >> The SSSD team is proud to announce the release of version 1.14.2 of >> the System Security Services Daemon. >> >> As always, the source is available from https://fedorahosted.org/sssd >> >> RPM packages will be made available for Fedora shortly. >> >> == Feedback == >> Please provide comments, bugs and other feedback via the sssd-devel >> or sssd-users mailing lists: >> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel >> https://lists.fedorahosted.org/mailman/listinfo/sssd-users >> > >hmm, I still get: >libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC >src/providers/krb5/.libs/libsss_krb5_la-krb5_init.o -Wl,-rpath >-Wl,/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs > -Wl,-rpath -Wl,/usr/lib64/sssd >-L/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs > -Wl,--as-needed -L/usr/lib64 ./.libs/libsss_util.so -lpopt -lldb -ldbus-1 >-lpcre /usr/lib64/libini_config.so /usr/lib64/libpath_utils.so >/usr/lib64/libbasicobjects.so /usr/lib64/libref_array.so >/usr/lib64/libcollection.so /usr/lib64/libldap.so /usr/lib64/liblber.so >-lresolv -lsasl2 -lgnutls /usr/lib64/libgcrypt.so -lgpg-error -ltdb -lglib-2.0 >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_child.so > >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_cert.so > >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_crypt.so > ./.libs/libsss_crypt.so -lcrypto ./.libs/libsss_debug.so >./.libs/libsss_child.so -ltevent -ltalloc >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_debug.so > ./.libs/libsss_krb5_common.so -lkeyutils /usr/lib64/libdhash.so -lkrb5 >-lk5crypto -lcom_err -O2 -Wl,-O1 -Wl,-soname -Wl,libsss_krb5.so -o >.libs/libsss_krb5.so >./.libs/libsss_util.so: undefined reference to `timer_settime' >./.libs/libsss_util.so: undefined reference to `timer_delete' >./.libs/libsss_util.so: undefined reference to `timer_create' >collect2: error: ld returned 1 exit status >libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wshadow -Wstrict-prototypes >-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wundef >-Werror-implicit-function-declaration -Winit-self -Wmissing-include-dirs >-fno-strict-aliasing -std=gnu99 -O2 -pipe -D_FILE_OFFSET_BITS=64 >-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wl,-O1 -o >.libs/sss_ssh_knownhostsproxy src/sss_client/sss_ssh_knownhostsproxy-common.o >src/sss_client/ssh/sss_ssh_knownhostsproxy-sss_ssh_client.o >src/sss_client/ssh/sss_ssh_knownhostsproxy-sss_ssh_knownhostsproxy.o >-Wl,-rpath -Wl,/usr/lib64 -Wl,--as-needed ./.libs/libsss_util.so -L/usr/lib64 >-lldb -ldbus-1 -lpcre /usr/lib64/libini_config.so /usr/lib64/libpath_utils.so >/usr/lib64/libbasicobjects.so /usr/lib64/libref_array.so >/usr/lib64/libcollection.so /usr/lib64/libldap.so /usr/lib64/liblber.so >-lresolv -lsasl2 -lgnutls /usr/lib64/libgcrypt.so -lgpg-error -ltdb -lglib-2.0 >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_child.so > >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_cert.so > >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_crypt.so > ./.libs/libsss_crypt.so -lcrypto ./.libs/libsss_debug.so >./.libs/libsss_child.so -ltevent /usr/lib64/libdhash.so >/var/tmp/portage/sys-auth/sssd-1.14.2/work/sssd-1.14.2-abi_x86_64.amd64/.libs/libsss_debug.so > -lpthread -ltalloc -lpopt -Wl,-rpath -Wl,/usr/lib64/sssd >Makefile:11323: recipe for target 'sss_ssh_authorizedkeys' failed >make[2]: *** [sss_ssh_authorizedkeys] Error 1 >make[2]: *** Waiting for unfinished jobs.... >./.libs/libsss_util.so: undefined reference to `timer_settime' >./.libs/libsss_util.so: undefined reference to `timer_delete' >./.libs/libsss_util.so: undefined reference to `timer_create' >collect2: error: ld returned 1 exit status >Makefile:11336: recipe for target 'sss_ssh_knownhostsproxy' failed >make[2]: *** [sss_ssh_knownhostsproxy] Error 1 > >I thought this was fixed(linking with librt that is)? > Could you test attached patch?
>Also, could you fix this warning: > /etc/init.d/sssd[3049]: /etc/init.d/sssd uses runscript, please convert to > openrc-run. > >Just apply > sed -i 's:#!/sbin/runscript:#!/sbin/openrc-run:' src/sysv/gentoo/sssd.in > I would appreciate if you or gentoo maintaner provide such patch for src/sysv/gentoo/sssd.in. LS
From dc416984d92890f31122d32240d8bc0cbf48a48e Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik <[email protected]> Date: Mon, 7 Nov 2016 11:53:21 +0100 Subject: [PATCH] BUILD: Fix linking with librt The posix realime extensions defines timer_* functions but it does not mention library with these functions. http://www.unix.org/version2/whatsnew/realtime.html The autoconf macro AC_SEARCH_LIBS firstly check the function timer_create with no libraries, then for each library listed in 2nd parameter. Possible libraries librt and libposix4 were used in nspr for similar detection. --- Makefile.am | 1 + configure.ac | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/Makefile.am b/Makefile.am index 64328766e09213167dc392ed307c75e318845ed3..e037930ff3a4d462ace5db02dad6c3c0d5fbb0d8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -980,6 +980,7 @@ libsss_util_la_CFLAGS = \ $(SYSTEMD_LOGIN_CFLAGS) \ $(NULL) libsss_util_la_LIBADD = \ + $(LIBADD_TIMER) \ $(SSSD_LIBS) \ $(SYSTEMD_LOGIN_LIBS) \ $(UNICODE_LIBS) \ diff --git a/configure.ac b/configure.ac index 3dbcf9e1f9e3cd3787dc7c01907d43bc55eda72d..d3ef1e162b2b8f8c1185b64a40584d3078a2c6be 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,19 @@ AC_CHECK_FUNCS([ pthread_mutexattr_setrobust \ pthread_mutex_consistent_np ]) LIBS=$SAVE_LIBS +# Check library for the timer_create function +SAVE_LIBS=$LIBS +LIBS= +LIBADD_TIMER= +AC_SEARCH_LIBS([timer_create], [rt posix4], + [AC_DEFINE([HAVE_LIBRT], [1], + [Define if you have the librt library or equivalent.]) + LIBADD_TIMER="$LIBS"], + [AC_MSG_ERROR([unable to find library fot the timer_create() function])]) + +AC_SUBST([LIBADD_TIMER]) +LIBS=$SAVE_LIBS + # Check for presence of modern functions for setting file timestamps AC_CHECK_FUNCS([ utimensat \ futimens ]) -- 2.9.3
_______________________________________________ sssd-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
