Author Topic: Compilation error using mdv cooker  (Read 913 times)

yoho

  • Traveller
  • *
  • Posts: 11
    • View Profile
Compilation error using mdv cooker
« on: May 28, 2005, 06:57:32 am »
I tried to compile planeshift. CS and CEL compile like a charm, but not PS. My gcc version is 3.3.4 :
Code: [Select]

Reading specs
from /usr/lib/gcc-lib/i586-mandriva-linux-gnu/3.3.4/specs

Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --enable-long-long --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++
--program-suffix=-3.3.4 --host=i586-mandriva-linux-gnu
--with-system-zlib

Thread model: posix
gcc version 3.3.4 (Mandrakelinux release 3.3.4-5mdk)


My problem seems to be related to a class and maybe a too strong checking by gcc. Is there any way to compile by modifying the line in patchfind.cpp ? Here is what I get :

Code: [Select]

(snip...)
C++ ./out/linuxx86/optimize/src/npcclient/pathfind.o
src/npcclient/pathfind.cpp: In function \'typename
csList::Iterator FindInList(csList&, T&) [with T = psANode*]\':
src/npcclient/pathfind.cpp:583:   instantiated from here
src/npcclient/pathfind.cpp:576: error: dependent-name \'csList::Iterator\' is parsed as a non-type, but instantiation yields a type
src/npcclient/pathfind.cpp:576: note: say \'typename csList::Iterator\' if a type is meant

    g++ -c -o ./out/linuxx86/optimize/src/npcclient/pathfind.o -I/home/vpa/easy_plane
shift/binariescrystalspace/include/cel -fPIC -I/home/vpa/easy_planeshift/binaries/cry
stalspace/include/crystalspace -I/home/vpa/easy_planeshift/binaries/cel/include/cel -
fexceptions  -I. -I./include -I./src/common -I./src/client -I./src/server src/npcclie
nt/pathfind.cpp

...failed C++ ./out/linuxx86/optimize/src/npcclient/pathfind.o ...
C++ ./out/linuxx86/optimize/src/npcclient/pathmanager.o
C++ ./out/linuxx86/optimize/src/npcclient/perceptions.o
...skipped psnpcclient for lack of pathfind.o...
MkDir1 ./out/linuxx86/optimize/src/server/database/mysql
C++ ./out/linuxx86/optimize/src/server/database/mysql/dal.o
LinkPlugin dbmysql.so
C++ ./out/linuxx86/optimize/src/client/sound/pssoundmngr.o
LinkPlugin pssound.so
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 194 target(s)...
...patience...
...found 1657 target(s)...
...updating 15 target(s)...
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/psserver
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/psclient
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/pssetup
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/texparse
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/ase_2_spr
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/updater
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/paws_generic
Install1 /home/vpa/easy_planeshift/binaries/planeshift/bin/eedit
C++ ./out/linuxx86/optimize/src/npcclient/pathfind.o
src/npcclient/pathfind.cpp: In function \'typename csList::Iterator FindInList(csList&, T&) [with T = psANode*]\':
src/npcclient/pathfind.cpp:583:   instantiated from here
src/npcclient/pathfind.cpp:576: error: dependent-name \'csList::Iterator\' is parsed as a non-type, but instantiation yields a type
src/npcclient/pathfind.cpp:576: note: say \'typename csList::Iterator\' if a type is meant

    g++ -c -o ./out/linuxx86/optimize/src/npcclient/pathfind.o -I/home/vpa/easy_planeshift/binariescrystalspace/include/cel -fPIC -I/home/vpa/easy_planeshift/binaries/crystalspace/include/crystalspace
-I/home/vpa/easy_planeshift/binaries/cel/include/cel
-fexceptions  -I. -I./include -I./src/common -I./src/client
-I./src/server src/npcclient/pathfind.cpp

...failed C++ ./out/linuxx86/optimize/src/npcclient/pathfind.o ...
...skipped psnpcclient for lack of pathfind.o...
...skipped /home/vpa/easy_planeshift/binaries/planeshift/bin/psnpcclient for                                                                       lack of psnpcclient...
Install1 /home/vpa/easy_planeshift/binaries/planeshift/lib/Planeshift/dbmysql.so
Install1 /home/vpa/easy_planeshift/binaries/planeshift/lib/Planeshift/dbmysql.csplugi                                                                      n
Install1 /home/vpa/easy_planeshift/binaries/planeshift/lib/Planeshift/pssound.so
Install1 /home/vpa/easy_planeshift/binaries/planeshift/lib/Planeshift/pssound.csplugi                                                                      n
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 12 target(s)...

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #1 on: May 28, 2005, 07:09:28 am »
What is your CVS source date? Also you should use jam -q to exit on a first error and then paste it.

Regards.
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

yoho

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #2 on: May 28, 2005, 05:31:57 pm »
Argh, the preview of my post was much more understandable than this crap I see above. Ok, I\'ve started updating from cvs and compiling everything again. I\'ll post the result and try to make it shorter.

yoho

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #3 on: May 29, 2005, 01:04:22 am »
Ok, so here is what i\'ve done :

1) Tried with the REL_3_010 branch
Code: [Select]
cvs update -dP -r REL_3_010
./autogen.sh
./configure
jam -q

about 50 files compile correctly then, I get this error stated above, summarized here :
Code: [Select]

src/npcclient/pathfind.cpp: In function \'typename
csList::Iterator FindInList(csList&, T&) [with T = psANode*]\':
src/npcclient/pathfind.cpp:583:   instantiated from here
src/npcclient/pathfind.cpp:576: error: dependent-name \'csList::Iterator\' is parsed as a non-type, but instantiation yields a type
src/npcclient/pathfind.cpp:576: note: say \'typename csList::Iterator\' if a type is meant


2) I tried with the latest cvs by using -A
results are even worst and I get a compile error at the second file.