mvnForum Homepage

Print at Jul 23, 2014 7:13:43 PM View all posts in this thread on one page
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

Posted by garysims at May 31, 2005 5:10:06 AM
Re: Build problem on SUSE 9.2 64-bit
After some further playing around I have discovered that I can build the library if I disable zlib support with ./configure --without-zlib.

This is not a solution, but it does help narrow down the problem!

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

Posted by jansorg at May 31, 2005 5:25:05 AM
Re: Build problem on SUSE 9.2 64-bit
What happens if you do
make distclean; ./autogen.sh; ./usrinst.sh; make
?
This recreates the configure script on your system.

Joachim

Posted by garysims at May 31, 2005 8:00:33 AM
Re: Build problem on SUSE 9.2 64-bit
Hi,

With regards to Sword 1.5.8 compiling it on Suse 9.2 64 bit, I have solved the
problem. The SUSE 9.2 DVD from their FTP doesn't come with zlib-devel.
However downloading the rpm separately and installing it solved the problem.

It looks like some minor work is required in the ./configure to spot when the
zlib-devel is missing.

Thanks,

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