Bug 9446 - zsnes build error
|
Bug#:
9446
|
Product: Gentoo Linux
|
Version: 1.4_rc1
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: rphillips@gentoo.org
|
Reported By: caleb@webninja.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: zsnes build error
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2002-10-21 14:55 0000
|
zsnes-1.36 will not build on my 1.4_rc1 machine (though it builds on another
one
of my 1.4_rc1 machines). One machine is a Pentium3, the other is an Athlon-XP,
other than that they have the same CFLAGS (not that the zsnes build pays
attention to your CFLAGS). The Pentium3 build works, Athlon-XP breaks. Mayhap
a gcc bug? I dunno. gcc output follows.
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
can you try a:
cd /usr
find . -name unzip.h
and tell me if it finds unzip.h anywhere?
Nope, not found. Nor does updatedb && locate unzip.h
Okay, I figured out how to fix this, but I don't know how or why my fix works.
On a whim, I deleted every instance of the word ZEXPORT from src/zip/unzip.[ch],
and now it compiles and runs fine. gcc bug? configure bug? I don't know
enough C to be able to tell you.
*** Bug 10119 has been marked as a duplicate of this bug. ***
try deleting these 2 files and emerging zsnes again
/usr/X11R6/include/{zconf.h,zlib.h}