Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-02-2003
ahartveld 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.
Reply With Quote
  #2 (permalink)  
Old 10-02-2003
marc's Avatar
marc marc is online now
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,773
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.
Reply With Quote
  #3 (permalink)  
Old 10-03-2003
ahartveld 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.
Reply With Quote
  #4 (permalink)  
Old 10-03-2003
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 763
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
Reply With Quote
  #5 (permalink)  
Old 10-03-2003
ahartveld 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
Reply With Quote
  #6 (permalink)  
Old 10-03-2003
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 763
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
Reply With Quote
  #7 (permalink)  
Old 10-07-2003
ahartveld 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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
getifaddrs() does not supported by glibc, IceE fails to make app in /IceE/test syseeker Help Center 2 07-02-2006 09:27 PM
Compile error on Redhat Enterprise Linux 3.0 update 2 minifat Bug Reports 2 06-03-2005 07:50 PM
Redhat Enterprise Linux (RHEL) support? kent144 Help Center 3 08-07-2004 08:19 PM
STL assertion failure make test fails sylvain Bug Reports 2 03-02-2003 07:24 AM
make test fails with Python 2.0 jmu Bug Reports 0 02-23-2003 02:25 PM


All times are GMT -4. The time now is 03:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.