Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130199 - dev-util/cppunit-1.10.2 fails with --as-needed
Summary: dev-util/cppunit-1.10.2 fails with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard: patch ready
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-04-16 16:30 UTC by Gabriel Devenyi
Modified: 2006-04-21 10:01 UTC (History)
1 user (show)

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


Attachments
cppunit-1.10.2-asneeded.patch (cppunit-1.10.2-asneeded.patch,396 bytes, patch)
2006-04-20 20:10 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
Ebuild patch (cppunit-ebuild.patch,817 bytes, patch)
2006-04-20 20:13 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Devenyi 2006-04-16 16:30:23 UTC
x86_64-pc-linux-gnu-g++ -O2 -march=k8 -pipe -ffast-math -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort -o .libs/DllPlugInTester DllPlugInTester.o CommandLineParser.o  -ldl ../../src/cppunit/.libs/libcppunit.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/libstdc++.so -L/usr/x86_64-pc-linux-gnu/bin -L/usr/x86_64-pc-linux-gnu/lib -Wl,--rpath -Wl,/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0
../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlclose'
../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlopen'
../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[2]: *** [DllPlugInTester] Error 1
make[2]: Leaving directory `/var/tmp/portage/cppunit-1.10.2/work/cppunit-1.10.2/src/DllPlugInTester'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cppunit-1.10.2/work/cppunit-1.10.2/src'
make: *** [all-recursive] Error 1
Comment 1 Charles Hemingway 2006-04-20 19:50:07 UTC
Seconding that for ~x86
[snip]
/bin/sh ../../libtool --mode=link i686-pc-linux-gnu-g++ -march=pentium-m -O2 -pipe -Wl,-O1,--as-needed -o DllPlugInTester -ldl DllPlugInTester.o CommandLineParser.o ../../src/cppunit/libcppunit.la
 mkdir .libs
 i686-pc-linux-gnu-g++ -march=pentium-m -O2 -pipe -Wl,-O1 -Wl,--as-needed -o .libs/DllPlugInTester DllPlugInTester.o CommandLineParser.o -ldl ../../src/cppunit/.libs/libcppunit.so /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.6
 ../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlclose'
 ../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlopen'
 ../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlsym'
 collect2: ld returned 1 exit status
 make[2]: *** [DllPlugInTester] Error 1
 make[2]: Leaving directory `/var/tmp/portage/portage/cppunit-1.10.2/work/cppunit-1.10.2/src/DllPlugInTester'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/var/tmp/portage/portage/cppunit-1.10.2/work/cppunit-1.10.2/src'
 make: *** [all-recursive] Error 1
--------------------------------------
traveler ~ # emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r2 i686)
=================================================================
System uname: 2.6.16-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://mirror.espri.arizona.edu/gentoo/"
LC_ALL="en_US.UTF-8"
LINGUAS="en ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee /usr/local/xgl-testing"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 7zip X X509 a52 aac aalib acl acpi ada akode alsa amarok amd amr ao apache2 apm arts artworkextra asf async audacious audiofile automount avi bash-completion berkdb bidi binfilter bitmap-fonts bonobo bzip2 c++ cairo cardbus ccache cdda cdio cdr cgi chroot cjk clamav clamd clearcase cli commercial corba cpudetection crypt crypto_openssl css cups curl cvs cxx daap dbus dcc devil dhcp dio directfb djvu dlloader double-precision dpms dri dts dv dvb dvd dvdr dvdread dvi dxr3 edl eds elf emboss encode esd ethereal evo exif exscalibar extraicons extramodules fastcgi fat fbcon fbsplash ffmpeg firefox flac fltk fmod font-server fontconfig foomaticdb fortran gb gcj gdbm ggi gif glitz glut glx gnome gnome-print gnutls gphoto2 gpm gstreamer gtk gtk2 gzip hal hash haskell hbci hfs hpn httpd icc idn ieee1394 image imagemagick imap imlib innodb iplsrc iproute2 ipv6 isdnlog java javascript jfs jikes jit john jpeg jpeg2k jumpplay kde kdepim kerberos kexi kig-scripting kqemu krb4 ladspa lame latex lcms ldap lesstif libcaca libclamav libdsk libg++ libnotify libvisual libwww live lm_sensors logrotate logwatch lzo lzw mad mail matroska md5sum mikmod mime mmx mmxext mng mod modplug mono motif mouse mozilla mozsvg mp3 mp4 mp4live mpd-mad mpeg mpeg2 mplayer msn mssql mudflap musepack music musicbrainz mysql mysqli mythtv mzscheme nas nautilus ncurses net network neural nfs njb nls nptl nptlonly nsplugin ntfs ntlm ntlm_unsupported_patch oav ocaml odbc offensive ofx ogg ogre ole openal openexr opengl openssh openssl pam pascal pcmcia pcntl pcre pdf perforce perl pertty pheaders php pic plib pmu png pnp postgres povray pppd print python pyzor qemu-fast qt quicktime quotas radiotap radius rar razor rc5 rdesktop readline real reflection reiser4 reiserfs remix rpm rrdcgi rrdtool rtc ruby samba sane sasl scanner sdl search sensord session sftp shorten shout sid skey skins slang slp smime smux sndfile snmp soundtouch speech speedo speex spell spf spl sql sqlite sse sse-filters sse2 ssl stream subject-rewrite subp subtitles subversion svg svga svgz swat syslog sysvipc szip t1lib tcltk tcpd tcpmd5 tetex theora thesaurus threads tidy tiff timidity truetype truetype-fonts type1 type1-fonts udev unicode urandom usb userlocales utf8 vcd vfat video_cards_ati video_cards_fglrx video_cards_glint video_cards_v4l video_cards_vesa video_cards_vga vim-with-x vlm vorbis widescreen wifi win32codecs winbind wma wmf wxwindows x264 xanim xcomposite xface xfs xine xml xml2 xmlreader xmlrpc xmlwriter xmms xosd xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_en linguas_ja userland_GNU video_cards_radeon video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-20 20:10:56 UTC
Created attachment 85084 [details, diff]
cppunit-1.10.2-asneeded.patch

Makefile patch to link libcppunit.so to libdl when needed.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-20 20:13:15 UTC
Created attachment 85085 [details, diff]
Ebuild patch

And the patch to the ebuild to apply the patch.

Note that the eautomake will call eautoreconf anyway, as the versions of automake doesn't correspond, but this way it's more "safe" if a new version will still require that patch.
The elibtoolize is there for completeness, while RDEPEND is used to avoid setting doxygen/graphviz as runtime dependencies.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-20 20:14:45 UTC
Okay I've attached the patch for this. George if you want I can committ his myself.
Comment 5 George Shapovalov (RETIRED) gentoo-dev 2006-04-21 04:40:36 UTC
Hi Diego.

Thanks for the patch! And yea, I thing it would be the best if you do it - I do not run gcc-4.1 yet (only gnat-4.1 so far :)), so testing this would be somewhat involved..

George
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-21 10:01:14 UTC
Thanks, patch committed in portage then :)