[sword-devel] Undefined Reference errors while compiling sword-1.5.8-r1...

DM Smith dsmith555 at yahoo.com
Mon Jul 3 14:05:09 MST 2006


I had the same problem.
I fixed it with: (not sure if I needed to do all of this)
make clean
./autogen.sh
./usrinst.sh
make

Stephen Horner wrote:
> Hello,
>
> I left my box to compile sword-1.5.8-r1 overnight, and found that it
> was unable to compile do to the following compilation error:
>
> (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
>
> During configuration I've enabled icu curl and lucene.
>
> The information concerning my system is as follows:
>
> Portage 2.1-r1 (!/usr/portage/profiles/default-linux/x86/2005.1,
> gcc-4.0.2, glibc-2.3.6-r0, 2.6.15-nekrohitler2 i686)
> =================================================================
> System uname: 2.6.15-voidengineer2 i686 Pentium III (Coppermine)
> Gentoo Base System version 1.6.13
> ccache version 2.3 [enabled]
> dev-lang/python:     2.3.5, 2.4.2
> dev-python/pycrypto: 2.0.1-r5
> dev-util/ccache:     2.3
> dev-util/confcache:  [Not Present]
> sys-apps/sandbox:    1.2.12
> sys-devel/autoconf:  2.13, 2.59-r6
> sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
> sys-devel/binutils:  2.16.1
> sys-devel/gcc-config: 1.3.12-r4
> sys-devel/libtool:   1.5.20
> virtual/os-headers:  2.6.11-r2
> ACCEPT_KEYWORDS="x86"
> AUTOCLEAN="yes"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O2 -march=pentium3 -mtune=pentium3 -pipe"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
> /usr/share/config /usr/share/cursors/xorg-x11/default
> /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/terminfo"
> CXXFLAGS="-O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer
> -pipe -fvisibility-inlines-hidden"
> DISTDIR="/usr/distfiles"
> FEATURES="autoconfig candy ccache distlocks metadata-transfer notitles
> sandbox sfperms splitdebug strict"
> GENTOO_MIRRORS="http://gentoo.osuosl.org/
> ftp://cs.ubishops.ca/pub/gentoo
> ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
> ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
> ftp://gentoo.mirrored.ca/"
> LANG="en_US.UTF-8"
> LC_ALL="en_US.UTF-8"
> LDFLAGS="-Wl,-O1 -Wl,--sort-common"
> 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="/usr/build/tmp"
> PORTDIR="/other/usr/portage"
> PORTDIR_OVERLAY="/usr/local/overlays/bmg-main /usr/local/overlays/voidengineer"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="x86 X alsa apm asf avi berkdb bitmap-fonts cairo cli crypt dbus
> directfb dlloader dri emboss encode examples fbcon flac foomaticdb
> fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 imlib imlib2
> ipv6 isdnlog jpeg libg++ libwww mad maildir mikmod mime mmx mng motif
> mozsvg mp3 mpeg mplayer ncurses nls nptl nptlonly ogg oggvorbis opengl
> pam pcre pdf pdflib perl png pppd python qt3 qt4 quicktime readline
> reflection sdl session smime spell spl sse ssl tcpd tetex theora
> threads truetype truetype-fonts type1-fonts unicode userlocales
> video_cards_nvidia vorbis win32codecs xml xml2 xmms xorg xscreensaver
> xv zlib elibc_glibc input_devices_keyboard input_devices_mouse
> input_devices_evdev kernel_linux userland_GNU"
> Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, MAKEOPTS,
> PORTAGE_RSYNC_EXTRA_OPTS
>
> I hope this is what you need in order to find any possible problems on
> your side of things.
>
> Thank you brothers,
>
> Stephen Horner
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
>   



More information about the sword-devel mailing list