Page 1 of 1

more isspace issues on gentoo

Posted: Fri Oct 01, 2004 3:49 am
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

Posted: Sat Oct 02, 2004 8:02 am
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

Posted: Sat Oct 02, 2004 7:40 pm
by hellcatv
try make -k for now see if it at least builds src/vegastrike
maybe you need SDL_mixer-devel

Posted: Sun Oct 03, 2004 1:10 am
by energyman76b
maybe he has to emerge sdl-mixer ;o)