First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 9446
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Ryan Phillips (RETIRED) <rphillips@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Caleb Shay <caleb@webninja.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 9446 depends on: Show dependency tree
Bug 9446 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   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

------- Comment #1 From Ryan Phillips (RETIRED) 2002-10-23 23:51:07 0000 -------
can you try a:
   cd /usr
   find . -name unzip.h

and tell me if it finds unzip.h anywhere?

------- Comment #2 From Caleb Shay 2002-10-24 08:35:20 0000 -------
Nope, not found.  Nor does updatedb && locate unzip.h

------- Comment #3 From Caleb Shay 2002-10-26 14:09:53 0000 -------
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 From SpanKY 2002-11-03 11:28:24 0000 -------
*** Bug 10119 has been marked as a duplicate of this bug. ***

------- Comment #5 From SpanKY 2002-11-03 11:29:24 0000 -------
try deleting these 2 files and emerging zsnes again 
/usr/X11R6/include/{zconf.h,zlib.h} 

------- Comment #6 From Caleb Shay 2002-11-03 12:05:53 0000 -------
That fixes it.

------- Comment #7 From SpanKY 2002-11-03 12:27:30 0000 -------
fix is in cvs, enjoy 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-emulation/zsnes/zsnes-1.36.ebuild.diff?r1=1.5&r2=1.6 

First Last Prev Next    No search results available      Search page      Enter new bug