Results 1 to 2 of 2

Thread: Ice 1.5.1 slice2cpp's implement can't build in fedora core 1

  1. #1
    dragzhb is offline Registered User
    Join Date
    Jul 2004
    Posts
    63

    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.

  2. #2
    dragzhb is offline Registered User
    Join Date
    Jul 2004
    Posts
    63
    Sorry , It's my wrong , It can be compliled in all OS

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 04-14-2006, 03:12 PM
  2. Success Compiling Ice on Fedora core 4.
    By myer in forum Help Center
    Replies: 1
    Last Post: 07-28-2005, 03:26 AM
  3. Problem installing Ice 2.0 on Fedora Core 3
    By umber in forum Help Center
    Replies: 5
    Last Post: 12-03-2004, 06:12 PM
  4. Problem building Ice 1.4.0 on Fedora Linux Core 2
    By dthomson in forum Help Center
    Replies: 4
    Last Post: 05-28-2004, 11:27 AM
  5. Ice 1.2.0 RPMs (Fedora Core 1)
    By shaver in forum Patches
    Replies: 3
    Last Post: 12-01-2003, 12:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •