Results 1 to 3 of 3

Thread: Error compiling Freeze

  1. #1
    Anhur is offline Registered User
    Name: Luigi Paioro
    Organization: INAF - IASF Milan
    Project: MIMA prototype
    Join Date
    Jun 2006
    Posts
    8

    Error compiling Freeze

    Hi to all!

    I'm new to ICE, and I would like to install it in order to test it and look at its facilities. The problem is that while I was trying to compile it from the sources I've got this error:

    Code:
    c++ -c -I.. -I../../include  -DFREEZE_API_EXPORTS -I/antigone/luigi/work/software/ice/db-4.3.29.NC/install/include   -ftemplate-depth-128 -Wall -D_REENTRANT -fPIC -g ConnectionI.cpp
    In file included from /usr/include/c++/4.0.2/backward/iostream.h:31,
                     from /antigone/luigi/work/software/ice/db-4.3.29.NC/install/include/db_cxx.h:60,
                     from ../Freeze/TransactionI.h:14,
                     from ../Freeze/ConnectionI.h:15,
                     from ConnectionI.cpp:10:
    /usr/include/c++/4.0.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
    In file included from ../Freeze/TransactionI.h:14,
                     from ../Freeze/ConnectionI.h:15,
                     from ConnectionI.cpp:10:
    /antigone/luigi/work/software/ice/db-4.3.29.NC/install/include/db_cxx.h:61:23: error: exception.h: No such file or directory
    /antigone/luigi/work/software/ice/db-4.3.29.NC/install/include/db_cxx.h:987: error: expected class-name before '{' token
    make[2]: *** [ConnectionI.o] Error 1
    make[2]: Leaving directory `/antigone/luigi/work/software/ice/Ice-3.0.1/src/Freeze'
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/antigone/luigi/work/software/ice/Ice-3.0.1/src'
    make: *** [all] Error 1


    The problem seams to be that the file db_cxx.h of BDB (I've compiled it from the ThirdParty-Sources-3.0.1.tar.gz distribution), searches for an exception.h file, which (I suppose) should be distributed with the c++ compiler, but it isn't.

    I use gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)

    Can you tell me how can I solve this problem or give me a work around?

    Thanks
    Luigi Paioro
    INAF - Istituto Nazionale di Astrofisica

    IASF Milano
    Via Bassini 15, I-20133 Milano, Italy
    Site : http://www.iasf-milano.inaf.it/

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Luigi,

    The simplest solution is to use the Berkeley DB package (with C++ support) provided by with your SuSE Linux distribution, instead of building your own.

    However, if you want to build you own Berkeley DB, make sure the configuration step succeeds ... in particular, check that you get:

    #define HAVE_CXX_STDHEADERS 1

    toward the top of the generated db_cxx.h file.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    Anhur is offline Registered User
    Name: Luigi Paioro
    Organization: INAF - IASF Milan
    Project: MIMA prototype
    Join Date
    Jun 2006
    Posts
    8

    Solved

    Thank you Bernard.

    You was right, the

    #define HAVE_CXX_STDHEADERS 1

    was missing, so I've compiled the BDB sources again with --enable-cxx flag, and now it works.

    Thank you again.

    Luigi
    Luigi Paioro
    INAF - Istituto Nazionale di Astrofisica

    IASF Milano
    Via Bassini 15, I-20133 Milano, Italy
    Site : http://www.iasf-milano.inaf.it/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IceE- 1.3.0 error compiling
    By gkas in forum Help Center
    Replies: 8
    Last Post: 12-21-2010, 05:57 AM
  2. Error compiling IceE with OpenEmbedded
    By andreynech in forum Bug Reports
    Replies: 2
    Last Post: 07-09-2009, 09:18 AM
  3. Compiling Ice-3 error
    By orphean in forum Help Center
    Replies: 13
    Last Post: 01-10-2006, 06:04 AM
  4. Ice3 compiling error with gcc 4.1.0
    By umber in forum Help Center
    Replies: 2
    Last Post: 12-17-2005, 10:42 PM
  5. Compiling Ice-1.5.1 on FreeBSD5.3Beta5 error
    By liguoqiang in forum Bug Reports
    Replies: 1
    Last Post: 10-22-2004, 11:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •