Author Topic: compilation error: Bison plugins/aws/skinpars.cpp  (Read 943 times)

Mildred

  • Traveller
  • *
  • Posts: 10
    • View Profile
compilation error: Bison plugins/aws/skinpars.cpp
« on: August 13, 2004, 06:09:00 am »
I try o compile planeshift but I have this output:

Code: [Select]

[mildred@localhost my_planeshift]$ sh build.sh
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for flex... flex
checking for bison... bison
checking for doxygen... doxygen
checking for texi2dvi... texi2dvi
checking for texi2pdf... texi2pdf
checking for install... install
checking for ranlib... ranlib
checking for swig... swig
checking for luaswig... no
checking how to create a directory... mkdir
checking how to create a directory tree... mkdir -p
checking for nasm... no
checking for perl5... perl5
checking for perl ExtUtils::Embed module... yes
checking for perl DynaLoader module... yes
checking for python... python
checking for Python SDK... yes
checking if Python SDK is usable... no
checking how to enable compilation warnings... -Wall
checking how to treat warnings as errors... -Werror
checking how to disable unknown #pragma warnings... -Wno-unknown-pragmas
checking how to disable C++ exceptions... -fno-exceptions
checking if -multiply_defined suppress is needed... no
checking whether to use CPU-specific instructions... yes
checking for code generation flags... -mcpu=pentiumpro -march=i686
checking how to enable optimizations... -O3
checking if g++ recognizes -fomit-frame-pointer... -fomit-frame-pointer
checking if g++ recognizes -ffast-math... -ffast-math
checking how to enable compiler debug output... -g3
checking checking if -I/usr/local/include is usable... yes
checking for pow in -lm... yes
checking for dlopen in -ldl... yes
checking for gethostbyname in -lnsl... yes
checking for pthread... yes
checking for pthread recursive mutexes... PTHREAD_MUTEX_RECURSIVE
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for libXxf86vm... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int32... no
checking for windows.h... no
checking for OpenGL... yes
checking for GLU... yes
checking for glut... no
checking for GLX... yes
checking for GLX extensions... yes
checking for libz... yes
checking for libpng... yes
checking for libjpeg... yes
checking for libmng... yes
checking for libmikmod... yes
checking for libogg... yes
checking for libvorbis... yes
checking for libvorbisfile... yes
checking for lib3ds... yes
checking if lib3ds is sufficiently recent... yes
checking for libode... yes
checking if libode is sufficiently recent... yes
checking for OpenAL... yes
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType - version >= 2.0... yes
checking for libvga... yes
checking for libcal3d... yes
checking if plugins require main()... yes
checking whether byte ordering is bigendian... no
checking for bool... yes
checking for stdint.h... (cached) yes
checking whether INT64_C works... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking for socket support... yes
checking for socklen_t... yes
checking for C++ `explicit\' keyword... yes
checking for C++ new-style casts... yes
checking if qsqrt() is usable... yes
checking if qint() functions correctly... no
checking whether to enable Linux joystick support... no
checking build mode... optimize
checking if building plugins... yes
checking if enforcing smart pointer strictness... yes
checking whether to use extensive memory debugger... no
configure-jam: creating ./config.status
config.status: executing include/volatile.h commands
config.status: include/volatile.h is unchanged
config.status: executing Jamconfig commands
config.status: Jamconfig is unchanged
config.status: executing Jamfile commands
config.status: executing test commands
data/Jamfile: No such file or directory
plugins/cssaver/Jamfile: No such file or directory
apps/Jamfile: No such file or directory
...patience...
...patience...
...found 2560 target(s)...
...updating 3 target(s)...
Bison plugins/aws/skinpars.cpp
plugins/aws/skinpars.yy:61.8-12: red?claration du type de window_item
 
    bison -d -p aws -o plugins/aws/skinpars.cpp plugins/aws/skinpars.yy
   
...failed Bison plugins/aws/skinpars.cpp ...
...skipped skinpars.o for lack of skinpars.cpp...
...skipped aws.so for lack of skinpars.o...
...failed updating 1 target(s)...
...skipped 2 target(s)...

I\'m under Linux Mandrake 10.0

I looked at  the file my_planeshift/CS/plugins/aws/skinpars.yy ans at the line 61 there is:
Code: [Select]
%type    skin_item window_item component_item connection_item window_item
Is the repetition of \"window_item\" normal ?

I try to replace this line with:
Code: [Select]
%type    skin_item window_item component_item connection_item
Because bison tell me that the type \"window_item\" is redeclared.

And now, I have:
Code: [Select]

[mildred@localhost my_planeshift]$ sh build.sh

...

...patience...
...patience...
...found 2560 target(s)...
...updating 3 target(s)...
Bison plugins/aws/skinpars.cpp
C++ ./out/linuxx86/optimize/plugins/aws/skinpars.o
LinkPlugin aws.so
...updated 3 target(s)...
data/Jamfile: No such file or directory
plugins/cssaver/Jamfile: No such file or directory
apps/Jamfile: No such file or directory
...found 5 target(s)...
BUILDING CEL NOW
creating aclocal.m4 from macros out of mk/*.m4
autoconf
autoconf: configure.in: No such file or directory


I don\'t know what is wrong ...

Thank you for help
--
Sorry for my bad english

Mildred

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #1 on: August 18, 2004, 02:02:12 pm »
found the solution here: http://www.freewebtown.com/alchemylab/#howtos

I made my own document:
Quote
Make planeshift:
================

Download the file planeshift-0.2.010FullSourceAndArt.tar.gz here: http://sourceforge.net/projects/planeshift/
Uncompress it and go to the new folder:

$ tar xzvf planeshift-0.2.010FullSourceAndArt.tar.gz
$ cd my_planeshift

Export variables

$ export CRYSTAL=$PWD/CS
$ export CEL=$PWD/cel
$ export CSCONFPATH=$PWD/cel

Buiding CS

$ cd CS && ./configure-jam && jam && jam cs-config && cd .. && echo OK || echo ERROR
If error on skinpars.py:
   edit file CS/plugins/aws/skinpars.py
    remove the last \"window_item\" on line 61
  save
    $ cd CS && jam -a && cd .. && echo OK || echo ERROR
 $ sh build.sh
   $ cd CS && ./configure-jam && jam && jam cs-config && cd .. && echo OK || echo ERROR

Build CEL

$ cd cel && rm -f cs-config && ln -s ../CS/cs-config cs-config && echo OK || echo ERROR
$ ./autogen.sh && echo OK || echo ERROR
If error don\'t know the solution, maybe not so important if you already have the ./configure file
$ ./configure && echo OK || echo ERROR
If *** Could not run Crystal Space test program, checking why...
   Try to edit the file ./configure around the line 2591
$ jam && cd .. && echo OK || echo ERROR

Build PlaneShift

$ cd planeshift && ./autogen.sh && echo OK || echo ERROR
If error don\'t know the solution, maybe not so important if you already have the ./configure file
$ ./configure && jam && cd .. && echo OK || echo ERROR

Time to copy the files in the destination directory

sh make_distro.sh
  This file will also remove useless files
    You can also do that:
mkdir distro
mkdir distro/planeshift
cp -f cel/*.so distro/planeshift/
cp -f CS/*.so distro/planeshift/
cp -f planeshift/*so distro/planeshift/
cp -f planeshift/psclient distro/planeshift/psclient-bin
cp -f planeshift/pssetup distro/planeshift/pssetup-bin
cp -f planeshift/updater distro/planeshift/updater-bin
    Maybe not important if these files doesnt exists because I think the updater is useless

Time to remove useless files (if you want)

sh remove_useless.sh
   -- OR --
rm -f distro/planeshift/svga2d.so
rm -f distro/planeshift/cssaver.so
rm -f distro/planeshift/metaball.so
rm -f distro/planeshift/cspython.so
rm -f distro/planeshift/iso.so
rm -f distro/planeshift/opcode.so
rm -f distro/planeshift/terrfunc.so
rm -f distro/planeshift/bcterr.so
rm -f distro/planeshift/cloth.so
rm -f distro/planeshift/inf3d.so
rm -f distro/planeshift/isoload.so
rm -f distro/planeshift/line3d.so
rm -f distro/planeshift/explo.so
rm -f distro/planeshift/exploldr.so
rm -f distro/planeshift/snow.so
rm -f distro/planeshift/snowldr.so
rm -f distro/planeshift/haze.so
rm -f distro/planeshift/hazeldr.so
rm -f distro/planeshift/spiral.so
rm -f distro/planeshift/spirldr.so
rm -f distro/planeshift/crossbld.so
rm -f distro/planeshift/fancycon.so
rm -f distro/planeshift/mballldr.so
rm -f distro/planeshift/csavi.so
rm -f distro/planeshift/netman.so
rm -f distro/planeshift/terrbig.so


But, actually I think I have a linkdead error because I have:
Code: [Select]

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Currently using 0.00Kbps upstream, 0.00kbps downstream...
+ Packages out 10 , in 11...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CheckLinkDead: Sending heartbeat message 1 to server....
CheckLinkDead: Sending heartbeat message 1 to server....
CheckLinkDead: Sending heartbeat message 1 to server....
CheckLinkDead: Sending heartbeat message 1 to server....
CheckLinkDead: Sending heartbeat message 1 to server....
CheckLinkDead: Sending heartbeat message 1 to server....
CheckLinkDead: Sending heartbeat message 1 to server....
CheckLinkDead: Sending heartbeat message 1 to server....

But it seems working

Mildred

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #2 on: August 18, 2004, 02:47:37 pm »
I have now:
Code: [Select]

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Currently using 0.00Kbps upstream, 0.03kbps downstream...
+ Packages out 3 , in 30...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 10!
*** Input Buffer Full! Dropping packet of type 5!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 10!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 21!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 14!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 14!
*** Input Buffer Full! Dropping packet of type 13!
*** Input Buffer Full! Dropping packet of type 13!

...

With no error in the planeshift window
I killes planeshift. Why not display an error in the window ?

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #3 on: August 18, 2004, 08:01:03 pm »
Did you say you kill planeshift, or does it crash?  If it crashes, you could run it with GDB if you built it with --enable-debug passed to configure.
Quidquid latine dictum sit, altum sonatur.

Mildred

  • Traveller
  • *
  • Posts: 10
    • View Profile
(No subject)
« Reply #4 on: August 21, 2004, 12:48:15 pm »
It does not crash, I killed it manually:
Code: [Select]
$ killall psclient-bin