Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403209 - net-nds/openldap-2.4.28 fails to build against net-libs/gnutls-2.12.16
Summary: net-nds/openldap-2.4.28 fails to build against net-libs/gnutls-2.12.16
Status: RESOLVED DUPLICATE of bug 337504
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-11 20:04 UTC by Andrei Slavoiu
Modified: 2012-02-11 20:41 UTC (History)
0 users

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


Attachments
openldap-2.4.28-gcrypt.patch (openldap-2.4.28-gcrypt.patch,308 bytes, patch)
2012-02-11 20:12 UTC, Andrei Slavoiu
Details | Diff
openldap-2.4.28.ebuild.patch (openldap-2.4.28.ebuild.patch,859 bytes, patch)
2012-02-11 20:15 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2012-02-11 20:04:43 UTC
openldap uses gcrypt directly when build with gnutls support but does not explicitly link against it. Now that gnutls defaults to nettle as a crypto-backend instead of gcrypt, openldap fails to build.

Reproducible: Always

Steps to Reproduce:
Update gnutls to version 2.12.16 with USE=nettle (the default) then rebuild openldap
Actual Results:  
./.libs/libldap.so: undefined reference to `gcry_control'
collect2: ld returned 1 exit status
make[2]: *** [apitest] Error 1
make[2]: *** Waiting for unfinished jobs....
./.libs/libldap.so: undefined reference to `gcry_control'
collect2: ld returned 1 exit status
x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -pipe -D_GNU_SOURCE -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z -Wl,combreloc -Wl,--as-needed -Wl,--sort-common -o .libs/ltest test.o  ./.libs/libldap.so /var/tmp/portage/net-nds/openldap-2.4.28/work/openldap-2.4.28/libraries/liblber/.libs/liblber.so ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a /usr/lib64/libsasl2.so -ldl -lgnutls -lcrypt -lresolv
make[2]: *** [ftest] Error 1
./.libs/libldap.so: undefined reference to `gcry_control'
collect2: ld returned 1 exit status
make[2]: *** [urltest] Error 1
./.libs/libldap.so: undefined reference to `gcry_control'
collect2: ld returned 1 exit status
make[2]: *** [dntest] Error 1
./.libs/libldap.so: undefined reference to `gcry_control'
collect2: ld returned 1 exit status
make[2]: *** [ltest] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.4.28/work/openldap-2.4.28/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.4.28/work/openldap-2.4.28/libraries'
make: *** [all-common] Error 1
emake failed
 * ERROR: net-nds/openldap-2.4.28 failed (compile phase):
 *   emake failed

Expected Results:  
openldap builds successfully

Portage 2.2.0_alpha84 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.2.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.2.5-gentoo-x86_64-AMD_Phenom-tm-_9350e_Quad-Core_Processor-with-gentoo-2.1
Timestamp of tree: Sat, 11 Feb 2012 18:15:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo local sunrise
Installed sets: @games, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -ggdb -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo http://distfiles.gentoo.org"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--enable-new-dtags,-z,combreloc,--as-needed,--sort-common"
LINGUAS="ro en eo"
MAKEOPTS="-j5 -l10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 7zip X a52 aac aacplus aalib accessibility acl acpi aesicm agg aiglx akonadi alsa amd64 amr amrnb amrwb analitza apache2 asf aspell audiofile autotrace bash-completion berkdb bittorrent bonjour branding bzip2 calendar caps captury ccache cdda cddb cdinstall cdparanoia cdr chdir cisco clamav cli cmake consolekit crypt css cups curl cxx dba dbus declarative desktopglobe dga djvu dmi doc double-precision dpms dri dts dv dvd dvdr ebook egl emboss encode erandom examples exif expat faac faad fam fbcon fbcondecor festival ffmpeg fftw firefox flac flash fontconfig fortran ftp g3dvl gcj gcrypt gd gdbm gdu geoip gif git gles gles2 glib glibc-omitfp glut gmp gnokii gnutls gpm graphviz gsm gstreamer handbook hbci hddtemp highlight hou htmlhandbook iconv icu id3tag idn imagemagick imlib inotify iodbc ipv6 jadetex java javascript jingle jpeg jpeg2k justify kde kdehiddenvisibility kdevplatform kerberos kig-scripting kipi kvm lame lcms ldap libcaca libclamav libffi libgcrypt libnl libnotify libsamplerate libssh2 libwww live llvm llvm-gcc lm_sensors lto lua lzma lzo mad maildir matroska mbrola melt metric mikmod minizip mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer mppe-mppc mpx mudflap multilib musepack musicbrainz mysql mythtv ncurses network nls nodrm nowin nptl nptlonly nss odbc offensive ofx ogg okteta openal opencore-amr openexr opengl openmp openvg pam pango passwdqc pcap pch pcntl pcre pdf phonon php physfs plasma plugins png policykit portage posix povray ppds pppd private-headers pth python3 qemu-ifup qt3support qt4 qthelp quicktime rar rdesktop readline reiserfs reports rss rtc rtmp samba sasl schroedinger sdk sdl semantic-desktop session slang sms sockets sou sound sox speex spell spice sql sqlite sqlite3 srtp sse sse2 sse3 ssl startup-notification subversion svg symlink sysfs syslog sysvipc taglib tcpd texture-float theora threads thumbnail tidy tiff timidity truetype tunepimp udev udisks unicode upnp usb vaapi valgrind vdpau vhook video videos visibility visualization vnc voice vorbis vpx webkit webp wifi x264 xattr xcb xcomposite xinerama xml xml2 xmlrpc xmp xorg xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo zeroconf zip zlib zvbi" ALSA_CARDS="bt87x via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="garmin" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro en eo" LIRC_DEVICES="kworld" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-nds/openldap-2.4.28 was built with the following:
USE="berkdb (consolekit) crypt gnutls icu iodbc ipv6 kerberos (multilib) odbc (policykit) samba sasl ssl syslog tcpd -cxx -debug -experimental -minimal -overlays -perl (-selinux) -slp -smbkrb5passwd"
CFLAGS="-march=native -ggdb -O2 -pipe -D_GNU_SOURCE"
CXXFLAGS="-march=native -ggdb -O2 -pipe -D_GNU_SOURCE"


net-libs/gnutls-2.12.16 was built with the following:
USE="(consolekit) cxx doc examples lzo (multilib) nettle nls (policykit) zlib -bindist -guile -pkcs11 -static-libs -test"
Comment 1 Andrei Slavoiu 2012-02-11 20:12:38 UTC
Created attachment 301593 [details, diff]
openldap-2.4.28-gcrypt.patch

patch openldap to explicitly link against gcrypt when using gnutls
Comment 2 Andrei Slavoiu 2012-02-11 20:15:34 UTC
Created attachment 301595 [details, diff]
openldap-2.4.28.ebuild.patch

patch for the ebuild, to apply the previous patch
Comment 3 Rafał Mużyło 2012-02-11 20:41:46 UTC

*** This bug has been marked as a duplicate of bug 337504 ***