<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>9446</bug_id>
          
          <creation_ts>2002-10-21 14:55 0000</creation_ts>
          <short_desc>zsnes build error</short_desc>
          <delta_ts>2003-02-04 19:42:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>1.4_rc1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>caleb@webninja.com</reporter>
          <assigned_to>rphillips@gentoo.org</assigned_to>
          <cc>spider@gentoo.org</cc>
    
    <cc>vapier@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>caleb@webninja.com</who>
            <bug_when>2002-10-21 14:55:36 0000</bug_when>
            <thetext>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 &quot;unzStringFileNameCompare&quot;
zip/unzip.h:114: warning: type defaults to `int&apos; in declaration of
`unzStringFileNameCompare&apos;
zip/unzip.h:114: warning: data definition has no type or storage class
zip/unzip.h:125: parse error before &quot;unzOpen&quot;
zip/unzip.h:125: warning: type defaults to `int&apos; in declaration of `unzOpen&apos;
zip/unzip.h:125: warning: data definition has no type or storage class
zip/unzip.h:136: parse error before &quot;unzClose&quot;
zip/unzip.h:136: warning: type defaults to `int&apos; in declaration of `unzClose&apos;
zip/unzip.h:136: warning: data definition has no type or storage class
zip/unzip.h:143: parse error before &quot;unzGetGlobalInfo&quot;
zip/unzip.h:144: warning: type defaults to `int&apos; in declaration of
`unzGetGlobalInfo&apos;
zip/unzip.h:144: warning: data definition has no type or storage class
zip/unzip.h:151: parse error before &quot;unzGetGlobalComment&quot;
zip/unzip.h:153: warning: type defaults to `int&apos; in declaration of
`unzGetGlobalComment&apos;
zip/unzip.h:153: warning: data definition has no type or storage class
zip/unzip.h:164: parse error before &quot;unzGoToFirstFile&quot;
zip/unzip.h:164: warning: type defaults to `int&apos; in declaration of
`unzGoToFirstFile&apos;
zip/unzip.h:164: warning: data definition has no type or storage class
zip/unzip.h:170: parse error before &quot;unzGoToNextFile&quot;
zip/unzip.h:170: warning: type defaults to `int&apos; in declaration of `unzGoToNextFile&apos;
zip/unzip.h:170: warning: data definition has no type or storage class
zip/unzip.h:177: parse error before &quot;unzLocateFile&quot;
zip/unzip.h:179: warning: type defaults to `int&apos; in declaration of `unzLocateFile&apos;
zip/unzip.h:179: warning: data definition has no type or storage class
zip/unzip.h:190: parse error before &quot;unzGetCurrentFileInfo&quot;
zip/unzip.h:197: warning: type defaults to `int&apos; in declaration of
`unzGetCurrentFileInfo&apos;
zip/unzip.h:197: warning: data definition has no type or storage class
zip/unzip.h:216: parse error before &quot;unzOpenCurrentFile&quot;
zip/unzip.h:216: warning: type defaults to `int&apos; in declaration of
`unzOpenCurrentFile&apos;
zip/unzip.h:216: warning: data definition has no type or storage class
zip/unzip.h:222: parse error before &quot;unzCloseCurrentFile&quot;
zip/unzip.h:222: warning: type defaults to `int&apos; in declaration of
`unzCloseCurrentFile&apos;
zip/unzip.h:222: warning: data definition has no type or storage class
zip/unzip.h:229: parse error before &quot;unzReadCurrentFile&quot;
zip/unzip.h:231: warning: type defaults to `int&apos; in declaration of
`unzReadCurrentFile&apos;
zip/unzip.h:231: warning: data definition has no type or storage class
zip/unzip.h:243: parse error before &quot;unztell&quot;
zip/unzip.h:243: warning: type defaults to `int&apos; in declaration of `unztell&apos;
zip/unzip.h:243: warning: data definition has no type or storage class
zip/unzip.h:248: parse error before &quot;unzeof&quot;
zip/unzip.h:248: warning: type defaults to `int&apos; in declaration of `unzeof&apos;
zip/unzip.h:248: warning: data definition has no type or storage class
zip/unzip.h:253: parse error before &quot;unzGetLocalExtrafield&quot;
zip/unzip.h:255: warning: type defaults to `int&apos; in declaration of
`unzGetLocalExtrafield&apos;
zip/unzip.h:255: warning: data definition has no type or storage class
zip/zzip.c: In function `extractzip&apos;:
zip/zzip.c:322: warning: assignment makes pointer from integer without a cast</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rphillips@gentoo.org</who>
            <bug_when>2002-10-23 23:51:07 0000</bug_when>
            <thetext>can you try a:
   cd /usr
   find . -name unzip.h

and tell me if it finds unzip.h anywhere?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@webninja.com</who>
            <bug_when>2002-10-24 08:35:20 0000</bug_when>
            <thetext>Nope, not found.  Nor does updatedb &amp;&amp; locate unzip.h</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@webninja.com</who>
            <bug_when>2002-10-26 14:09:53 0000</bug_when>
            <thetext>Okay, I figured out how to fix this, but I don&apos;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&apos;t know
enough C to be able to tell you.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-11-03 11:28:24 0000</bug_when>
            <thetext>*** Bug 10119 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-11-03 11:29:24 0000</bug_when>
            <thetext>try deleting these 2 files and emerging zsnes again 
/usr/X11R6/include/{zconf.h,zlib.h} </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@webninja.com</who>
            <bug_when>2002-11-03 12:05:53 0000</bug_when>
            <thetext>That fixes it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-11-03 12:27:30 0000</bug_when>
            <thetext>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&amp;r2=1.6 </thetext>
          </long_desc>
      
    </bug>

</bugzilla>