View Single Post
  #1 (permalink)  
Old 01-21-2004
Bruce's Avatar
Bruce Bruce is offline
Registered User
 
 
Join Date: Feb 2003
Location: Perth, Western Australia
Posts: 17
Problems compiling against db-4.2.52

I am trying to compile Ice-1.2.0 (under Redhat 9). INSTALL.LINUX says I need
to build db-4.1, but I couldn't find this release at the sleepycat site so I downloaded
db.4.2.52. I built db using with "export LD_ASSUME_KERNEL=2.4.1" and installed
it into /usr/local/db. I get the following link errors while compiling icebox:

c++ -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -L../../lib -o ../../bin/icebox ServiceManagerI.o Server.o -lIceBox -lFreeze -lIce -lIceUtil -lpthread -L/usr/local/db/lib -ldb_cxx
../../lib/libFreeze.so: undefined reference to `DbEnv::set_rep_limit(unsigned, unsigned)'
../../lib/libFreeze.so: undefined reference to `DbEnv::get_errpfx(char const**)'
../../lib/libFreeze.so: undefined reference to `DbEnv::set_rep_transport(int, int (*)(DbEnv*, Dbt const*, Dbt const*, DbLsn const*, int, unsigned))'
../../lib/libFreeze.so: undefined reference to `DbEnv::dbrename(DbTxn*, char const*, char const*, char const*, unsigned)'
../../lib/libFreeze.so: undefined reference to `Db::get_env()'

I don't see a libdb_cxx in /usr/local/db/lib. Have I done something wrong building db or
has this library been removed in 4.2.52? Perhaps someone can point me at a download
for db-4.1?

Bruce Fountain
__________________
Bruce Fountain
Ice 1.2.0
OS=Redhat9
Compiler=gcc-3.2.2
Reply With Quote