games-emulation/zsnes-1.37_pre20041220 doesn't compile on my gentoo-1.2 system: nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o init.o init.asm gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o initc.o -c initc.c gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o uic.o -c uic.c gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o patch.o -c patch.c nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o ui.o ui.asm nasm -w-orphan-labels -D__LINUX__ -f elf -DELF -D__OPENGL__ -O1 -o vcache.o vcache.asm gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o version.o -c version.c gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o zip/unzip.o -c zip/unzip.c gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o zip/zpng.o -c zip/zpng.c zip/unzip.c:37: Invalid token in expression gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o effects/burn.o -c effects/burn.c gcc -mcpu=i686 -O3 -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o effects/water.o -c effects/water.c make: *** [zip/unzip.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: games-emulation/zsnes-1.37_pre20041220 failed. !!! Function src_compile, Line 44, Exitcode 2 !!! emake failed Here is what appears to be the offending lines in zip/unzip.c: #if !defined(unix) && !defined(CASESENSITIVITYDEFAULT_YES) && \ !defined(CASESENSITIVITYDEFAULT_NO) #define CASESENSITIVITYDEFAULT_NO #endif Maybe it's a gcc-2.95 problem? Reproducible: Always Steps to Reproduce: 1. 2. 3. emerge info Portage 2.0.49-r20 (default-1.0, gcc-2.95.3, glibc-2.2.5-r9, 2.4.24) ============================================================== === System uname: 2.4.24 i686 Transmeta(tm) Crusoe(tm) Processor TM5800 Gentoo Base System version 1.4.3.12 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=i686 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest sandbox strict" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio. org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X X509 aalib alsa apache2 apm avi berkdb bonobo cdr crypt cups curses dga dvd emacs encode esd ethereal evo fbcon foomaticdb gdbm gif gnome-libs gpm gtk gtk2 gtkhtml guile imap imlib java jpeg lcms ldap libg++ libwww mmx motif mpeg mysql nas ncurses odbc oggvorbis oss pam pcmcia pda pdflib perl pic plotutils png pnp python quicktime readline samba sdl skey slang smooth snmp spell ssl stroke svga tcltk tcpd tetex tiff truetype trusted usb vim-with-x x86 xml xml2 xmms xv zlib"
I get this too... zsnes-1.36 builds fine though. Just found the problem. All the text files in the archive are in DOS format, and for some reason gcc barfs on unzip.c and smoke.c. If I run them through dos2unix it compiles ok. I looked in the files and I don't see any weird characters or anything that would cause this.
Thanks! running dos2unix on *.c seems to work for me as well.
added effects/smoke.c zip/unzip.c to the edos2unix call in src_unpack(), should be all set now