Author Topic: PS Compile headache ?*!#  (Read 1738 times)

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
PS Compile headache ?*!#
« on: April 25, 2003, 06:34:07 pm »
i have m4 1.4 ,  autoconf 2.57 ,  automake 1.7.2 ,  libtool 1.4.3 and the versions of CS, CEL, & PS off of the PS website i uninstalled the   preexisting m4, autoconf, automake, libtool that I had and  installed the new  versions. but still i  continue to get this error:

[bobbity@localhost planeshift]$ ./autogen.sh
: bad interpreter: No such file or directory
[bobbity@localhost planeshift]$

this initial error is caused by the var $@  not being  defined it is used in the  autogen.sh

almost any suggestion apreciated , i am going mad trying to get PS to compile , you are my only hope.
« Last Edit: April 25, 2003, 11:29:21 pm by bobbity »

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #1 on: April 26, 2003, 01:04:14 am »
ok i just did a :

make -f mk/unix/Makefile.autoconf

instead of

./autogen.sh
 
and  got
----------------------------------------------------------------
[bobbity@localhost planeshift]$ make -f mk/unix/Makefile.autoconf
cp configure.jam configure.ac
rm -f  acconfig.h
rm -f *.so
creating aclocal.m4
rm -f aclocal.m4
for i in `find mk/autoconf -name \'*.m4\'`; do \\
        cat $i >> aclocal.m4; \\
done
autoheader
autoconf

Warning: Created configuration for jam build. If you want to use
the deprecated automake build type ./autogen.sh automake
----------------------------------------------------------------------
now  i type ./configure and get this error
----------------------------------------------------------------
[bobbity@localhost planeshift]$ ./configure
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 how to run the C preprocessor... gcc -E
checking for jam... /home/bobbity/jam/bin.linuxx86
checking for install... install
configure: error: cannot run /bin/sh ./config.sub

CadRipper

  • Hydlaa Citizen
  • *
  • Posts: 487
  • merry troublemaker
    • View Profile
(No subject)
« Reply #2 on: April 26, 2003, 05:46:38 pm »
Bobbity, dumb question : do you have bash correctly installed ? Your OS seems to have difficulties finding it.

Check the permissions on /bin/sh, there should be a problem here.

Jubelo

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #3 on: April 27, 2003, 01:38:59 am »
Quote
Originally posted by CadRipper
Bobbity, dumb question : do you have bash correctly installed ? Your OS seems to have difficulties finding it.

Check the permissions on /bin/sh, there should be a problem here.



Actually, I believe his bash shell is installed fine.  I myself ran accross this problem while trying to compile from the packages on teh website.  CS and CEL both went fine, but I kept gettin the same errors he\'s getting.  Finding it strange that the planeshift package was the only thing having problems apparently I grabbed the newest version of the PS source from CVS.  Although it still wouldn\'t compile correctly it didn\'t have any problems finding /bin/sh.  I believe it may have something to do with permissions of some kind set as the defualt in the PS package.  Then again, I\'m no genius when it comes to permissions.

Jubelo

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #4 on: April 27, 2003, 08:09:40 am »
the aswer to the dumb question is that the src for the linux package is zipped up rather than a bz2 or gz and that if you dont do a unzip -a PSV0.2.010.Snapshot.zip with that -a flag the src isn\'t converted to txt files, i guess it extracts them as binaries, and that is the cause of the problem. anyway whos dumber the person who asks the dumb question or the person with the wrong answer to it ASS(CardRipper)(\'8o\')
« Last Edit: April 27, 2003, 08:10:24 am by bobbity »

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #5 on: April 27, 2003, 10:14:06 am »
Sorry about that last post Card Ripper , I  think I might have taken your statment wrong, you might have been self depricating rather  than insulting if so sorry ! :P
« Last Edit: April 27, 2003, 10:14:34 am by bobbity »

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #6 on: April 27, 2003, 02:23:00 pm »
now that i have figured out that i couldn\'t even  realy get PS to try to build because i was extracting the files from the zip as binaries instead  of txt files, i find that it wont build unless  i use CS source off the PS website or the PRE_THING_FACTORIES branch of the code from cvs, i get both versions and they wont compile  because they seem to be missing a file called slp.hpp ...
..................................
g++ -c -o out/UNIX/X86/optimize/sllex.o plugins/aws/sllex.cpp -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -fno-exceptions -mcpu=pentiumpro -march=i686  -O3 -fomit-frame-pointer -ffast-math  -I. -I./apps -I./include -I./libs -I./plugins
plugins/aws/sllex.cpp:454:19: slp.hpp: No such file or directory
plugins/aws/sllex.cpp:620: `YYSTYPE\' was not declared in this scope
................................

CadRipper

  • Hydlaa Citizen
  • *
  • Posts: 487
  • merry troublemaker
    • View Profile
(No subject)
« Reply #7 on: April 27, 2003, 02:47:11 pm »
Technical help forum is intended to try helping others, not insulting them. At least, that\'s what I thought before seeing this.

So, sorry if you misunderstood my statement and yes, you have taken it wrong. I should have guessed the solution was not so easy, so it was indeed a dumb question from me. Obviously it wasn\'t apreciated.

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #8 on: April 27, 2003, 03:08:58 pm »
they are frequently used for insulting people, sorry I took the reply the wrong  way, and insulted you, i\'ll even edit if you want or leave it up as evidence of what an ASS i can be

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #9 on: April 27, 2003, 04:26:06 pm »
ok i grabbed slp.hpp from CVS even though it was in the attic and now when I got build CS i get errors like:
.............................
ut/UNIX/X86/optimize/skinlex.o(.bss+0x8): multiple definition of `awsleng\'
out/UNIX/X86/optimize/sllex.o(.bss+0x8): first defined here
out/UNIX/X86/optimize/skinlex.o(.data+0x10): multiple definition of `awsin\'
out/UNIX/X86/optimize/sllex.o(.data+0x10): first defined here
out/UNIX/X86/optimize/skinlex.o(.data+0x14): multiple definition of `awsout\'
...............................
ending eventually in
...............................
out/UNIX/X86/optimize/skinlex.o(.text+0xa10): multiple definition of `aws_scan_bytes(char const*, int)\'
out/UNIX/X86/optimize/sllex.o(.text+0xa10): first defined here
collect2: ld returned 1 exit status
make[1]: *** [aws.so] Error 1
make[1]: Target `aws\' not remade because of errors.
make: *** [aws] Error 2
....................
and none  of the multiple  definitions are defined in slp.hpp

« Last Edit: April 27, 2003, 04:26:42 pm by bobbity »

bobbity

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #10 on: April 27, 2003, 05:47:25 pm »
Hallelujah !!! praise the Linus
i needed to delete sllex.cpp not add slp.hpp now CS compiles all the way and so does  Planeshift but it is segfaulting: when i connect to the server
................
HandleMessage: Received Player list!

crystalspace.engine.warning: Lightmaps are not up to date (no \'lm_precalc_info\' found in cache).
crystalspace.engine.warning: Use -relight cmd option to calc lighting.
The time is now -2 o\'clock.
Disconnect Message! (\'Nekromancer:160\')

Removing ACTOR: from world
Segmentation fault
[bobbity@localhost planeshift]$
.............
aarghh!!!!!
well off  to seaarch the forums