Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-03-2003
jukvaini jukvaini is offline
Registered User
 
 
Join Date: Apr 2003
Location: Finland
Posts: 1
Question Can Ice be compiled with gcc 2.95?

The Linux installation nodes say:
C++ compiler
------------

- GCC 3.2; or

- GCC 2.96 with STLport 4.5

I however need to evaluate Ice with GCC 2.95.3 as currently 2.96 is not an option for us. With 2.95 Ice compiles well until I get this:

make[2]: Entering directory `/home/jukvaini/ice/Ice-1.0.1/src/Ice'
pentium3-g++ -c -I.. -I../../include -I/home/jukvaini/ice/STLport-4.5.3/include/stlport -g -ftemplate-depth-128 -fPIC -Wall -D__linux__ Router.cpp
Router.cpp: In function `void IceInternal::checkedCast(const Ice::ObjectPrx &, const _STL::string &, IceInternal::ProxyHandle<IceProxy::Ice::Router> &)':
Router.cpp:58: `const class IceInternal::ProxyHandle<IceProxy::Ice::Object>' used where a `bool' was expected
make[2]: *** [Router.o] Error 1
make[2]: Leaving directory `/home/jukvaini/ice/Ice-1.0.1/src/Ice'

Which comes from Router.cpp code:
54 void
55 IceInternal::checkedCast(const ::Ice::ObjectPrx& b, ::Ice::RouterPrx& d)
56 {
57 d = 0;
58 if(b)
59 {

TIA!

Reply With Quote
  #2 (permalink)  
Old 04-03-2003
CatOne CatOne is offline
Registered User
 
Name: Bill Lloyd
Organization: --
Project: --
 
Join Date: Feb 2003
Location: California
Posts: 18
I really doubt this is workable. There were SUBSTANTIAL changes to GCC between versions 2.95.3 and version 3.2. Many of them were around STL (which ice leverages heavily).

Why specifically can't you install GCC 3.2 or 3.3 on that machine?
Reply With Quote
  #3 (permalink)  
Old 04-03-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,780
I made some changes to Ice, and now it compiles without problems with GCC 2.95.3. (Apparently GCC 2.95.3 has some problems with fully scoped names and operator bool.)

All tests work, except for tests that involve loading of shared libraries (plugins, IcePack). I'm sure we can fix this problem, too.

If you like to have a snapshot version with support for GCC 2.95.3, please email me directly at marc@zeroc.com.
Reply With Quote
  #4 (permalink)  
Old 04-03-2003
CatOne CatOne is offline
Registered User
 
Name: Bill Lloyd
Organization: --
Project: --
 
Join Date: Feb 2003
Location: California
Posts: 18
Looks like I better do more homework before I put the words "no can do" in front of master Marc. Mea culpa ;-)
Reply With Quote
  #5 (permalink)  
Old 04-03-2003
Bruce's Avatar
Bruce Bruce is offline
Registered User
 
 
Join Date: Feb 2003
Location: Perth, Western Australia
Posts: 17
Quote:
Originally posted by marc
I made some changes to Ice, and now it compiles without problems with GCC 2.95.3. (Apparently GCC 2.95.3 has some problems with fully scoped names and operator bool.)
Note though that you should be using the stlport. I spent a miserable
week tracking down an intermittent bug before discovering that the
std::string in gcc stl for 2.95 was not thread safe.
__________________
Bruce Fountain
Ice 1.2.0
OS=Redhat9
Compiler=gcc-3.2.2
Reply With Quote
  #6 (permalink)  
Old 04-07-2003
Ivan Ivan is offline
Registered User
 
 
Join Date: Feb 2003
Location: Helsinki, Finland
Posts: 15
patch

For those who didn't get snapshot version from marc but still want to compile Ice with GCC 2.95.3 can apply attached patch.

Ivan
Attached Files
File Type: txt ice-gcc2_95_3.patch.txt (10.6 KB, 227 views)
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
Encoding Problem about Chinese, client compiled by Java, server compiled by C++ richardma Help Center 6 12-20-2005 11:00 PM
Can ICE be compiled under Borland C++? Hix-roll Comments 1 11-24-2005 10:53 PM
Pre-Compiled Headers mario Help Center 9 11-10-2005 03:22 AM
Ice and native compiled Java (GJC) taweili Help Center 0 02-02-2004 08:20 PM


All times are GMT -4. The time now is 01:01 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.