Bug 65450 - tuxnes-0.75.ebuild fails to compile w/gcc 3.4.2 (new ebuild + patch attached)
Bug#: 65450 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gcc-porting@gentoo.org Reported By: tcort@gentoo.org
Component: Ebuilds
URL: 
Summary: tuxnes-0.75.ebuild fails to compile w/gcc 3.4.2 (new ebuild + patch attached)
Keywords:  
Status Whiteboard: 
Opened: 2004-09-26 13:50 0000
Description:   Opened: 2004-09-26 13:50 0000
When I try to "# emerge tuxnes", I get errors about a few lines in emu.c. The
lines are of the form "perror(__FUNCTION__ ": malloc");"; which doesn't compile
with gcc 3.4.2. 

Reproducible: Always
Steps to Reproduce:
1. emerge tuxnes
Actual Results:  
emu.c: In function `loadpal':
emu.c:893: error: parse error before string constant
emu.c:915: error: parse error before string constant
emu.c:927: error: parse error before string constant
emu.c: In function `main':
emu.c:1605: error: parse error before string constant
make: *** [emu.o] Error 1
make: *** Waiting for unfinished jobs....


Expected Results:  
It should have built cleanly

"emerge info":

Gentoo Base System version 1.5.3
Portage 2.0.51_rc1 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-ck8 i686)
=================================================================
System uname: 2.6.8-ck8 i686 Intel(R) Celeron(R) CPU 2.70GHz
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/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/terminfo /etc/env.d"
CXXFLAGS="-O2 -fomit-frame-pointer -fpermissive"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://cs.ubishops.ca:2121/pub/gentoo
ftp://cs.ubishops.ca/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X aim alsa apm arts audiofile avi berkdb bitmap-fonts bzlib calendar
cdinstall cdr cdrom chroot cpdflib crypt cups dba
directfb divx4linux dv dvdread encode esd f77 faac faad fbcon fbdev ffmpeg flac
flash foomaticdb ftp gcj gcl gd gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml
i8x0
imlib jabber java javascript jikes jpeg kde libdsk libg++ libwww lzw-tiff mad
md5sum mhash mikmod motif mozaccess mozcalendar mozctl mozdomi mozilla
moznocompose moznoirc moznomail mpeg mpeg4 mplayer msn music mysql nas native
ncurses net nethack nls nocd noexperimental nojoystick nomac noreiserfs ntlm
oav
offensive oggvorbis opengl
oscar oss pam pdflib perl php png posix postgres pthreads python qt quicktime
readline sdl slang sndfile snmp sockets spell
ssl svga tcltk tcpd tetex threads truetype usb vanilla x86 xml xml2 xmms xprint
xv xvid yahoo zlib"

---------

I will attach a patch, "files/perror_fix-tuxnes-0.75.diff", and a new ebuild,
"tuxnes-0.75-r1.ebuild". I've tested them both and they work as expected.

------- Comment #1 From Thomas Cort (RETIRED) 2004-09-26 13:51:48 0000 -------
Created an attachment (id=40476) [details]
tuxnes-0.75-r1.ebuild

I put it in ~x86, feel free to change it to x86

------- Comment #2 From Thomas Cort (RETIRED) 2004-09-26 13:52:53 0000 -------
Created an attachment (id=40477) [details]
files/perror_fix-tuxnes-0.75.diff

Fixes the compile errors in tuxnes-0.75.tar.gz

------- Comment #3 From Karol Wojtaszek (RETIRED) 2004-09-27 08:08:33 0000 -------
Fixed in CVS, thanks