View previous topic :: View next topic |
Author |
Message |
tabo n00b
Joined: 03 Sep 2002 Posts: 7
|
Posted: Fri Oct 25, 2002 11:03 pm Post subject: snes9x not compiling |
|
|
hello,
i just tried to compile snes9x with gcc 2.95 and it barfs around loadzip.cpp
g++ -I/usr/X11R6/include -I/usr/local/include -c -march=i686 -O3 -pipe -DMITSHM -Ii386 -I. -Iunzip -DJOYSTICK_SUPPORT -DZLIB -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DUSE_DGA_EXTENSION -DUSE_VIDMODE_EXTENSION -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DMMX -DNO_INLINE_SET_GET loadzip.cpp -o loadzip.o
In file included from loadzip.cpp:57:
unzip/unzip.h:124: syntax error before `('
unzip/unzip.h:137: syntax error before `('
unzip/unzip.h:148: syntax error before `('
unzip/unzip.h:155: syntax error before `('
unzip/unzip.h:163: syntax error before `('
unzip/unzip.h:176: syntax error before `('
unzip/unzip.h:182: syntax error before `('
unzip/unzip.h:189: syntax error before `('
unzip/unzip.h:202: syntax error before `('
unzip/unzip.h:228: syntax error before `('
unzip/unzip.h:234: syntax error before `('
unzip/unzip.h:241: syntax error before `('
unzip/unzip.h:255: syntax error before `('
unzip/unzip.h:260: syntax error before `('
unzip/unzip.h:265: syntax error before `('
loadzip.cpp: In function `bool8 LoadZip(const char *, int32 *, int32 *)':
loadzip.cpp:69: implicit declaration of function `int unzOpen(...)'
loadzip.cpp:69: initialization to `void *' from `int' lacks a cast
loadzip.cpp:77: implicit declaration of function `int unzGoToFirstFile(...)'
loadzip.cpp:82: implicit declaration of function `int unzGetCurrentFileInfo(...)'
loadzip.cpp:96: implicit declaration of function `int unzGoToNextFile(...)'
loadzip.cpp:116: implicit declaration of function `int unzClose(...)'
loadzip.cpp:130: implicit declaration of function `int unzLocateFile(...)'
loadzip.cpp:133: implicit declaration of function `int unzOpenCurrentFile(...)'
loadzip.cpp:147: implicit declaration of function `int unzReadCurrentFile(...)'
loadzip.cpp:148: implicit declaration of function `int unzCloseCurrentFile(...)'
make: *** [loadzip.o] Error 1
make: *** Waiting for unfinished jobs....
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 35, Exitcode 1
!!! unable to compile for X
zsnes is barfing about the same thing as well...
gcc -pipe -I. -Wall -D__LINUX__ -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -Os -ffast-math -fomit-frame-pointer -fschedule-insns2 -s -march=pentiumpro -o zip/zzip.o -c zip/zzip.c
In file included from zip/zzip.c:35:
zip/unzip.h:112: parse error before `unzStringFileNameCompare'
zip/unzip.h:114: warning: type defaults to `int' in declaration of `unzStringFileNameCompare'
zip/unzip.h:114: warning: data definition has no type or storage class
zip/unzip.h:125: parse error before `unzOpen'
zip/unzip.h:125: warning: type defaults to `int' in declaration of `unzOpen'
zip/unzip.h:125: warning: data definition has no type or storage class
zip/unzip.h:136: parse error before `unzClose'
zip/unzip.h:136: warning: type defaults to `int' in declaration of `unzClose'
zip/unzip.h:136: warning: data definition has no type or storage class
zip/unzip.h:143: parse error before `unzGetGlobalInfo'
zip/unzip.h:144: warning: type defaults to `int' in declaration of `unzGetGlobalInfo'
zip/unzip.h:144: warning: data definition has no type or storage class
zip/unzip.h:151: parse error before `unzGetGlobalComment'
zip/unzip.h:153: warning: type defaults to `int' in declaration of `unzGetGlobalComment'
zip/unzip.h:153: warning: data definition has no type or storage class
zip/unzip.h:164: parse error before `unzGoToFirstFile'
zip/unzip.h:164: warning: type defaults to `int' in declaration of `unzGoToFirstFile'
zip/unzip.h:164: warning: data definition has no type or storage class
zip/unzip.h:170: parse error before `unzGoToNextFile'
zip/unzip.h:170: warning: type defaults to `int' in declaration of `unzGoToNextFile'
zip/unzip.h:170: warning: data definition has no type or storage class
zip/unzip.h:177: parse error before `unzLocateFile'
zip/unzip.h:179: warning: type defaults to `int' in declaration of `unzLocateFile'
zip/unzip.h:179: warning: data definition has no type or storage class
zip/unzip.h:190: parse error before `unzGetCurrentFileInfo'
zip/unzip.h:197: warning: type defaults to `int' in declaration of `unzGetCurrentFileInfo'
zip/unzip.h:197: warning: data definition has no type or storage class
zip/unzip.h:216: parse error before `unzOpenCurrentFile'
zip/unzip.h:216: warning: type defaults to `int' in declaration of `unzOpenCurrentFile'
zip/unzip.h:216: warning: data definition has no type or storage class
zip/unzip.h:222: parse error before `unzCloseCurrentFile'
zip/unzip.h:222: warning: type defaults to `int' in declaration of `unzCloseCurrentFile'
zip/unzip.h:222: warning: data definition has no type or storage class
zip/unzip.h:229: parse error before `unzReadCurrentFile'
zip/unzip.h:231: warning: type defaults to `int' in declaration of `unzReadCurrentFile'
zip/unzip.h:231: warning: data definition has no type or storage class
zip/unzip.h:243: parse error before `unztell'
zip/unzip.h:243: warning: type defaults to `int' in declaration of `unztell'
zip/unzip.h:243: warning: data definition has no type or storage class
zip/unzip.h:248: parse error before `unzeof'
zip/unzip.h:248: warning: type defaults to `int' in declaration of `unzeof'
zip/unzip.h:248: warning: data definition has no type or storage class
zip/unzip.h:253: parse error before `unzGetLocalExtrafield'
zip/unzip.h:255: warning: type defaults to `int' in declaration of `unzGetLocalExtrafield'
zip/unzip.h:255: warning: data definition has no type or storage class
zip/zzip.c: In function `extractzip':
zip/zzip.c:322: warning: assignment makes pointer from integer without a cast
make: *** [zip/zzip.o] Error 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 23, Exitcode 2
!!! (no error message)
any ideas or suggestions? thanks
tabo |
|
Back to top |
|
|
reves Apprentice
Joined: 25 Jun 2002 Posts: 215 Location: South Florida
|
Posted: Sat Oct 26, 2002 1:01 am Post subject: |
|
|
I ran in to the same problem with snes9x and zsnes. There is a bug in he Gentoo Bugzilla for this, but I couldn't find it again. The most simple resolution to this is to rename (or remove) zconf.h and zlib.h in the /usr/X11R6/include folder. Another way around it would be to add
before
Code: | -I/usr/X11R6/include |
in the Makefile. _________________ Robert |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|