mvnForum Homepage


Posted by garysims at May 31, 2005 4:23:52 AM
Build problem on SUSE 9.2 64-bit
Hi,

Thanks for all your efforts in putting out 1.5.8...

I have a problem building the library on SUSE 9.2 64-bit:

make[1]: Entering directory `/home/gary/src/sword-1.5.8'
/bin/sh ./libtool --tag=CXX --mode=link g++ -ftemplate-depth-25 -g -O2 -o buildtest buildtest.o ./lib/libsword.la
g++ -ftemplate-depth-25 -g -O2 -o .libs/buildtest buildtest.o ./lib/.libs/libsword.so /usr/lib64/libstdc++.so
./lib/.libs/libsword.so: undefined reference to `uncompress'
./lib/.libs/libsword.so: undefined reference to `gzerror'
./lib/.libs/libsword.so: undefined reference to `gzread'
./lib/.libs/libsword.so: undefined reference to `gzdopen'
./lib/.libs/libsword.so: undefined reference to `compress'
collect2: ld returned 1 exit status
make[1]: *** [buildtest] Error 1
make[1]: Leaving directory `/home/gary/src/sword-1.5.8'
make: *** [all-recursive] Error 1

1.5.8 builds fine on a SUSE 9.2 32-bit system, this only happens to me on the 64-bit version. Looking a bit closer I see that the last call to g++ doesn't call -lz which the 32-bit version does.

If I run:
g++ -ftemplate-depth-25 -g -O2 -o .libs/buildtestbuildtest.o ./lib/.libs/libsword.so /usr/lib64/libstdc++.so /usr/lib64/libz.so.1

The it compiles OK, however then running make again doesn't move any further. I am not that familiar with your build procedures. If anyone can point me the right direction, I will be very happy to do some more digging around.

Thanks,

Gary
----------------------------------------
Gary Sims
MyBibleBase.com
The Hungry Penguin