Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 143072

Summary: dev-libs/cyrus-sasl-2.1.21-r3 fails with --as-needed
Product: Gentoo Linux Reporter: Matthias Schwarzott <zzam>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matthias Schwarzott gentoo-dev 2006-08-07 02:43:55 UTC
dev-libs/cyrus-sasl-2.1.21-r3 can not be emerged with LDFLAGS="-Wl,--as-needed".

creating saslpasswd2
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include   -I/usr/include/mysql  -Wall -W -O2 -march=athlon-xp -fomit-frame-pointer -pipe -MT sasldblistusers.o -MD -MP -MF ".deps/sasldblistusers.Tpo" \
          -c -o sasldblistusers.o `test -f 'sasldblistusers.c' || echo './'`sasldblistusers.c; \
        then mv -f ".deps/sasldblistusers.Tpo" ".deps/sasldblistusers.Po"; \
        else rm -f ".deps/sasldblistusers.Tpo"; exit 1; \
        fi
sasldblistusers.c: In function 'good_getopt':
sasldblistusers.c:70: warning: unused parameter 'context'
sasldblistusers.c:71: warning: unused parameter 'plugin_name'
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -Wall -W -O2 -march=athlon-xp -fomit-frame-pointer -pipe  -Wl,--as-needed -o sasldblistusers2  sasldblistusers.o ../lib/libsasl2.la -lgdbm -lresolv  ../sasldb/libsasldb.la -lresolv
i686-pc-linux-gnu-gcc -Wall -W -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wl,--as-needed -o .libs/sasldblistusers2 sasldblistusers.o ../lib/.libs/libsasl2.so -ldl -lresolv -lcrypt -lresolv -lgdbm -lresolv ../sasldb/.libs/libsasldb.al -lresolv -lresolv
../sasldb/.libs/libsasldb.al(db_gdbm.lo): In function `_sasldb_releasekeyhandle':
db_gdbm.c:(.text+0x1bf): undefined reference to `gdbm_close'
../sasldb/.libs/libsasldb.al(db_gdbm.lo): In function `_sasldb_getnextkey':
db_gdbm.c:(.text+0x258): undefined reference to `gdbm_firstkey'
db_gdbm.c:(.text+0x2d9): undefined reference to `gdbm_nextkey'
../sasldb/.libs/libsasldb.al(db_gdbm.lo): In function `_sasldb_getkeyhandle':
db_gdbm.c:(.text+0x388): undefined reference to `gdbm_open'
db_gdbm.c:(.text+0x457): undefined reference to `gdbm_errno'
db_gdbm.c:(.text+0x4ae): undefined reference to `gdbm_close'
../sasldb/.libs/libsasldb.al(db_gdbm.lo): In function `_sasldb_putdata':
db_gdbm.c:(.text+0x5bf): undefined reference to `gdbm_open'
db_gdbm.c:(.text+0x63d): undefined reference to `gdbm_store'
db_gdbm.c:(.text+0x64d): undefined reference to `gdbm_close'
db_gdbm.c:(.text+0x723): undefined reference to `gdbm_errno'
db_gdbm.c:(.text+0x799): undefined reference to `gdbm_errno'
db_gdbm.c:(.text+0x7e7): undefined reference to `gdbm_delete'
db_gdbm.c:(.text+0x7f5): undefined reference to `gdbm_errno'
../sasldb/.libs/libsasldb.al(db_gdbm.lo): In function `_sasldb_getdata':
db_gdbm.c:(.text+0x96c): undefined reference to `gdbm_open'
db_gdbm.c:(.text+0x99c): undefined reference to `gdbm_fetch'
db_gdbm.c:(.text+0x9b7): undefined reference to `gdbm_close'
db_gdbm.c:(.text+0xb01): undefined reference to `gdbm_errno'
db_gdbm.c:(.text+0xb45): undefined reference to `gdbm_errno'
collect2: ld returned 1 exit status
make[2]: *** [sasldblistusers2] Error 1
make[2]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.21-r3/work/cyrus-sasl-2.1.21/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.21-r3/work/cyrus-sasl-2.1.21'
make: *** [all] Error 2

!!! ERROR: dev-libs/cyrus-sasl-2.1.21-r3 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  cyrus-sasl-2.1.21-r3.ebuild, line 178:   Called die

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if relevant.


# emerge --info
Portage 2.1.1_pre4-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r1 i686)
=================================================================
System uname: 2.6.17-gentoo-r1 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.4
Last Sync: Unknown
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/my-distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-detect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms sign strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/my-packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/matze/gentoo/overlays/de /home/matze/gentoo/overlays/zzam"
SYNC="cvs://zzam@cvs.gentoo.org:/var/cvsroot"
USE="x86 3dnow 3dnowext X a52 aac acl alsa apache2 apm artswrappersuid audacious avi berkdb bitmap-fonts bluetooth bzip2 cap caps cddb cdparanoia cli crypt cups dbus dlloader doc dri dts dvb dvd dvdr eds elibc_glibc emboss encode fbcon ffmpeg font-server foomaticdb fortran fuse gcj gdbm gif gimpprint glut gpm gstreamer gtk gtk2 hal imap imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg jpeg2k kde kdexdeltas kernel_linux libg++ libwww linguas_de lirc lirc_devices_all logitech-mouse mad mikmod mmx mmxext mng motif mp3 mpeg mplayer musicbrainz mysql ncurses nls nogecko-sdk nptl nptlonly nvram offensive ogg opengl oss pam pcre pdf pdflib perl png ppds pppd python qt qt3 qt4 quotes readline reflection samba session sms sndfile softmmu spell spl sqlite sse ssl svg taglib tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vcd vdr video_cards_nv video_cards_v4l video_cards_vbdev video_cards_vesa visualization vorbis win32codecs wma wmf xinerama xml xorg xrandr xslt xv zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-07 02:52:21 UTC
Already fixed in 2.1.22.

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