Archived

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

Compiling Ice 1.2.0 on RH 9.0

Hi.

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
Freeze::TransactionI::commit()':
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):

[root@localhost root]# cat /proc/version
Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003
[root@localhost root]# rpm -q db4-devel
db4-devel-4.0.14-20
[root@localhost root]# rpm -q expat-devel
expat-devel-1.95.5-2
[root@localhost root]# rpm -q openssl-devel
openssl-devel-0.9.7a-2
[root@localhost root]# rpm -q bzip2-devel
bzip2-devel-1.0.2-8
[root@localhost root]# rpm -q readline-devel
readline-devel-4.3-5
[root@localhost root]# rpm -q ncurses-devel
ncurses-devel-5.3-4
[root@localhost root]#

Best regards

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

Comments

  • mes
    mes California
    Hi,

    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

    [root@localhost root]# rpm -q db4-devel
    db4-devel-4.0.14-20

    as 4.1.4.20 - 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 (?).

    Cheers

    -- Jan