Results 1 to 7 of 7

Thread: Make on Red Hat Enterprise Linux ES release 2.1 (Panama) fails

  1. #1
    ahartveld is offline Registered User
    Name: Albert Hartveld
    Organization: Vialis
    Project: Travel Information
    Join Date
    Oct 2003
    Location
    Haarlem, The Netherlands
    Posts
    11

    Unhappy Make on Red Hat Enterprise Linux ES release 2.1 (Panama) fails

    Hi,

    I have downloaded ICE 1.1.1.

    When I try to compile it I get the next messages:
    In file included from Unicode.cpp:15:
    ../../include/IceUtil/Unicode.h:23: parse error before `&'
    ../../include/IceUtil/Unicode.h:24: syntax error before `('
    Unicode.cpp:28: parse error before `&'

    and many more.

    I run the following version of the compiler (-v option):

    c++ -c -I../../include -DICE_UTIL_API_EXPORTS -v -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT Unicode.cpp
    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
    gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-118.7.2)

    Can anybody tell me what I do wrong?

    Thanks in advance.

    Albert
    Last edited by ahartveld; 10-03-2003 at 09:12 AM.

  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
    This is a very old compiler version (2.96). Can you perhaps try GCC 3.2?

    We support GCC 2.97 with STLport (the STL included in GCC 2.97 is broken). So if you cannot switch to GCC 3.2 for some reason, you must compile Ice with STLport. However, given the choice, I recommend to use GCC 3.2 over GCC 2.97 + STLport.

  3. #3
    ahartveld is offline Registered User
    Name: Albert Hartveld
    Organization: Vialis
    Project: Travel Information
    Join Date
    Oct 2003
    Location
    Haarlem, The Netherlands
    Posts
    11

    Xerces

    Hi,

    While building, now with gcc 3.2.3 and after downloading and installing Xerces 2.3 the build still does not work.
    I get the following errors:
    c++ -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -L../../lib -o ../../bin/xsdvalidate Validate.o -lIceUtil -lpthread -L/usr/local/src/xerces/xerces-c-src_2_3_0/lib -lxerces-c
    /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
    /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
    /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
    Validate.o: In function `toString(unsigned short const*)':
    :35: undefined reference to `xercesc_2_3::XMLString::transcode(unsigned short const*)'
    Validate.o: In function `main':
    :106: undefined reference to `xercesc_2_3::XMLUni::fgXercescDefaultLocale'

    followed by many others.

    a. o. undefined labels from xerces:
    /usr/local/src/xerces/xerces-c-src_2_3_0/lib/libxerces-c.so: undefined reference to `ostream::flush(void)'
    /usr/local/src/xerces/xerces-c-src_2_3_0/lib/libxerces-c.so: undefined reference to `ostream::write(char const *, int)'
    /usr/local/src/xerces/xerces-c-src_2_3_0/lib/libxerces-c.so: undefined reference to `cout'

    The makefile is in the directory slice2xsd and building xdsvalidate.

    Still something missing, or is there another problem?

    Thanks in advance.

    Albert
    Last edited by ahartveld; 10-03-2003 at 08:32 AM.

  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
    Hi Albert,

    Xerces-C is really a C++ library, so you need to build it with a C++ compiler compatible with your GCC version. GCC 2.9x and 3.x are not compatible.

    Cheers,
    Bernard

  5. #5
    ahartveld is offline Registered User
    Name: Albert Hartveld
    Organization: Vialis
    Project: Travel Information
    Join Date
    Oct 2003
    Location
    Haarlem, The Netherlands
    Posts
    11
    Hello Bernard,

    We have already upgraded our compiler to versie 3.2.3.
    With this version we have compiled Xerces-C.

    What else can be wrong?

    Albert

  6. #6
    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 Albert,

    We don't have access to a RedHat Entreprise Linux 2.1 system, so I tried with RedHat 7.3.

    I built GCC 3.2.3 and installed it in my home directory, and then added the corresponding bin directory to my PATH and the corresponding lib directory to my LD_LIBRARY_PATH.
    Next I built Xerces-C 2.3.0 with this compiler, and installed it also in my home directory. I defined XERCESC_HOME to point to this installation (see config/Make.rules in the Ice source distribution), and added $XERCESC_HOME/lib to my LD_LIBRARY_PATH.
    And finally I built Ice 1.1.1 without any problems (the tests passed as well).

    Maybe you could double-check that your libxerces-c.so is built as you expect, for example with:
    Code:
    ldd $XERCESC_HOME/lib/libxerces-c.so
    Otherwise it could be an incompatibility between GCC 3.2.3 and the linker/binutils on your system ... seems unlikely though.

    Best regards,
    Bernard

  7. #7
    ahartveld is offline Registered User
    Name: Albert Hartveld
    Organization: Vialis
    Project: Travel Information
    Join Date
    Oct 2003
    Location
    Haarlem, The Netherlands
    Posts
    11

    Wink

    Hi Bernard,

    Our building problems are solved now. It turned out the we had not compiler the xercesc library properly.

    Now everything builds and runs too.

    Thanks for you help.

    Albert

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Installing Ice 3.3.1 on Red Hat Enterprise 5
    By genetics_lab in forum Help Center
    Replies: 8
    Last Post: 07-28-2010, 03:29 PM
  2. Building Ice-3.3.0 on Red Hat 9
    By pjtait in forum Help Center
    Replies: 19
    Last Post: 09-10-2008, 06:09 AM
  3. Red Hat Enterprise Linux 5 support
    By bernard in forum Announcements
    Replies: 0
    Last Post: 06-13-2007, 04:54 PM
  4. Build error on Red Hat Linux (kernel:2.4.18)
    By rc_hz in forum Help Center
    Replies: 3
    Last Post: 11-26-2005, 07:58 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
  •