Author Topic: cel compile errors  (Read 1933 times)

jalorden

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
cel compile errors
« on: June 24, 2004, 08:08:27 pm »
I\'m attempting to build planeshift from currnet CVS so I can start hacking about.  cal3d and CS build and install, but I\'m getting a host of compile errors from cel.  I\'m not (yet) familiar with this code, but it looks like cel is out of sync with the CS headers.

Any ideas how to start resolving this?

Thanks

----------- Host system:
$ uname -a
Linux xxxx 2.6.5 #1 Sun Apr 18 19:52:34 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux

$ gcc --version
gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)

$ jam -v
Jam 2.5rc3. OS=LINUX. Copyright 1993-2002 Christopher Seiwald.

----------- Partial build log:


$ jam
...found 379 target(s)...
...updating 98 target(s)...
MkDir1 ./out/linuxx86/optimize/libs/celtool
C++ ./out/linuxx86/optimize/libs/celtool/stdpcimp.o
libs/celtool/stdpcimp.cpp: In member function `virtual bool
   celPcCommon::RemovePropertyChangeCallback(iCelPropertyChangeCallback*)\':
libs/celtool/stdpcimp.cpp:76: error: `DeleteIndex\' undeclared (first use this
   function)
libs/celtool/stdpcimp.cpp:76: error: (Each undeclared identifier is reported
   only once for each function it appears in.)

    g++ -c -o ./out/linuxx86/optimize/libs/celtool/stdpcimp.o -I. -I./include -I.   -Wall   -O3 -I/opt/crystal/include -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -fno-exceptions -mcpu=pentiumpro -march=i686 -O3 -fomit-frame-pointer -ffast-math  libs/celtool/stdpcimp.cpp

...failed C++ ./out/linuxx86/optimize/libs/celtool/stdpcimp.o ...
C++ ./out/linuxx86/optimize/libs/celtool/stdparams.o
In file included from include/celtool/stdparams.h:28,
                 from libs/celtool/stdparams.cpp:24:
/usr/local/include/csutil/stringarray.h:52: error: wrong number of template
   arguments (2, should be 1)
/opt/crystal/include/csutil/array.h:37: error: provided for `template
   class csArray\'
/usr/local/include/csutil/stringarray.h:52: error: invalid base-class
   specification
/usr/local/include/csutil/stringarray.h:53: error: wrong number of template
   arguments (2, should be 1)
/opt/crystal/include/csutil/array.h:37: error: provided for `template
   class csArray\'
/usr/local/include/csutil/stringarray.h:99: error: parse error before `const\'
/usr/local/include/csutil/stringarray.h:109: error: semicolon missing after
   declaration of `csStringArray\'
/usr/local/include/csutil/stringarray.h: In constructor `
   csStringArray::csStringArray(int, int)\':
/usr/local/include/csutil/stringarray.h:60: error: type `
   csStringArray::superclass\' is not a direct base of `csStringArray\'
/usr/local/include/csutil/stringarray.h: In member function `void
   csStringArray::Sort(int (*)(const char* const&, const char* const&))\':
/usr/local/include/csutil/stringarray.h:81: error: `int\' is not a class type
/usr/local/include/csutil/stringarray.h: At global scope:
/usr/local/include/csutil/stringarray.h:111: error: ISO C++ forbids defining
   types within return type
/usr/local/include/csutil/stringarray.h:111: error: extraneous `int\' ignored
/usr/local/include/csutil/stringarray.h:111: error: non-member function `
   csStringArray FindSortedKey(const char*, bool, int*)\' cannot have `const\'
   method qualifier
/usr/local/include/csutil/stringarray.h:111: error: semicolon missing after
   declaration of `class csStringArray\'
/usr/local/include/csutil/stringarray.h: In function `int FindSortedKey(const
   char*, bool, int*)\':
/usr/local/include/csutil/stringarray.h:113: error: `CaseSensitiveCompare\'
   undeclared (first use this function)
/usr/local/include/csutil/stringarray.h:113: error: (Each undeclared identifier
   is reported only once for each function it appears in.)
/usr/local/include/csutil/stringarray.h:113: error: `CaseInsensitiveCompare\'
   undeclared (first use this function)
/usr/local/include/csutil/stringarray.h:114: error: `csArrayCmp\' undeclared
   (first use this function)
/usr/local/include/csutil/stringarray.h:114: error: parse error before `const\'
/usr/local/include/csutil/stringarray.h: In function `char* Pop()\':
/usr/local/include/csutil/stringarray.h:125: error: `Length\' undeclared (first
   use this function)
/usr/local/include/csutil/stringarray.h:126: error: `Get\' undeclared (first use
   this function)
/usr/local/include/csutil/stringarray.h:127: error: `InitRegion\' undeclared
   (first use this function)
/usr/local/include/csutil/stringarray.h:128: error: `SetLength\' undeclared
   (first use this function)
/usr/local/include/csutil/stringarray.h: At global scope:
/usr/local/include/csutil/stringarray.h:137: error: non-member function `int
   Find(const char*)\' cannot have `const\' method qualifier
