Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #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
  #2 (permalink)  
Old 01-21-2004
michi's Avatar
michi michi is online now
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 889
Hi Bruce,

not sure what's going on there exactly -- I haven't tried with 4.2 yet. But, from the errors you are getting, I suspect that the Berkeley DB API has changed. Until we get around to porting to the latest version, you can pick up 4.1.25 at http://www.sleepycat.com/update/snap...-4.1.25.tar.gz. That version is known to work.

Cheers,

Michi.
Reply With Quote
  #3 (permalink)  
Old 01-21-2004
Bruce's Avatar
Bruce Bruce is offline
Registered User
 
 
Join Date: Feb 2003
Location: Perth, Western Australia
Posts: 17
Damn. I just built it again from db-4.1.25 and I got the same error. There is still no
libdb_cxx.a in /usr/local/db/lib. I built db as per the INSTALL.LINUX instructions
for RH9, but without the --enable-java option. Am I missing something obvious?
__________________
Bruce Fountain
Ice 1.2.0
OS=Redhat9
Compiler=gcc-3.2.2
Reply With Quote
  #4 (permalink)  
Old 01-21-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,771
Did you run configure with --enable-cxx? Have a look at:

http://www.sleepycat.com/docs/ref/build_unix/conf.html
Reply With Quote
  #5 (permalink)  
Old 01-27-2004
Bruce's Avatar
Bruce Bruce is offline
Registered User
 
 
Join Date: Feb 2003
Location: Perth, Western Australia
Posts: 17
Quote:
Originally posted by marc
Did you run configure with --enable-cxx?
Umm.... No. In my defense I will point out that INSTALL.LINUX
doesn't mention --enable-cxx, and I assumed that it would build
the c++ libraries by default. And it was late. And the dog ate my
homework...
__________________
Bruce Fountain
Ice 1.2.0
OS=Redhat9
Compiler=gcc-3.2.2
Reply With Quote
  #6 (permalink)  
Old 01-27-2004
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 760
Yes, that's an unfortunate bug in INSTALL.LINUX.

See Problem compiling ICE 1.2.0 on Mandrake 9.1 for more details. It will be fixed in the next release.

Cheers,
Bernard
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP compiling !! akdess Help Center 1 04-07-2005 08:37 AM
Problems compiling IceCS with mono on Fedora Core 3 iostream Help Center 5 12-10-2004 05:52 PM
Compiling Ice 1.2.0 on RH 9.0 Jan_Holst Help Center 2 02-02-2004 11:38 AM
Compiling ICE 1.2.0 catalin Help Center 7 01-16-2004 05:40 AM
Compiling ICE with VC 6.0 jpm Help Center 2 05-30-2003 05:51 PM


All times are GMT -4. The time now is 06:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.