Bug 29658 - app-arch/zoo-2.10 fails with gcc 3.3.x
|
Bug#:
29658
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: gcc-porting@gentoo.org
|
Reported By: r.oosterling@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: app-arch/zoo-2.10 fails with gcc 3.3.x
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-09-26 03:35 0000
|
Using gcc 3.3.1-r3
>>> Source unpacked.
In file included from prterror.c:30:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/varargs.h:4:2: #error "GCC no
longer implements <varargs.h>."
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/varargs.h:5:2: #error "Revise
your code to use <stdarg.h>."
prterror.c:123: error: syntax error before "va_dcl"
prterror.c:125: error: syntax error before '{' token
prterror.c:136: warning: parameter names (without types) in function declaration
prterror.c:136: warning: data definition has no type or storage class
prterror.c:137: error: `args' undeclared here (not in a function)
prterror.c:137: error: syntax error before "int"
prterror.c:138: error: conflicting types for `format'
prterror.c:130: error: previous declaration of `format'
prterror.c:138: error: `args' undeclared here (not in a function)
prterror.c:138: error: syntax error before "char"
prterror.c:141: error: conflicting types for `string'
prterror.c:127: error: previous declaration of `string'
prterror.c:141: warning: data definition has no type or storage class
prterror.c:146: error: syntax error before string constant
prterror.c:146: warning: data definition has no type or storage class
prterror.c:154: error: syntax error before string constant
prterror.c:154: warning: data definition has no type or storage class
prterror.c:157: error: syntax error before string constant
prterror.c:157: warning: data definition has no type or storage class
prterror.c:163: warning: parameter names (without types) in function declaration
prterror.c:163: warning: data definition has no type or storage class
prterror.c:169: error: syntax error before "void"
prterror.c:171: warning: parameter names (without types) in function declaration
prterror.c:171: warning: data definition has no type or storage class
prterror.c:173: error: syntax error before "if"
distcc[13033] ERROR: compile on localhost failed
make[1]: *** [prterror.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [linux] Error 2
!!! ERROR: app-arch/zoo-2.10 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Portage 2.0.49-r6 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) XP 2000+
distcc 2.11 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse,387 -O3 -pipe
-fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -mfpmath=sse,387 -O3 -pipe
-fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4"
DISTDIR="/home/portage/distfiles"
FEATURES="autoaddcvs ccache prelink packages distcc sandbox buildpkg"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.pair.com/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-s -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/apps/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
gtkhtml alsa gdbm berkdb slang readline arts bonobo svga tcltk java guile X sdl
gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif
opengl mozilla gphoto2 cdr scanner cups jikes mozsvg exif pic sse"
http://forums.gentoo.org/viewtopic.php?t=86209
same thing happens with minimal optimisations in make.conf.
same thing with gcc 3.2.3
Thanks Brandy, the patch can be applied succesfully (= without errors), but
the compilation still fails:
>>> Source unpacked.
In file included from prterror.c:30:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/varargs.h:4:2: #error "GCC
no longer implements <varargs.
h>."
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/varargs.h:5:2: #error "Revise
your code to use <stdarg.h>
."
distcc[24785] ERROR: compile on rob1 failed
make[1]: *** [prterror.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [linux] Error 2
!!! ERROR: app-arch/zoo-2.10 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)
AlterEgo, are you sure the new patch is being applied instead of the
old zoo-2.10pl1 patch?
After the patch has been applied, prterror.c contains the following
lines around line 30:
26 # include <stdarg.h>
27
28 #ifdef NEED_VPRINTF
29 static int zvfprintf();
30 #endif
31
32 /* General error handler. Input format:
There certainly isn't an #include statement on line 30.
I must have goofed somewhere patching the first time :-)
It's working nicely now.
Thanks again Brandy.
Resolving as FIXED. The gcc-3.3 patch has been added to CVS, and the older
zoo-2.10pl1 patch has been removed.