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

Bug 138961

Summary: sword-1.5.8-r1 'undefined reference' compilation error
Product: Gentoo Linux Reporter: Stephen Horner <Protocol.X>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED NEEDINFO    
Severity: normal CC: robert.golding
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stephen Horner 2006-07-02 23:49:50 UTC
(cd .libs && rm -f libsword.so && ln -s libsword-1.5.8.so libsword.so)
i686-pc-linux-gnu-ar cru .libs/libsword.a  swkey.o listkey.o strkey.o treekey.o treekeyidx.o versekey.o swobject.o Greek2Greek.o utilstr.o utilxml.o swunicod.o swversion.o swbuf.o ftpparse.o url.o untgz.o roman.o curlftpt.o swconfig.o swmgr.o swfiltermgr.o encfiltmgr.o markupfiltmgr.o filemgr.o ftptrans.o swlocale.o localemgr.o swcacher.o swsearchable.o installmgr.o stringmgr.o swdisp.o swlog.o swmodule.o rawstr.o rawstr4.o swcomprs.o lzsscomprs.o zipcomprs.o rawverse.o swcipher.o zverse.o zstr.o entriesblk.o sapphire.o swbasicfilter.o swoptfilter.o latin1utf8.o latin1utf16.o utf8utf16.o utf16utf8.o scsuutf8.o utf8html.o utf8latin1.o utf8cantillation.o utf8hebrewpoints.o utf8greekaccents.o cipherfil.o utf8transliterator.o utf8nfc.o utf8nfkd.o utf8arshaping.o utf8bidireorder.o osisheadings.o osisfootnotes.o osishtmlhref.o osiswebif.o osismorph.o osisstrongs.o osisplain.o osisrtf.o osislemma.o osisredletterwords.o osisscripref.o osiswordjs.o gbfhtml.o gbfhtmlhref.o gbfwebif.o gbfplain.o gbfrtf.o gbfstrongs.o gbffootnotes.o gbfheadings.o gbfredletterwords.o gbfmorph.o thmlstrongs.o thmlfootnotes.o thmlheadings.o thmlmorph.o thmllemma.o thmlscripref.o thmlvariants.o thmlgbf.o thmlrtf.o thmlhtml.o thmlhtmlhref.o thmlwebif.o thmlwordjs.o gbfthml.o gbfosis.o thmlosis.o thmlplain.o osisosis.o rtfhtml.o plainfootnotes.o plainhtml.o greeklexattribs.o unicodertf.o swgenbook.o rawgenbook.o swtext.o rawtext.o ztext.o swcom.o rawcom.o rawfiles.o zcom.o hrefcom.o swld.o rawld.o rawld4.o zld.o flatapi.o
i686-pc-linux-gnu-ranlib .libs/libsword.a
creating libsword.la
(cd .libs && rm -f libsword.la && ln -s ../libsword.la libsword.la)
make[1]: Leaving directory `/usr/build/tmp/portage/sword-1.5.8-r1/work/sword-1.5.8/lib'
Making all in .
make[1]: Entering directory `/usr/build/tmp/portage/sword-1.5.8-r1/work/sword-1.5.8'
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I./include  -I ./include  -ftemplate-depth-25 -DCURLAVAILABLE -O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden -MT buildtest.o -MD -MP -MF ".deps/buildtest.Tpo" -c -o buildtest.o buildtest.cpp; \
then mv -f ".deps/buildtest.Tpo" ".deps/buildtest.Po"; else rm -f ".deps/buildtest.Tpo"; exit 1; fi
/bin/sh ./libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -ftemplate-depth-25 -DCURLAVAILABLE -O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden  -Wl,-O1 -Wl,--sort-common -o buildtest  buildtest.o ./lib/libsword.la -lz 
mkdir .libs
i686-pc-linux-gnu-g++ -ftemplate-depth-25 -DCURLAVAILABLE -O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden -Wl,-O1 -Wl,--sort-common -o .libs/buildtest buildtest.o  ./lib/.libs/libsword.so -L/usr/lib -licui18n -licuuc -licudata -lpthread -licuio /usr/lib/libcurl.so /usr/lib/libidn.so -lssl -lcrypto -ldl /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -lz
buildtest.o: In function `main':
buildtest.cpp:(.text+0x145): undefined reference to `sword::VerseKey::setText(char const*)'
collect2: ld returned 1 exit status
make[1]: *** [buildtest] Error 1
make[1]: Leaving directory `/usr/build/tmp/portage/sword-1.5.8-r1/work/sword-1.5.8'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/sword-1.5.8-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  sword-1.5.8-r1.ebuild, line 32:   Called die
Comment 1 Stephen Horner 2006-07-02 23:53:31 UTC
Sorry, I should have added a few words to that initial bug report. Anyways, I just let my box 'emerge sword sword-modules gnomesword biblestudy' overnight, and found that it had an undefined reference (function) error. Anways, I'm not sure if this is a bug in the current release of sword, or something else. I'm going to have a look upstream and see what I can find in the mean time. Please email me if need be at sphorner #\@ gmail #\. com if need be.

Stephen Horner
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-02 23:56:15 UTC
emerge --info, please...
Comment 3 Robert Golding 2006-10-08 03:11:13 UTC
My error for same as above//
(cd .libs && rm -f libsword.so && ln -s libsword-1.5.8.so libsword.so)
i686-pc-linux-gnu-ar cru .libs/libsword.a  swkey.o listkey.o strkey.o treekey.o treekeyidx.o versekey.o swobject.o Greek2Greek.o utilstr.o utilxml.o swunicod.o swversion.o swbuf.o ftpparse.o url.o untgz.o roman.o curlftpt.o swconfig.o swmgr.o swfiltermgr.o encfiltmgr.o markupfiltmgr.o filemgr.o ftptrans.o swlocale.o localemgr.o swcacher.o swsearchable.o installmgr.o stringmgr.o swdisp.o swlog.o swmodule.o rawstr.o rawstr4.o swcomprs.o lzsscomprs.o zipcomprs.o rawverse.o swcipher.o zverse.o zstr.o entriesblk.o sapphire.o swbasicfilter.o swoptfilter.o latin1utf8.o latin1utf16.o utf8utf16.o utf16utf8.o scsuutf8.o utf8html.o utf8latin1.o utf8cantillation.o utf8hebrewpoints.o utf8greekaccents.o cipherfil.o osisheadings.o osisfootnotes.o osishtmlhref.o osiswebif.o osismorph.o osisstrongs.o osisplain.o osisrtf.o osislemma.o osisredletterwords.o osisscripref.o osiswordjs.o gbfhtml.o gbfhtmlhref.o gbfwebif.o gbfplain.o gbfrtf.o gbfstrongs.o gbffootnotes.o gbfheadings.o gbfredletterwords.o gbfmorph.o thmlstrongs.o thmlfootnotes.o thmlheadings.o thmlmorph.o thmllemma.o thmlscripref.o thmlvariants.o thmlgbf.o thmlrtf.o thmlhtml.o thmlhtmlhref.o thmlwebif.o thmlwordjs.o gbfthml.o gbfosis.o thmlosis.o thmlplain.o osisosis.o rtfhtml.o plainfootnotes.o plainhtml.o greeklexattribs.o unicodertf.o swgenbook.o rawgenbook.o swtext.o rawtext.o ztext.o swcom.o rawcom.o rawfiles.o zcom.o hrefcom.o swld.o rawld.o rawld4.o zld.o flatapi.o
i686-pc-linux-gnu-ranlib .libs/libsword.a
creating libsword.la
(cd .libs && rm -f libsword.la && ln -s ../libsword.la libsword.la)
make[1]: Leaving directory `/var/tmp/portage/sword-1.5.8-r1/work/sword-1.5.8/lib'
Making all in .
make[1]: Entering directory `/var/tmp/portage/sword-1.5.8-r1/work/sword-1.5.8'
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I./include  -I ./include  -ftemplate-depth-25 -DCURLAVAILABLE -march=athlon64 -O2 -pipe -msse3 -mmmx -fvisibility-inlines-hidden -MT buildtest.o -MD -MP -MF ".deps/buildtest.Tpo" -c -o buildtest.o buildtest.cpp; \
        then mv -f ".deps/buildtest.Tpo" ".deps/buildtest.Po"; else rm -f ".deps/buildtest.Tpo"; exit 1; fi
/bin/sh ./libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -ftemplate-depth-25 -DCURLAVAILABLE -march=athlon64 -O2 -pipe -msse3 -mmmx -fvisibility-inlines-hidden  -Wl,-O1 -Wl,--sort-common -o buildtest  buildtest.o ./lib/libsword.la -lz
mkdir .libs
i686-pc-linux-gnu-g++ -ftemplate-depth-25 -DCURLAVAILABLE -march=athlon64 -O2 -pipe -msse3 -mmmx -fvisibility-inlines-hidden -Wl,-O1 -Wl,--sort-common -o .libs/buildtest buildtest.o  ./lib/.libs/libsword.so -L/usr/lib /usr/lib/libcurl.so -lssl -lcrypto -ldl -lz
buildtest.o: In function `main':
buildtest.cpp:(.text+0x16e): 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-r1/work/sword-1.5.8'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/sword-1.5.8-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  sword-1.5.8-r1.ebuild, line 32:   Called die

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

