Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280986 - =net-nds/openldap-2.4.17-r1 doesn't compile with USE="cxx sasl"
Summary: =net-nds/openldap-2.4.17-r1 doesn't compile with USE="cxx sasl"
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 280988
  Show dependency tree
 
Reported: 2009-08-10 09:41 UTC by Samuli Suominen (RETIRED)
Modified: 2009-11-03 21:12 UTC (History)
1 user (show)

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


Attachments
build.log (net-nds:openldap-2.4.17-r1:20090810-093755.log,316.58 KB, text/plain)
2009-08-10 09:41 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2009-08-10 09:41:08 UTC
[ebuild  N    ] net-nds/openldap-2.4.17-r1  USE="berkdb crypt cxx ipv6 perl sasl ssl tcpd -debug -experimental -gnutls -icu -iodbc -kerberos -minimal -odbc -overlays -samba (-selinux) -slp -smbkrb5passwd -syslog" 0 kB

See build.log

Portage 2.2_rc36 (default/linux/amd64/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.29.1foobar x86_64)
=================================================================
System uname: Linux-2.6.29.1foobar-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Unknown
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -msse4.1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j5"
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="/home/ssuominen/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa amd64 berkdb bzip2 cdparanoia cleartype cli cracklib crypt cups cxx dbus dri dvd encode exif faac faad fam ffmpeg flac fortran gdbm glitz gpm gtk hal iconv ipv6 isdnlog jpeg kpathsea lame latex libcaca libnotify libsamplerate mad mikmod mmap mmx mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses network nls nptl nptlonly ogg openal opengl openmp pam pango pcre perl png pppd python qt3support qt4 raw readline reflection sdl session sid sndfile spl sse sse2 ssl ssse3 startup-notification svg sysfs taglib tcpd theora threads trayicon truetype unicode vdpau vorbis webkit x264 xcb xml xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-08-10 09:41:40 UTC
Created attachment 200830 [details]
build.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-08-10 09:57:25 UTC
Configure fails first with:

checking for ber_strdup in -llber... no
        didn't find ber_strdup in liblber !
        Check for the right version (>= 2.0) of the OpenLDAP libraries
        or try the --with-libldap option.

And because it doesn't create any Makefile, it fails later on with:

[32;01m*[0m Building contrib library: ldapc++
make -j5 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ 
make: *** No targets specified and no makefile found.  Stop.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-08-10 10:05:12 UTC
openldap needs to be built first with USE="-cxx -sasl" to be able to emerge it with USE="cxx sasl", self-circular dep
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-08-11 06:04:25 UTC
Manual testing:

unique ldapc++ # gcc -llber
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llber
collect2: ld returned 1 exit status
unique ldapc++ # pwd
/var/tmp/portage/net-nds/openldap-2.4.17-r1/work/openldap-2.4.17/contrib/ldapc++
unique ldapc++ # gcc -L../../libraries/liblber/.libs -llber
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
unique ldapc++ # file ../../libraries/liblber/.libs/liblber.so 
../../libraries/liblber/.libs/liblber.so: symbolic link to `liblber-2.4.so.2.5.0'
unique ldapc++ # file ../../libraries/liblber/.libs/liblber-2.4.so.2.5.0 
../../libraries/liblber/.libs/liblber-2.4.so.2.5.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
unique ldapc++ # 

config.log:

configure:19965: checking for ber_strdup in -llber
configure:20000: x86_64-pc-linux-gnu-gcc -o conftest -march=core2 -msse4.1 -O2 -pipe -D_GNU_SOURCE -I../../include  -I/usr/include/db4.7 -I.
./../../include  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -L../../libraries/liblber/.libs -L../../libraries/libldap/.libs -L../../../lib
raries/liblber/.libs -L../../../libraries/libldap/.libs conftest.c -llber  -lresolv -L/usr/local/lib   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llber
collect2: ld returned 1 exit status

The ebuild has correct append-ldflags but it isn't working.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-08-11 06:06:04 UTC
# strings ../../libraries/liblber/.libs/liblber-2.4.so.2.5.0 | grep ber_strdup
ber_strdup_x
ber_strdup
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-11-03 21:12:34 UTC
Should be fixed in 2.4.19. Please test.