Emerge info: Portage 2.1.1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 x86_64) ================================================================= System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.5 Last Sync: Fri, 15 Sep 2006 01:30:07 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] 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.93 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -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/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig candy ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="" 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/portage/local/layman/musicbrainz /usr/portage/local/layman/portage-xgl" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 cairo cli dbus dlloader dri dvd dvdr eds elibc_glibc emboss firefox hal input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog kde kdeenablefinal kdehiddenvisibility kdenewldflags kernel_linux libg++ nptl nptlonly pcre ppds pppd qt3 readline reflection session spl truetype udev unicode userland_GNU userlocales video_cards_nvidia xorg" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS Compiling either of these versions of swords results in the following error: x86_64-pc-linux-gnu-g++ -ftemplate-depth-25 -DCURLAVAILABLE -march=k8 -O2 -pipe -fvisibility-inlines-hidden -Wl,-O1 -o .libs/buildtest buildtest.o ./lib/.libs/libsword.so -L/usr/lib64 /usr/lib64/libcurl.so -L/usr/lib -lssl -lcrypto -ldl -lz buildtest.o: In function `main': buildtest.cpp:(.text+0x11a): undefined reference to `sword::VerseKey::setText(char const*)' collect2: ld returned 1 exit status make[1]: *** [buildtest] Error 1 make[1]: Leaving directory `/var/tmp/portage/sword-1.5.8/work/sword-1.5.8' make: *** [all-recursive] Error 1 The problem appears to be to the -fvisibility-inlines-hidden option in CFLAGS. Remove of this option and the package emerges fine. Might be good for the ebuild to filter this flag.
*** This bug has been marked as a duplicate of 127020 ***