Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-06-2004
dragzhb dragzhb is offline
Registered User
 
 
Join Date: Jul 2004
Posts: 63
Send a message via Yahoo to dragzhb
-->
Ice 1.5.1 slice2cpp's implement can't build in redhat Advanced Server 3.0

I use Ice 1.5.1

slice2cpp's implement can't build in redhat Advanced Server 3.0 with gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20), but it's can build in redhat 9.0 with gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) and in fedora core 1 with gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)

The following is my Ice file

cat phonelist.ice
#ifndef _PHONELIST_ICE
#define _PHONELIST_ICE

module pnote
{
sequence<int> GroupList;

struct Phone
{
string PhoneNo;
GroupList grpList;
};

sequence<Phone> PhoneList;
sequence<string> PhoneNumList;

interface PhoneListHome
{
idempotent bool put(Phone obj);
idempotent bool putList(PhoneList arrData);

idempotent bool del(string key);
idempotent bool delList(PhoneNumList arrKey);
idempotent void clear();

nonmutating Phone get(string key);
nonmutating PhoneList getAll();
nonmutating PhoneList getList(long lFirstNo,long lCount);
nonmutating long getRecords();

};
};

#endif _PHONELIST_ICE



I use following parameter to compile ice:
slice2cpp --impl -I../../../pnote_db/slice ../../../pnote_db/slice/phonelist.ice --output-dir ../../../pnote_db/src/web

It will create 4 files:
phonelist.cpp phonelist.h phonelistI.cpp phonelistI.h

in redhat 9.0 can build all files, but in fedora core 1 and redhat advanced server 3.0 gcc can't compile phonelistI.cpp, the following is error message:

g++ -DHAVE_CONFIG_H -I. -I../../../pnote_db/src/web -I../.. -DNDEBUG -ftemplate-depth-128 -fPIC -Wall -O2 -I. -I/opt/ice/incl
ude -I/opt/bdb/include -I/opt/log4cxx/include -c ../../../pnote_db/src/web/phonelistI.cpp -MT phonelistI.lo -MD -MP -MF .deps
/phonelistI.TPlo -fPIC -DPIC -o phonelistI.lo
In file included from ../../../pnote_db/src/web/phonelistI.cpp:1:
../../../pnote_db/src/web/phonelistI.h:10: syntax error before `{' token
../../../pnote_db/src/web/phonelistI.h:17: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:20: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:22: syntax error before `&' token
../../../pnote_db/src/web/phonelistI.h:23: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:25: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:28: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:28: non-member function `pnote::Phone
pnote::get(const std::string&, const Ice::Current&)' cannot have `const'
method qualifier
../../../pnote_db/src/web/phonelistI.h:30: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:30: non-member function `
pnote::PhoneList pnote::getAll(const Ice::Current&)' cannot have `const'
method qualifier
../../../pnote_db/src/web/phonelistI.h:34: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:34: non-member function `
pnote::PhoneList pnote::getList(long long int, long long int, const
Ice::Current&)' cannot have `const' method qualifier
../../../pnote_db/src/web/phonelistI.h:36: virtual outside class declaration
../../../pnote_db/src/web/phonelistI.h:36: non-member function `Long
pnote::getRecords(const Ice::Current&)' cannot have `const' method qualifier
../../../pnote_db/src/web/phonelistI.h:39: syntax error before `}' token
../../../pnote_db/src/web/phonelistI.cpp:6: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:13: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:20: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:25: syntax error before `&' token
../../../pnote_db/src/web/phonelistI.cpp:27: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:33: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:39: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:45: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:53: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.cpp:59: invalid use of undefined type `
class pnote::PhoneListHomeI'
../../../pnote_db/src/web/phonelistI.h:9: forward declaration of `class
pnote::PhoneListHomeI'
make[3]: *** [phonelistI.lo] Error 1
make[3]: Leaving directory `/home/smsc/cvs/build/src/web'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/smsc/cvs/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/smsc/cvs/build'
make: *** [all] Error 2

Last edited by dragzhb : 09-06-2004 at 03:57 AM.
Reply With Quote
  #2 (permalink)  
Old 09-06-2004
dragzhb dragzhb is offline
Registered User
 
 
Join Date: Jul 2004
Posts: 63
Send a message via Yahoo to dragzhb
-->
Sorry , It's my wrong , It can be compliled in all OS
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
install fedora core 4 issues Keith Marter Help Center 1 10-07-2005 05:37 PM
Success Compiling Ice on Fedora core 4. myer Help Center 1 07-28-2005 03:26 AM
Fedora Core 4 JFour Help Center 2 06-17-2005 04:12 AM
Problem installing Ice 2.0 on Fedora Core 3 umber Help Center 5 12-03-2004 06:12 PM
Ice 1.2.0 RPMs (Fedora Core 1) shaver Patches 3 12-01-2003 12:27 AM


All times are GMT -4. The time now is 01:07 AM.


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.