Home Help Center

Compiling Ice 1.2.0 on RH 9.0


I am trying to compile Ice-1.2.0 on Linux RedHat 9.0. When doing a 'make' I get the following error

c++ -c -I.. -I../../include -DFREEZE_API_EXPORTS -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT TransactionI.cpp
TransactionI.cpp: In member function `virtual void
TransactionI.cpp:29: parse error before `&' token
TransactionI.cpp:33: `dx' undeclared (first use this function)
TransactionI.cpp:33: (Each undeclared identifier is reported only once for each
function it appears in.)

It's complaining about the line

catch(const ::DbDeadlockException& dx)

which seems wholly innocent to my eyes (no expert on gcc errors and no c++ expert either).

Any hints ? The notes about RedHat 9 in INSTALL.LINUX did not indicate anything special needed for building Ice, only for running it. I did not change config/Make.rules since it did not seem necessary (?).

My third-party libs seem up-to-date (plain vanilla RedHat 9 with mono 0.29 installed afterwards and now Ice - otherwise nothing):

[[email protected] root]# cat /proc/version
Linux version 2.4.20-8 ([email protected]) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003
[[email protected] root]# rpm -q db4-devel
[[email protected] root]# rpm -q expat-devel
[[email protected] root]# rpm -q openssl-devel
[[email protected] root]# rpm -q bzip2-devel
[[email protected] root]# rpm -q readline-devel
[[email protected] root]# rpm -q ncurses-devel
[[email protected] root]#

Best regards

-- Jan Holst Jensen, Novo Nordisk A/S, Denmark


  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff

    Ice requires BerkeleyDB 4.1.25 with C++ support enabled. Have a look at this thread for more information.

    Take care,
    - Mark
  • DUH! 4.0 < 4.1 I guess :-). My eyes must have skipped a dot and read

    [[email protected] root]# rpm -q db4-devel

    as - or something to that effect. Thanks for pointing out this rather obvious mistake. I'll proceed according to the detailed instructions in the thread you referred.

    I was focusing to heavily on that rather obscure compiler error message complaining about the 'dx' variable. It is in reality trying to tell me that the 'DbDeadlockException' type is not defined (?).


    -- Jan
Sign In or Register to comment.