emerge --info (Please note: I am not building 64bit, am using 32bit env)

one rob # emerge --info
Portage 2.1.2_pre2-r4 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System version 1.12.5
Last Sync: Fri, 06 Oct 2006 07:00:08 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
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.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -mmmx -m3dnow -msse3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident"
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/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -mmmx -m3dnow -msse3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.isp.net.au/ftp/pub/gentoo http://ftp.swin.edu.au/gentoo http://distfiles.gentoo.org http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib alsa arts asf avi bash-completion berkdb bitmap-fonts bluetooth bonobo browserplugin bzlib cairo cdparanoia cdr cli crypt cups dbus dlloader dri dv dvd dvdr dvdread eds elibc_glibc emboss encode esd fam fame ffmpeg firefox fortran freetype gdbm gif gimp glitz gnome gpm gstreamer gtk gtk2 hal imlib imlib2 input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jpeg kde kernel_linux ldap libg++ linguas_en mad mikmod mjpeg mmx mmxext mp3 mpeg mpg mplayer ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl oss pam pcre pdf perl png ppds pppd print python qt3 qt4 quicktime readline real reflection sane scanner sdl session spell spl sse ssl svg svga tcpd tga tiff totem truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa vorbis win32codecs wmf wmv xine xml xmms xorg xsane xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Robert Golding 2006-10-08 03:24:19 UTC
Removed "-fvisibility-inlines-hidden" and all was go ..

My mistake Jakub, had removed it before as I didn't "want to shoot my self in the foot" but must have copied it over by mistake when rebuilding this machine.
Didn't notice it until I copied --info to the bug report ..

I think this should be a warning to everybody how something you don't understand shouldn't be played with :-)

FIXED - remove -fvisibility-inlines-hidden from make.conf
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-10-08 11:14:38 UTC
Closing this.