Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9446 - zsnes build error
Summary: zsnes build error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
: 10119 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-21 14:55 UTC by Caleb Shay
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Shay 2002-10-21 14:55:36 UTC
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
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-10-23 23:51:07 UTC
can you try a:
   cd /usr
   find . -name unzip.h

and tell me if it finds unzip.h anywhere?
Comment 2 Caleb Shay 2002-10-24 08:35:20 UTC
Nope, not found.  Nor does updatedb && locate unzip.h
Comment 3 Caleb Shay 2002-10-26 14:09:53 UTC
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.
Comment 4 SpanKY gentoo-dev 2002-11-03 11:28:24 UTC
*** Bug 10119 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2002-11-03 11:29:24 UTC
try deleting these 2 files and emerging zsnes again 
/usr/X11R6/include/{zconf.h,zlib.h} 
Comment 6 Caleb Shay 2002-11-03 12:05:53 UTC
That fixes it.