Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-05-2003
georgeal georgeal is offline
Registered User
 
 
Join Date: Mar 2003
Posts: 4
Linker error while building IceBox

Hi.

I get the following error while compiling Ice 1.0.1

c++ -L../../lib -o ../../bin/icebox ServiceManagerI.o Server.o -lIceBox -lFreeze -lIceXML -lIce -ldl -lbz2 -lIceUtil -lpthread -luuid -ldb
../../lib/libFreeze.so: undefined reference to `txn_abort'
../../lib/libFreeze.so: undefined reference to `txn_begin'
../../lib/libFreeze.so: undefined reference to `txn_commit'
collect2: ld returned 1 exit status

As far as I can tell txn_* are in the berkeley libraries. I've checked and I do have libdb4.0 and libdb4.1 in /usr/lib

I'm running Debian unstable. Have any Debian users experienced similar problems?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-08-2003
georgeal georgeal is offline
Registered User
 
 
Join Date: Mar 2003
Posts: 4
Well...

It appears that I cannot build successfully using the Debian versions of the libdb* libraries. My workaround was to install Berkeley DB from www.sleepycat.com (as suggested in the INSTALL notes) in /opt. I then changed my DB_PREFIX to point to the appropriate location, did a "make clean" and then a "make".

If anyone suspects why I wasn't able to build Ice using the Debian libdb libraries I'd be very happy to know.

Regards.
Reply With Quote
  #3 (permalink)  
Old 03-08-2003
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
Hi,

My first thought was that perhaps there was a discrepancy between the header files you were compiling against and the library you were linking against. I also wondered if transaction support might be an optional feature when building BerkeleyDB, but that doesn't appear to be the case.

In any event, I'm glad to hear you've resolved the issue.

Take care,
- Mark
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
Linker errors building with Borland C++ Builder amercieca Help Center 10 11-08-2006 06:18 AM
building ice for C# aditi Help Center 4 11-13-2004 08:37 PM
Icebox Freeze service error xdm Help Center 1 03-07-2004 10:19 AM
Problems building Ice-1.1.1 kutsuya Help Center 2 10-28-2003 12:17 AM
Compile error on Icebox amrufon Help Center 7 05-09-2003 01:24 AM


All times are GMT -4. The time now is 07:13 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.