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

Bug 190640

Summary: sys-fs/xfsprogs-2.9.3 does not build w/ --as-needed
Product: Gentoo Linux Reporter: Alexander Graf <sohalt>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Graf 2007-08-29 13:31:50 UTC
error:
/usr/bin/libtool --mode=link i686-pc-linux-gnu-gcc -o xfs_db -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed  -Wl,-O1 -Wl,--as-needed -static  addr.o agf.o agfl.o agi.o attr.o attrshort.o bit.o block.o bmap.o bmapbt.o bmroot.o bnobt.o check.o cntbt.o command.o convert.o dbread.o debug.o dir.o dir2.o dir2sf.o dirshort.o dquot.o echo.o faddr.o field.o flist.o fprint.o frag.o freesp.o hash.o help.o init.o inobt.o inode.o input.o io.o malloc.o metadump.o output.o print.o quit.o sb.o sig.o strvec.o text.o type.o write.o attrset.o   ../libxfs/libxfs.la ../libxlog/libxlog.la -luuid -lrt  
mkdir .libs
i686-pc-linux-gnu-gcc -o xfs_db -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed addr.o agf.o agfl.o agi.o attr.o attrshort.o bit.o block.o bmap.o bmapbt.o bmroot.o bnobt.o check.o cntbt.o command.o convert.o dbread.o debug.o dir.o dir2.o dir2sf.o dirshort.o dquot.o echo.o faddr.o field.o flist.o fprint.o frag.o freesp.o hash.o help.o init.o inobt.o inode.o input.o io.o malloc.o metadump.o output.o print.o quit.o sb.o sig.o strvec.o text.o type.o write.o attrset.o  ../libxfs/.libs/libxfs.a ../libxlog/.libs/libxlog.a -luuid -lrt  
../libxfs/.libs/libxfs.a(cache.o): In function `cache_shake':
cache.c:(.text+0x4d7): undefined reference to `pthread_mutex_trylock'
cache.c:(.text+0x505): undefined reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
gmake[1]: *** [xfs_db] Error 1
make: *** [default] Error 2

my emerge --info:
Portage 2.1.3.7 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.23-rc3 i686)
=================================================================
System uname: 2.6.23-rc3 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 29 Aug 2007 12:20:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=prescott -mfpmath=sse -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/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=prescott -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://pandemonium.tiscali.de/pub/gentoo/ http://213.186.33.37/gentoo-distfiles/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi aiglx alsa amr ares arts audacious bitmap-fonts branding bzip2 cairo ccache cdr cgi cli cracklib crypt cups dbus debugger dri dvdread emerald encode evo exoticmods fam firefox fortran gif glitz gnutls gpm gtk hal hddtemp iconv ipv6 java jpeg kde kdeenablefinal kdehiddenvisibility kqemu latin1 lm_sensors logitech-mouse lua mad mbox midi mikmod mmx moznopango mp3 mpeg mpm-worker ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl png pop povray python qt3 qt4 quicktime readline reflection replytolist samba scanner sdl session smp spl sse sse2 ssl subversion svg symlink tcl tcpd threads tk truetype truetype-fonts type1-fonts vim-syntax vim-with-x vorbis win32codecs x86 xine xml xorg xscreensaver xv" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-29 13:35:45 UTC
Compile it without --as-needed.

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