/usr/local/include/csutil/stringarray.h: In function `int Find(const char*)\':
/usr/local/include/csutil/stringarray.h:139: error: `Get\' undeclared (first use
   this function)
/usr/local/include/csutil/stringarray.h: At global scope:
/usr/local/include/csutil/stringarray.h:149: error: non-member function `int
   FindCaseInsensitive(const char*)\' cannot have `const\' method qualifier
/usr/local/include/csutil/stringarray.h: In function `int
   FindCaseInsensitive(const char*)\':
/usr/local/include/csutil/stringarray.h:151: error: `Get\' undeclared (first use
   this function)
/usr/local/include/csutil/stringarray.h: At global scope:
/usr/local/include/csutil/stringarray.h:155: error: parse error before `}\'
   token
In file included from libs/celtool/stdparams.cpp:24:
include/celtool/stdparams.h: In member function `void
   celVariableParameterBlock::SetParameterDef(int, unsigned int, const char*)\':
include/celtool/stdparams.h:117: error: `GetExtend\' undeclared (first use this
   function)
include/celtool/stdparams.h:118: error: `Length\' undeclared (first use this
   function)
include/celtool/stdparams.h:119: error: `SetLength\' undeclared (first use this
   function)
include/celtool/stdparams.h:120: error: `Put\' undeclared (first use this
   function)
include/celtool/stdparams.h: In member function `celData&
   celVariableParameterBlock::GetParameter(int)\':
include/celtool/stdparams.h:122: error: `GetExtend\' undeclared (first use this
   function)
include/celtool/stdparams.h: In member function `virtual const char*
   celVariableParameterBlock::GetParameter(int, csStringID&, celDataType&)
   const\':
include/celtool/stdparams.h:138: error: no match for \'operator[]\' in \'
   this->celVariableParameterBlock::names[idx]\'

    g++ -c -o ./out/linuxx86/optimize/libs/celtool/stdparams.o -I. -I./include -I.   -Wall   -O3 -I/opt/crystal/include -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -fno-exceptions -mcpu=pentiumpro -march=i686 -O3 -fomit-frame-pointer -ffast-math  libs/celtool/stdparams.cpp

...failed C++ ./out/linuxx86/optimize/libs/celtool/stdparams.o ...
...skipped libceltool.a for lack of libceltool.a(stdpcimp.o)...
MkDir1 ./out/linuxx86/optimize/apps/celtest
C++ ./out/linuxx86/optimize/apps/celtest/celtest.o
In file included from apps/celtest/celtest.cpp:27:
/usr/local/include/csutil/event.h:43: error: parse error before `(\' token
/usr/local/include/csutil/event.h:45: error: declaration of `int
   csKeyEventHelper::utf32_char\'
/usr/local/include/csutil/event.h:43: error: conflicts with previous
   declaration `int csKeyEventHelper::utf32_char\'
/usr/local/include/csutil/event.h:45: error: parse error before `(\' token
/usr/local/include/csutil/event.h:47: error: type specifier omitted for
   parameter `csKeyModifiers\'
/usr/local/include/csutil/event.h:47: error: parse error before `&\' token
/usr/local/include/csutil/event.h:49: error: parse error before `(\' token
/usr/local/include/csutil/event.h:56: error: parse error before `(\' token
/usr/local/include/csutil/event.h:58: error: type specifier omitted for
   parameter `csKeyEventData\'
/usr/local/include/csutil/event.h:58: error: parse error before `&\' token
/usr/local/include/csutil/event.h:64: error: parse error before `&\' token
In file included from /usr/local/include/csutil/syspath.h:23,
                 from /usr/local/include/csutil/csshlib.h:35,
                 from apps/celtest/celtest.cpp:61:
/usr/local/include/csutil/array.h: In static member function `static void
   csArrayElementHandler::Construct(T*, const T&)\':
/usr/local/include/csutil/array.h:179: error: parse error before `;\' token
In file included from /usr/local/include/csutil/util.h:24,
                 from /usr/local/include/csutil/syspath.h:26,
                 from /usr/local/include/csutil/csshlib.h:35,
                 from apps/celtest/celtest.cpp:61:
/usr/local/include/csutil/csunicode.h:39:4: #error Unknown wchar_t size.
In file included from apps/celtest/celtest.cpp:61:
/usr/local/include/csutil/csshlib.h: At global scope:
/usr/local/include/csutil/csshlib.h:130: error: `iDocument\' was not declared in
   this scope
/usr/local/include/csutil/csshlib.h:130: error: template argument 1 is invalid
apps/celtest/celtest.cpp: In member function `bool
   CelTest::HandleEvent(iEvent&)\':
apps/celtest/celtest.cpp:128: error: `csevKeyboard\' undeclared (first use this
   function)
apps/celtest/celtest.cpp:128: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
apps/celtest/celtest.cpp:128: error: \'class csKeyEventHelper\' has no member
   named \'GetEventType\'
apps/celtest/celtest.cpp:128: error: `csKeyEventTypeDown\' undeclared (first use
   this function)
apps/celtest/celtest.cpp:130: error: \'class csKeyEventHelper\' has no member
   named \'GetCookedCode\'
apps/celtest/celtest.cpp: In member function `bool CelTest::CreateRoom()\':
apps/celtest/celtest.cpp:471: error: `scfInterface\' undeclared (first use this
   function)
