Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29658 - app-arch/zoo-2.10 fails with gcc 3.3.x
Summary: app-arch/zoo-2.10 fails with gcc 3.3.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-26 03:35 UTC by AlterEgo
Modified: 2003-10-02 02:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed zoo-2.10-gentoo patch (zoo-2.10-gentoo.patch,21.59 KB, patch)
2003-09-26 05:40 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description AlterEgo 2003-09-26 03:35:03 UTC
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
Comment 1 AlterEgo 2003-09-26 05:06:33 UTC
same thing happens with minimal optimisations in make.conf.
same thing with gcc 3.2.3
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-09-26 05:40:37 UTC
Created attachment 18360 [details, diff]
proposed zoo-2.10-gentoo patch

This patch extends and includes the currently used zoo-2.10pl1 patch.
It allows zoo to compile with both gcc-3.3.1 and gcc-3.2.3
Comment 3 AlterEgo 2003-09-26 08:04:16 UTC
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)
Comment 4 Brandy Westcott (RETIRED) gentoo-dev 2003-09-27 20:05:32 UTC
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.
Comment 5 AlterEgo 2003-09-28 02:07:57 UTC
I must have goofed somewhere patching the first time :-)
It's working nicely now.
Thanks again Brandy.
Comment 6 Joshua Kinard gentoo-dev 2003-10-02 02:24:14 UTC
Resolving as FIXED.  The gcc-3.3 patch has been added to CVS, and the older
zoo-2.10pl1 patch has been removed.