more isspace issues on gentoo

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Guest

more isspace issues on gentoo

Post by Guest »

I saw the previous post and added #define isspace(c) (((c)==' ')||((c)=='\t')||((c)=='\n')||((c)=='\r')||((c)=='\0'))
to soundserver.cpp

however now I am getting this... which appears to be still complaining about isspace, I checked if my ctype.h was any different than a few other distros, such as redhat and its exactly the same. I also am running gentoo.

ar cru libnetacct.a client.o accountsxml.o savenet_util.o fileutil.o acctserver.o
ranlib libnetacct.a
source='soundserver.cpp' object='soundserver.o' libtool=no \
depfile='.deps/soundserver.Po' tmpdepfile='.deps/soundserver.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_AL=1 -I/usr/include/python2.3 -DHAVE_PYTHON=1 -DUSE_BOOST_131=1 -I../../src/boost129 -I../../src -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -pthread -pipe -c -o soundserver.o `test -f 'soundserver.cpp' || echo './'`soundserver.cpp
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/cctype:49,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/iosfwd:47,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/bits/stl_algobase.h:70,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/memory:54,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/string:48,
from soundserver.cpp:15:
../../ctype.h:110: error: parse error before `int'
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/iosfwd:47,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/bits/stl_algobase.h:70,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/memory:54,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/string:48,
from soundserver.cpp:15:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/cctype:76: error: `
isspace' not declared
soundserver.cpp: In function `Mix_Music* PlayMusic(const char*, Mix_Music*)':
soundserver.cpp:135: warning: converting to `int' from `float'
soundserver.cpp: In function `int main(int, char**)':
soundserver.cpp:338: warning: converting to `int' from `float'
make[4]: *** [soundserver.o] Error 1
make[4]: Leaving directory `/usr/src/vegastrike/vegastrike/src/networking'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/vegastrike/vegastrike/src/networking'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/vegastrike/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vegastrike/vegastrike'
make: *** [all] Error 2
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

wither move the line down to the end of the list of "#include"s or try deleting it if it doesn't work
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

try make -k for now see if it at least builds src/vegastrike
maybe you need SDL_mixer-devel
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
energyman76b
ISO Party Member
ISO Party Member
Posts: 445
Joined: Tue Feb 11, 2003 8:04 am

Post by energyman76b »

maybe he has to emerge sdl-mixer ;o)
Post Reply