Home Help Center

Problems building Ice-1.1.1


Here is the problem (sar far):
c++ -O2 -DNDEBUG -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -L../../lib -o ../../bin/icebox ServiceManagerI.o Server.o -lIceBox -lFreeze -lIceXML -lIce -lIceUtil -lpthread -L/usr/lib -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

Here is a quote from config/Make.rules
DB_HOME = /usr

A list of my libdb files:
kutsuya / # ls /usr/lib/libdb*
libdb-1.so libdb.so libdb_cxx-3.so libdb_java-4.0.so
libdb-3.2.a libdb.so.2 libdb_cxx-4.0.a libdb_java.a
libdb-3.2.la libdb.so.3 libdb_cxx-4.0.la libdb_java.so
libdb-3.2.so libdb1.a libdb_cxx-4.0.so libdb_tcl-4.0.a
libdb-3.so libdb1.so libdb_cxx.a libdb_tcl-4.0.la
libdb-4.0.a libdb1.so.2 libdb_cxx.so libdb_tcl-4.0.so
libdb-4.0.la libdb_cxx-3.2.a libdb_cxx.so.3 libdb_tcl.a
libdb-4.0.so libdb_cxx-3.2.la libdb_java-4.0.a libdb_tcl.so
libdb.a libdb_cxx-3.2.so libdb_java-4.0.la

Showing the symbolic links:
kutsuya / # ls /usr/include/db.h -all
lrwxr-xr-x 1 root root 8 Oct 8 18:51 /usr/include/db.h -> db4/db.h
kutsuya / # ls /usr/lib/libdb.so -all
lrwxr-xr-x 1 root root 12 Oct 8 18:51 /usr/lib/libdb.so -> libdb-4.0.so

Maybe the problem is obvious to someone else, or maybe some hints where I can start looking for a solution Thanks



  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hello Kutsuya,

    It looks like you're using a Berkeley DB built with --with-uniquename. See http://www.zeroc.com/vbulletin/showthread.php?s=&threadid=160

    Maybe this patch will help? Which Linux distribution are you using?

  • kutsuyakutsuya Member
    Hello bernard,

    I'm developing an ICE ebuild for Gentoo Linux. I see that Gentoo DB does build with --with-uniqename. Thanks for your link, I'll check if the patch will do the job.

Sign In or Register to comment.