Results 1 to 5 of 5

Thread: how compile Ice-1.3.0 in linux7.3

  1. #1
    li.c++ is offline Registered User
    Name: lucas li
    Organization: none
    Project: none
    Join Date
    Jun 2004
    Posts
    6

    Unhappy how compile Ice-1.3.0 in linux7.3

    I have set environment variant:
    DB_HOME="/usr/local/BerkeleyDB.4.2"
    LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.2/lib:$LD_LIBRARY_PATH
    PATH="/usr/local/BerkeleyDB.4.2/bin:$PATH

    follow errors:

    making all in IceBox
    make[2]: Entering directory `/code/Ice-1.3.0/src/IceBox'
    rm -f ../../bin/icebox
    c++ -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -L../../lib -o ../../bin/icebox ServiceManagerI.o Server.o -lIceBox -lFreeze -lIce -lIceUtil -L/usr/local/lib -lstlport_gcc_stldebug -lpthread
    ../../lib/libFreeze.so: undefined reference to `DbEnv::set_error_stream(_STL::basic_ostream<char, _STL::char_traits<char> > *)'
    ../../lib/libFreeze.so: undefined reference to `Db::verify(char const *, char const *, _STL::basic_ostream<char, _STL::char_traits<char> > *, unsigned int)'
    ../../lib/libFreeze.so: undefined reference to `Db::set_error_stream(_STL::basic_ostream<char, _STL::char_traits<char> > *)'
    collect2: ld returned 1 exit status

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Which GNU C++ version are you using? You should use GCC 3.2 or higher. If you use GCC 2.96, you must also install STLport. Please see the file INSTALL.LINUX for details.

  3. #3
    li.c++ is offline Registered User
    Name: lucas li
    Organization: none
    Project: none
    Join Date
    Jun 2004
    Posts
    6
    Yes I have set STLPORT_HOME=/usr/local in Make.rules.
    I have install stlport-4.6.2 in /usr/local/include/
    My gcc version is 2.96

  4. #4
    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
    You need to compile Berkeley DB (configured with --enable-cxx) with the same C++ compiler and STL implementation as Ice. In this case, GCC 2.96 with STLPort.

    Cheers,
    Bernard

  5. #5
    li.c++ is offline Registered User
    Name: lucas li
    Organization: none
    Project: none
    Join Date
    Jun 2004
    Posts
    6
    OK,Thanks very much,let me try it

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. compile Ice-3.3.0 error
    By li.c++ in forum Help Center
    Replies: 1
    Last Post: 12-17-2010, 03:24 AM
  2. compile ice-3.4.1 with ARM
    By wan in forum Help Center
    Replies: 0
    Last Post: 07-01-2010, 05:44 AM
  3. Replies: 5
    Last Post: 06-21-2010, 04:03 AM
  4. compile ice-3.0.0 error
    By zhushisong in forum Help Center
    Replies: 1
    Last Post: 11-24-2005, 04:38 AM
  5. core in demo/IcePack/hello (Linux7.3+Ice1.5)
    By rc_hz in forum Help Center
    Replies: 5
    Last Post: 11-15-2004, 03:24 PM

Posting Permissions

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