Archived

This forum has been archived. Please start a new discussion on GitHub.

Building problem on FreeBSD5.1

Hi all,

I am building ICE on FreeBSD5.1, and I cannot proceed without db_cxx.h,
I search on my machine and cannot find it. Does my system lack of something that is needed by ICE?

What I got is the next messages:
In file included from ../Freeze/ConnectionI.h:15,
from ConnectionI.cpp:10:
../Freeze/TransactionI.h:14:20: db_cxx.h: No such file or directory
In file included from ../Freeze/ConnectionI.h:16,
from ConnectionI.cpp:10:
../Freeze/SharedDbEnv.h:16:20: db_cxx.h: No such file or directory
In file included from ../Freeze/MapI.h:14,
from ConnectionI.cpp:11:
../Freeze/SharedDb.h:14:20: db_cxx.h: No such file or directory

...

.... and what I was building is :
Ice-2.1.0.tar.gz and ThirdParty-Sources-2.1.0.tar.gz, I have build and install bzip2-1.0.2.tar.gz db-4.2.52.zip expat-1.95.8.tar.gz openssl-0.9.7e.tar.gz, threre is no problems with those ThirdParty Packages.

My Make.rules is something like this:
prefix                  = /usr/local/Ice-$(VERSION)

OPTIMIZE                = yes

GPL_BUILD               := yes

ifeq ($(GPL_BUILD),yes)
   USE_READLINE            := yes
endif

#STLPORT_HOME           ?= /opt/STLport

#BZIP2_HOME             = /usr/bin/

#DB_HOME                = /usr/local/BerkeleyDB.4.2

OPENSSL_HOME            = /usr/local/

KERBEROS_HOME           ?= /usr/kerberos

EXPAT_HOME              = /usr/local/

#READLINE_HOME          ?= /opt/readline



# ... Many other lines that no need to be changed ...

Comments

  • Still about the libdb_cxx

    I found that i forgot to set DB_HOME to "DB_HOME = /usr/local/BerkeleyDB.4.2". I corrected that and then got the next problem:

    c++ -shared -O2 -DNDEBUG -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -D_THREAD_SAFE -L../../lib -o ../../lib/libFreeze.so.2.1.0 -Wl,-h,libFreeze.so.21 CatalogData.o Catalog.o ConnectionF.o ConnectionI.o Connection.o DB.o EvictorF.o EvictorI.o EvictorIteratorI.o Evictor.o EvictorStorage.o Exception.o IndexI.o Index.o MapI.o ObjectStore.o SharedDbEnv.o SharedDb.o TransactionHolder.o TransactionI.o Transaction.o Util.o -lIce -lIceUtil -L/usr/local/BerkeleyDB.4.2/lib -ldb_cxx -lc_r
    /usr/bin/ld: cannot find -ldb_cxx
    gmake[2]: *** [../../lib/libFreeze.so.2.1.0] error 1
    gmake[2]: Leaving directory `/usr/home/backup/ICE/Ice-2.1.0/src/Freeze'
    gmake[1]: *** [all] error 1
    gmake[1]: Leaving directory `/usr/home/backup/ICE/Ice-2.1.0/src'
    gmake: *** [all] error 1

    I... once again, cannot find libdb_cxx.so or libdb_cxx.a, who can help me for that?
  • the missing libdb_cxx...

    After I Build and installed the BerkeleyDB with "--enable-cxx" option, I can now continue building the ICE on FreeBSD5.1.
  • have you tested on FreeBSD 5.4? :)