/bin/sh ../../libtool --mode=link --tag=CXX x86_64-pc-linux-gnu-g++ -march=k8 - Os -pipe -msse3 -Wl,-O1 -Wl,--as-needed -lstdc++ -shared-libgcc -o sabcmd sabc md.o ../engine/libsablot.la -lexpat mkdir .libs x86_64-pc-linux-gnu-g++ -march=k8 -Os -pipe -msse3 -Wl,-O1 -Wl,--as-needed -shar ed-libgcc -o .libs/sabcmd sabcmd.o -lstdc++ ../engine/.libs/libsablot.so /usr/l ib64/libexpat.so ../engine/.libs/libsablot.so: undefined reference to `XML_ParserCreateNS' ../engine/.libs/libsablot.so: undefined reference to `XML_SetElementHandler' ../engine/.libs/libsablot.so: undefined reference to `XML_Parse' ../engine/.libs/libsablot.so: undefined reference to `XML_ParserFree' ../engine/.libs/libsablot.so: undefined reference to `XML_SetEntityDeclHandler' ../engine/.libs/libsablot.so: undefined reference to `XML_SetExternalEntityRefHa ndler' ../engine/.libs/libsablot.so: undefined reference to `XML_SetCharacterDataHandle r' ../engine/.libs/libsablot.so: undefined reference to `XML_ErrorString' ../engine/.libs/libsablot.so: undefined reference to `XML_ExternalEntityParserCr eate' ../engine/.libs/libsablot.so: undefined reference to `XML_SetParamEntityParsing' ../engine/.libs/libsablot.so: undefined reference to `XML_SetBase' ../engine/.libs/libsablot.so: undefined reference to `XML_SetReturnNSTriplet' ../engine/.libs/libsablot.so: undefined reference to `XML_SetUserData' ../engine/.libs/libsablot.so: undefined reference to `XML_SetProcessingInstructi onHandler' ../engine/.libs/libsablot.so: undefined reference to `XML_SetEncoding' ../engine/.libs/libsablot.so: undefined reference to `XML_GetErrorCode' ../engine/.libs/libsablot.so: undefined reference to `XML_SetCommentHandler' ../engine/.libs/libsablot.so: undefined reference to `XML_GetCurrentLineNumber' ../engine/.libs/libsablot.so: undefined reference to `XML_SetNamespaceDeclHandle r' collect2: ld returned 1 exit status make[2]: *** [sabcmd] Error 1 make[2]: Leaving directory `/var/tmp/portage/sablotron-1.0.2/work/Sablot-1.0.2/s rc/command' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sablotron-1.0.2/work/Sablot-1.0.2/s rc' make: *** [all-recursive] Error 1
Portage 2.1.2_pre1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-ck1-r3 x86_64) ================================================================= System uname: 2.6.17-ck1-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.5 Last Sync: Wed, 20 Sep 2006 15:50:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.6-r1, 2.0.29 dev-lang/python: 2.3.5-r2, 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] 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: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -Os -pipe -msse3" 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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -Os -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" INSTALL_MASK="/usr/bin/emerge" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en nl" MAKEOPTS="-j2" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/nouveau /usr/portage/local/layman/sunrise /usr/portage/local/layman/pro-audio /usr/portage/local/layman/science /usr/portage/local/layman/WTK-Testing" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d alsa aotuv avi berkdb bitmap-fonts cairo caps cdr cli crypt cups dbus dhcp dlloader dri dvd dvdr eds elibc_glibc emboss encode fam firefox flac fortran gdbm gif gimpprint gpm gstreamer gtk gtk2 hal input_devices_keyboard input_devices_mouse ipv6 isdnlog jack jpeg kernel_linux ldap libg++ linguas_en linguas_nl mad mikmod minimal mp3 mpeg musepack ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl pam pcre pdf pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nouveau video_cards_nv vorbis xml xorg xv zlib"
Forgot: Unset: CTARGET, EMERGE_DEFAULT_OPTS, LANG, PORTAGE_RSYNC_EXTRA_OPTS
The line on which it fails should also link ../engine/parser.o - like so: i686-pc-linux-gnu-g++ -march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall -Wl,-O1 -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -Wl,-z -Wl,now -shared-libgcc -o .libs/sabcmd sabcmd.o ../engine/.libs/libsablot.so ../engine/parser.o /usr/lib/libexpat.so -lstdc++ I'm still trying to decipher the cryptic Makefile.in to work out how to patch it.
It also occurs with 1.0.3
*** Bug 172043 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > The line on which it fails should also link ../engine/parser.o - like so: > > i686-pc-linux-gnu-g++ -march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident > -fweb -frename-registers -ftracer -Wall -Wl,-O1 -Wl,-zdynsort -Wl,--as-needed > -Wl,--sort-common -Wl,-z -Wl,now -shared-libgcc -o .libs/sabcmd sabcmd.o > ../engine/.libs/libsablot.so ../engine/parser.o /usr/lib/libexpat.so -lstdc++ > > I'm still trying to decipher the cryptic Makefile.in to work out how to patch > it. > I think you should rather change Makefile.am, because Makefile.in is generated from Makefile.am by automake.
Created attachment 116460 [details, diff] 1.0.3-libsablot-expat.patch
Created attachment 116461 [details, diff] patch for sablotron-1.0.3.ebuild Just ack and I will commit this stuff. Will do it automatically in a week.
I personally don't follow --as-needed bugs, but if you have a working patch, feel free to commit it. Thank you.
(In reply to comment #9) > I personally don't follow --as-needed bugs, but if you have a working patch, > feel free to commit it. > > Thank you. > Committed.