Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-13-2006
wuqiu's Avatar
wuqiu wuqiu is offline
Registered User
 
Name: wuqiu
Organization: ch-studio
Project: rim
 
Join Date: Mar 2006
Posts: 6
Build error in Redhat Linux 9.0

I solve it myself already. thanks.
---------------------------------------

I build ICE-3.0.1 in Redhat Linux 9.0. but it failed.
I already install Berkeley DB 4.3.29 with --enable-cxx.

the error message is follow, help me.

----------

c++ -c -I.. -I../../include -DFREEZE_API_EXPORTS -ftemplate-depth-128 -Wall -D_REENTRANT -fPIC -g EvictorI.cpp
EvictorI.cpp: In member function `virtual void Freeze::EvictorI::run()':
EvictorI.cpp:1622: parse error before `&' token
EvictorI.cpp:1627: `out' undeclared (first use this function)
EvictorI.cpp:1627: (Each undeclared identifier is reported only once for each
function it appears in.)
EvictorI.cpp:1634: parse error before `catch'
EvictorI.cpp:1637: `ex' undeclared (first use this function)
EvictorI.cpp:1637: `dx' undeclared (first use this function)
EvictorI.cpp:1641: must have at least one catch per try block
EvictorI.cpp: At global scope:
EvictorI.cpp:1642: parse error before `while'
EvictorI.cpp:1651: syntax error before `!=' token
EvictorI.cpp:1651: syntax error before `++' token
EvictorI.cpp:1654: syntax error before `->' token
EvictorI.cpp:1656: syntax error before `.' token
EvictorI.cpp:1659: syntax error before `!=' token
EvictorI.cpp:1659: syntax error before `++' token
EvictorI.cpp:1682: syntax error before `.' token
EvictorI.cpp:1683: ISO C++ forbids declaration of `evict' with no type
EvictorI.cpp:1685: parse error before `if'
EvictorI.cpp:1688: ISO C++ forbids declaration of `notifyAll' with no type
EvictorI.cpp:1689: parse error before `}' token
EvictorI.cpp:1696: syntax error before `<<' token
EvictorI.cpp:1697: syntax error before `.' token
EvictorI.cpp:1698: invalid use of `this' at top level
EvictorI.cpp:1698: `_communicator' was not declared in this scope
EvictorI.cpp:1698: ISO C++ forbids declaration of `handleFatalError' with no
type
EvictorI.cpp:1698: `int handleFatalError' redeclared as different kind of
symbol
EvictorI.cpp:77: previous declaration of `void handleFatalError(const
Freeze::EvictorPtr&, const Ice::CommunicatorPtr&)'
EvictorI.cpp:1698: initializer list being treated as compound expression
EvictorI.cpp:1699: parse error before `}' token
EvictorI.cpp:1703: syntax error before `<<' token
EvictorI.cpp:1704: syntax error before `.' token
EvictorI.cpp:1705: invalid use of `this' at top level
EvictorI.cpp:1705: `_communicator' was not declared in this scope
EvictorI.cpp:1705: ISO C++ forbids declaration of `handleFatalError' with no
type
EvictorI.cpp:1705: redefinition of `int handleFatalError'
EvictorI.cpp:1698: `int handleFatalError' previously defined here
EvictorI.cpp:1705: initializer list being treated as compound expression
EvictorI.cpp:1706: parse error before `}' token
EvictorI.cpp:1710: syntax error before `<<' token
EvictorI.cpp:1711: syntax error before `.' token
EvictorI.cpp:1712: invalid use of `this' at top level
EvictorI.cpp:1712: `_communicator' was not declared in this scope
EvictorI.cpp:1712: ISO C++ forbids declaration of `handleFatalError' with no
type
EvictorI.cpp:1712: redefinition of `int handleFatalError'
EvictorI.cpp:1705: `int handleFatalError' previously defined here
EvictorI.cpp:1712: initializer list being treated as compound expression
EvictorI.cpp:1713: parse error before `}' token
EvictorI.cpp: In member function `std::vector<std::string,
std::allocator<std::string> > Freeze::EvictorI::allDbs() const':
EvictorI.cpp:1911: no matching function for call to `Db:pen(int, const char*,
int, DBTYPE, int, int)'
/usr/include/db_cxx.h:519: candidates are: int Db:pen(const char*, const
char*, DBTYPE, unsigned int, int)
make[2]: *** [EvictorI.o] Error 1
make[2]: Leaving directory `/home/wuqiu/Ice-3.0.1/src/Freeze'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/wuqiu/Ice-3.0.1/src'
make: *** [all] Error 1

Last edited by wuqiu : 04-14-2006 at 12:07 AM.
Reply With Quote
  #2 (permalink)  
Old 04-14-2006
wuqiu's Avatar
wuqiu wuqiu is offline
Registered User
 
Name: wuqiu
Organization: ch-studio
Project: rim
 
Join Date: Mar 2006
Posts: 6
I solve it myself already. thanks.
Reply With Quote
  #3 (permalink)  
Old 05-15-2006
thedaniel thedaniel is offline
Registered User
 
 
Join Date: May 2006
Posts: 5
Exclamation the same problem...help

i had the same problem, when i installing ICE on RH9 with kernel 2.4.18, and Berkeley DB 4.3.29 which was configured with --enable-cxx. i also set DB_HOME in Make.rules to be the right path. compile cannot pass neither... my gcc version is 3.2.2, does it work? can u tell me what u did to resolve it?
Reply With Quote
  #4 (permalink)  
Old 05-15-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Hi,

Could you please set your signature? See this thread for more information. Also, unless it's *exactly* the same compilation error as the one above, you should cut/paste the error you're getting.

Cheers,
Benoit.
Reply With Quote
  #5 (permalink)  
Old 05-15-2006
thedaniel thedaniel is offline
Registered User
 
 
Join Date: May 2006
Posts: 5
sorry i set my signature

yap my problem is *exactly* the same with the above... could u tell me what happened?
__________________
daniel
Tencent(www.tencent.com)
WAPPush server development
Reply With Quote
  #6 (permalink)  
Old 05-15-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Hi,

Sorry, your signature doesn't contain the required information (see here for the details). Please set your signature with this information if you want us to help you with your compilation error.

Thanks,

Benoit.
Reply With Quote
  #7 (permalink)  
Old 05-15-2006
thedaniel thedaniel is offline
Registered User
 
 
Join Date: May 2006
Posts: 5
strange...

strange requirement...is it ok now? please...
__________________
daniel
Tencent(www.tencent.com)
WAPPush server development
Reply With Quote
  #8 (permalink)  
Old 05-15-2006
thedaniel thedaniel is offline
Registered User
 
 
Join Date: May 2006
Posts: 5
nobody help me??

please, is here offical website?...
__________________
daniel
Tencent(www.tencent.com)
WAPPush server development
Reply With Quote
  #9 (permalink)  
Old 05-16-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Hi Daniel,

Yes, this is the official ZeroC community forum. As explained in this thread Important note: Change in support policy, the ZeroC staff usually provides free support only to registered users which have correctly set their signature. Your full name and the URL of your company, university or organization is still missing from your signature, could you please set this information if you want us to help you?

As for the compilation error mentioned at the top of this thread, I think the problem was most likely that DB_HOME wasn't correctly set, perhaps wuqiu will confirm this.

Cheers,
Benoit.
Reply With Quote
  #10 (permalink)  
Old 05-16-2006
thedaniel thedaniel is offline
Registered User
 
 
Join Date: May 2006
Posts: 5
hic...

forgot to uncomment the line "DB_HOME"...
now it works.
thx.
__________________
daniel
Tencent(www.tencent.com)
WAPPush server development
Reply With Quote
  #11 (permalink)  
Old 05-16-2006
wuqiu's Avatar
wuqiu wuqiu is offline
Registered User
 
Name: wuqiu
Organization: ch-studio
Project: rim
 
Join Date: Mar 2006
Posts: 6
Quote:
Originally Posted by thedaniel
i had the same problem, when i installing ICE on RH9 with kernel 2.4.18, and Berkeley DB 4.3.29 which was configured with --enable-cxx. i also set DB_HOME in Make.rules to be the right path. compile cannot pass neither... my gcc version is 3.2.2, does it work? can u tell me what u did to resolve it?
because RedHat Linux 8 and 9 include older versions. replace with new version DB path.
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
No slice2java for Linux (no RedHat) at all alvakoldo10 Help Center 11 10-19-2006 05:56 AM
Build error on Red Hat Linux (kernel:2.4.18) rc_hz Help Center 3 11-26-2005 08:58 PM
Compile error on Redhat Enterprise Linux 3.0 update 2 minifat Bug Reports 2 06-03-2005 08:50 PM
Redhat Enterprise Linux (RHEL) support? kent144 Help Center 3 08-07-2004 09:19 PM
Freeze build in Redhat Linux yomi Help Center 4 04-10-2004 01:20 PM


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