net-nds/openldap-2.4.23 fails to build with >=net-libs/gnutls-2.11.1[nettle], because then libgnutls.so isn't linked against libgcrypt.so. x86_64-pc-linux-gnu-gcc -march=core2 -pipe -O2 -fno-ident -D_GNU_SOURCE -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--hash-style=gnu -Wl,--sort-common -o .libs/apitest apitest.o ./.libs/libldap.so /var/tmp/portage/net-nds/openldap-2.4.23/work/openldap-2.4.23/libraries/liblber/.libs/liblber.so -L/usr/lib64 ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a /usr/lib64/libsasl2.so /usr/lib64/libgnutls.so /usr/lib64/libtasn1.so /usr/lib64/libpakchois.so -lnettle /usr/lib64/libgmp.so -lhogweed -lz -ldl -lpthread -lcrypt -lresolv ./.libs/libldap.so: undefined reference to `gcry_control' collect2: ld returned 1 exit status make[2]: *** [apitest] Error 1
Created attachment 247479 [details] openldap-2.4.23:20100915-150506.log
This seems to be an upstream bug (that's not fixed in 2.4.26). Did you (or someone else) file a bug report?
Created attachment 281495 [details] temporary fix
*** Bug 372755 has been marked as a duplicate of this bug. ***
*** Bug 391083 has been marked as a duplicate of this bug. ***
*** Bug 403011 has been marked as a duplicate of this bug. ***
As reported by Maks Verver in bug #403011, a quick and ugly workaround is to do "LIBS=-lgcrypt emerge -1 openldap".
I solved merging net-libs/gnutls with -nettle. Until the problem is solved, net-nds/openldap should require net-libs/gnutls[-nettle] to avoid the problem to other people.
(In reply to comment #3) > Created attachment 281495 [details] > temporary fix Thanks, it works. After upgrading gnutls, the installed openldap became broken; this leads to emerge failures for dev-lang/php (several versions) and app-emulation/wine, probably, for other packages which depend on openldap. Any chance that this fix will be in the tree soon?
*** Bug 402973 has been marked as a duplicate of this bug. ***
(In reply to comment #9) > (In reply to comment #3) > > Created attachment 281495 [details] > > temporary fix > Thanks, it works. > > After upgrading gnutls, the installed openldap became broken; this leads to > emerge failures for dev-lang/php (several versions) and app-emulation/wine, > probably, for other packages which depend on openldap. Any chance that this fix > will be in the tree soon? Unless I'm missing something, only the second part of this "patch" is required (TLS_LIBS).
*** Bug 403209 has been marked as a duplicate of this bug. ***
*** Bug 403221 has been marked as a duplicate of this bug. ***
'nettle' is default on in net-libs/gnutls from few days gnutls: Fri Feb 10 15:34:40 2012: 173 seconds plus, this break badly even if gnutls is compiled _after_ openldap Changelog is this: ------------------- 10 Feb 2012; Tim Harder <radhermit@gentoo.org> -gnutls-2.12.14.ebuild, -gnutls-3.0.8.ebuild, -gnutls-3.0.9.ebuild, -gnutls-3.0.10.ebuild: Remove old. 10 Feb 2012; Tim Harder <radhermit@gentoo.org> gnutls-2.12.14.ebuild, gnutls-2.12.16.ebuild: Drop KEYWORDS for arches that haven't keyworded p11-kit yet. *gnutls-3.0.11 (13 Jan 2012) *gnutls-2.12.16 (13 Jan 2012) ------------------- so maybe the change was not intentional
I'm working on a fix for this. Running autoconf for openldap has always been somewhat touchy. I've got a commit in autotools.eclass that should help it when I've finished a test pass and commit.
InCVS.
does it need a depend on sys-devel/automake:1.9? ------------ * Failed Running aclocal ! * * Include in your bugreport the contents of: * * /var/tmp/portage/net-nds/openldap-2.4.28/temp/aclocal.out * ERROR: net-nds/openldap-2.4.28 failed (prepare phase): * Failed Running aclocal ! * * Call stack: * ebuild.sh, line 85: Called src_prepare * environment, line 3860: Called eautoreconf * environment, line 1138: Called eaclocal * environment, line 1056: Called autotools_run_tool '--at-m4flags' 'aclocal' * environment, line 691: Called die * The specific snippet of code: * die "Failed Running $1 !"; ---------------- ***** aclocal ***** ***** PWD: /var/tmp/portage/net-nds/openldap-2.4.28/work/openldap-2.4.28 ***** aclocal am-wrapper: aclocal: warning: invalid WANT_AUTOMAKE 'none'; ignoring. am-wrapper: aclocal: /usr/bin/aclocal-1.9 is missing or not executable. Please try emerging the correct version of automake.
(In reply to comment #17) > does it need a depend on sys-devel/automake:1.9? > yes, with the WANT_AUTOMAKE=none explicit depend on upstream version is needed
Fixed already too...
I still can't get this to work using openldap 2.4.33 and gnutls 3.1.4 --I will submit the build log below
Created attachment 329816 [details] build log for failing open-ldap
(In reply to comment #21) > Created attachment 329816 [details] > build log for failing open-ldap This is being handled in bug 421463.