mvnForum Homepage Welcome Guest  | Guest Setting  |  Register  |   Login
  Search  
Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


»

No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
Post new Thread
Author
Previous Thread This topic has been viewed 4510 times and has 3 replies Next Thread
Male garysims
Newbie




Joined: May 31, 2005
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
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
[May 31, 2005 4:23:52 AM] Show Printable Version of Post    View Member Profile    Send Private Message    garyinvulcan [Link] Report threatening or abusive post: please login first  Go to top 
Male garysims
Newbie




Joined: May 31, 2005
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
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
[May 31, 2005 5:10:06 AM] Show Printable Version of Post    View Member Profile    Send Private Message    garyinvulcan [Link] Report threatening or abusive post: please login first  Go to top 
Male jansorg
Developer
Member's Avatar


Joined: Nov 15, 2003
Post Count: 88
Status: Offline
Reply to this Post  Reply with Quote 
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
[May 31, 2005 5:25:05 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male garysims
Newbie




Joined: May 31, 2005
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
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
[May 31, 2005 8:00:33 AM] Show Printable Version of Post    View Member Profile    Send Private Message    garyinvulcan [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread