Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337504 - net-nds/openldap-2.4.25[gnutls,ssl] fails to build with >=net-libs/gnutls-2.11.1[nettle]
Summary: net-nds/openldap-2.4.25[gnutls,ssl] fails to build with >=net-libs/gnutls-2.1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
: 372755 391083 402973 403011 403209 403221 (view as bug list)
Depends on:
Blocks: gnutls-nettle
  Show dependency tree
 
Reported: 2010-09-15 15:11 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2012-11-18 15:26 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openldap-2.4.23:20100915-150506.log (openldap-2.4.23:20100915-150506.log,89.90 KB, text/plain)
2010-09-15 15:12 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details
temporary fix (openldap-2.4.26-gcrypt.patch,505 bytes, text/plain)
2011-07-29 17:13 UTC, Niels Ole Salscheider
Details
build log for failing open-ldap (openldap-build.log,89.36 KB, text/plain)
2012-11-18 10:53 UTC, John Covici
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-09-15 15:11:16 UTC
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
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-09-15 15:12:08 UTC
Created attachment 247479 [details]
openldap-2.4.23:20100915-150506.log
Comment 2 Niels Ole Salscheider 2011-07-29 17:01:04 UTC
This seems to be an upstream bug (that's not fixed in 2.4.26). Did you (or someone else) file a bug report?
Comment 3 Niels Ole Salscheider 2011-07-29 17:13:28 UTC
Created attachment 281495 [details]
temporary fix
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-11-23 17:14:15 UTC
*** Bug 372755 has been marked as a duplicate of this bug. ***
Comment 5 Dennis Schridde 2012-02-05 19:38:27 UTC
*** Bug 391083 has been marked as a duplicate of this bug. ***
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-02-10 21:32:20 UTC
*** Bug 403011 has been marked as a duplicate of this bug. ***
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-02-10 21:36:12 UTC
As reported by Maks Verver in bug #403011, a quick and ugly workaround is to do "LIBS=-lgcrypt emerge -1 openldap".
Comment 8 Marco Napetti 2012-02-11 09:16:42 UTC
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.
Comment 9 Andrey Grozin gentoo-dev 2012-02-11 11:24:07 UTC
(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?
Comment 10 Ole Markus With (RETIRED) gentoo-dev 2012-02-11 15:01:32 UTC
*** Bug 402973 has been marked as a duplicate of this bug. ***
Comment 11 Rafał Mużyło 2012-02-11 20:39:58 UTC
(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).
Comment 12 Rafał Mużyło 2012-02-11 20:41:46 UTC
*** Bug 403209 has been marked as a duplicate of this bug. ***
Comment 13 Rafał Mużyło 2012-02-12 00:00:15 UTC
*** Bug 403221 has been marked as a duplicate of this bug. ***
Comment 14 Francesco Riosa 2012-02-12 00:21:21 UTC
'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
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 00:28:02 UTC
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.
Comment 16 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 00:54:53 UTC
InCVS.
Comment 17 Francesco Riosa 2012-02-12 13:58:47 UTC
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.
Comment 18 Francesco Riosa 2012-02-12 14:04:25 UTC
(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
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 20:40:17 UTC
Fixed already too...
Comment 20 John Covici 2012-11-18 10:40:46 UTC
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
Comment 21 John Covici 2012-11-18 10:53:30 UTC
Created attachment 329816 [details]
build log for failing open-ldap
Comment 22 Rafał Mużyło 2012-11-18 15:26:51 UTC
(In reply to comment #21)
> Created attachment 329816 [details]
> build log for failing open-ldap

This is being handled in bug 421463.