apps/celtest/celtest.cpp:471: error: parse error before `>\' token
apps/celtest/celtest.cpp:471: error: parse error before `)\' token

    g++ -c -o ./out/linuxx86/optimize/apps/celtest/celtest.o -I. -I./include -I.   -Wall   -O3 -I/opt/crystal/include -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -fno-exceptions -mcpu=pentiumpro -march=i686 -O3 -fomit-frame-pointer -ffast-math  apps/celtest/celtest.cpp

...failed C++ ./out/linuxx86/optimize/apps/celtest/celtest.o ...
...skipped celtst for lack of celtest.o...
MkDir1 ./out/linuxx86/optimize/apps/bootstrap
C++ ./out/linuxx86/optimize/apps/bootstrap/bootstrap.o
In file included from apps/bootstrap/bootstrap.cpp:24:
/usr/local/include/csutil/event.h:43: error: parse error before `(\' token
/usr/local/include/csutil/event.h:45: error: declaration of `int
   csKeyEventHelper::utf32_char\'
/usr/local/include/csutil/event.h:43: error: conflicts with previous
   declaration `int csKeyEventHelper::utf32_char\'
/usr/local/include/csutil/event.h:45: error: parse error before `(\' token
/usr/local/include/csutil/event.h:47: error: type specifier omitted for
   parameter `csKeyModifiers\'
/usr/local/include/csutil/event.h:47: error: parse error before `&\' token
/usr/local/include/csutil/event.h:49: error: parse error before `(\' token
/usr/local/include/csutil/event.h:56: error: parse error before `(\' token
/usr/local/include/csutil/event.h:58: error: type specifier omitted for
   parameter `csKeyEventData\'
/usr/local/include/csutil/event.h:58: error: parse error before `&\' token
/usr/local/include/csutil/event.h:64: error: parse error before `&\' token
apps/bootstrap/bootstrap.cpp: In member function `bool
   Bootstrap::HandleEvent(iEvent&)\':
apps/bootstrap/bootstrap.cpp:96: error: `csevKeyboard\' undeclared (first use
   this function)
apps/bootstrap/bootstrap.cpp:96: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
apps/bootstrap/bootstrap.cpp:96: error: \'class csKeyEventHelper\' has no member
   named \'GetEventType\'
apps/bootstrap/bootstrap.cpp:96: error: `csKeyEventTypeDown\' undeclared (first
   use this function)
apps/bootstrap/bootstrap.cpp:98: error: `utf32_char\' undeclared (first use this
   function)
apps/bootstrap/bootstrap.cpp:98: error: parse error before `=\' token
apps/bootstrap/bootstrap.cpp:99: error: `code\' undeclared (first use this
   function)

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #1 on: June 24, 2004, 08:32:00 pm »
Hmm, what version of CS are you using? Hopefully the latest CVS version.  From what I can see DeleteIndex is defined in CS/include/cstool/array.h.  I will do a full update/build when I get home tonight just to make sure nothing is broken in latest CVS of all the projects.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

jalorden

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #2 on: June 24, 2004, 09:02:52 pm »
I checked out all packages from CVS this afternoon (June 24 2004), more or less following the directions in the wiki at

CompilePlaneshift

jalorden

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #3 on: June 24, 2004, 10:46:46 pm »
OK

I think I have it figured out.  configure is too clever.
I have MB installed here and the CEL configure script was picking up the old CS install instead of the CVS one I\'d just compiled.  If I point --with-cs-prefix to the right place it fixes the errors I was getting earlier.

However plugins/behaviorLayer/python/blcel.o still has compile errors.  Is this important?

I seem to recall seeing something about this plugin not compiling somewhere else, but I don\'t remember the conclusion.

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #4 on: June 25, 2004, 01:20:14 am »
Ah, yes I was going to ask about what you had CRYSTAL set as.  Don\'t worry about the python stuff. It is unused by PS.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

jalorden

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #5 on: June 25, 2004, 10:44:00 pm »
Alrighty.

I\'ve got some things figured out.  I have the server running, and I load a map, set it to ready.  Then the client connects using the guest account.  However, the client immediatly fails with an error message about the models:

\"The server sent an invalid model filename. Please run the updater.\"

The updater also fails, claiming it can\'t connect to any mirror.

I attempted changing the configuration files to point to fakemodels.zip, instead of models.zip, but that didn\'t help.  The history.txt mentions getting new models from cb_release, but I\'m not sure what that means.  There is no CVS branch named that.  Any idea what the problem is here?

Thanks again

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #6 on: June 26, 2004, 02:15:39 am »
Hmm, yes there might be an issue there.  We are trying to get all the assets in place ( which we don\'t want to have in CVS for licensing reasons ) so there may be some files that it is trying to load that don\'t exist in CVS.  I will make an attempt this weekend to isolate this and make sure the CVS server will work with the placeholder art that is in CVS.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Eplanet

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #7 on: July 15, 2004, 05:00:54 am »
drizzert? thats from some book series, right? a dark elf or something? i read that.