dbTalk Databases Forums  

db-3.2.9 compilation problems with --enable-tcl

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss db-3.2.9 compilation problems with --enable-tcl in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter
 
Posts: n/a

Default db-3.2.9 compilation problems with --enable-tcl - 08-31-2006 , 06:56 AM






Hello.


I'm trying to compile db-3.2.9 with --enable-tcl to run tests on it.
But compilation fails with the following error message:

..c -fPIC -DPIC -o util_sig.lo
/bin/sh ./libtool --mode=link cc -o db_archive \
db_archive.lo util_sig.lo libdb-3.2.la -lpthread -L/usr/lib
-ltcl8.4 -ldl -lieee -lm
cc -o .libs/db_archive db_archive.lo util_sig.lo .libs/libdb-3.2.so
-lpthread -L/usr/lib -ltcl8.4 -ldl -lieee -lm -lpthread -L/usr/lib
-ltcl8.4 -ldl -lieee -lm
/usr/lib/libieee.a.data+0x0): multiple definition of `_LIB_VERSION'
/usr/lib/libieee.a.data+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [db_archive] Error 1

Does anybody knows how to fix that?

TIA,
Peter.


Reply With Quote
  #2  
Old   
bogdan_dorian@yahoo.com
 
Posts: n/a

Default Re: db-3.2.9 compilation problems with --enable-tcl - 09-08-2006 , 08:27 AM






Hi Peter,

What I am sure of, is that you're linking the same library twice. Are
you sure that you didn't put -lieee option via config file for example?
(try to remove it)
Or it might be possible that the compiler automatically links that file
in.

Regards,
Bogdan Coman, Oracle


Reply With Quote
  #3  
Old   
Peter
 
Posts: n/a

Default Re: db-3.2.9 compilation problems with --enable-tcl - 09-30-2006 , 07:38 AM



Thank you for your answer, Bogdan.

Of course the problem is because -lieee is mentioned twice. And the
second time it comes from tclConfig.sh:

TCL_LIBS='-ldl -lieee -lm'

That is the reason I have problems only when tcl is enabled. Seems that
the build system is not working with new tcl library, but I did not
found time for proper fix (possibly aclocal/tcl.m4 requires
modifications)... I've asked because I hoped that this is a known issue
with the known fix.

Any way, thank you for your time.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.