Emerging kde hung when libxml2 died as follows: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -03 -pipe -fsigned-char -Wall -c xinclude.c >/dev/null 2>&1 mv -f .libs/xinclude.lo xinclude.lo /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -03 -pipe -fsigned-char -Wall -c nanohttp.c rm -f .libs/nanohttp.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -03 -pipe -fsigned-char -Wall -c nanohttp.c -fPIC -DPIC gcc: unrecognized option `-03' nanohttp.c: In function `xmlNanoHTTPConnectAttempt': nanohttp.c:807: `len' undeclared (first use in this function) nanohttp.c:807: (Each undeclared identifier is reported only once nanohttp.c:807: for each function it appears in.) make[2]: *** [nanohttp.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/libxml2-2.4.24/work/libxml2-2.4.24' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libxml2-2.4.24/work/libxml2-2.4.24' make: *** [all-recursive-am] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -153, Exitcode 2 !!! (no error message) alpha root # emerge info Portage 2.0.43 (default-ppc-1.4, gcc-3.2, glibc-2.2.5-r7) ================================================================= System uname: 2.4.19-r6 ppc USE="oss dvd xv gpm libwww jpeg nls mitshm gif imlib sdl oggvorbis gtk kde mozilla png truetype ppc gdbm berkdb slang readline X tcpd pam ssl perl python esd qt motif opengl -gnome quicktime" ARCH="ppc" COMPILER="gcc3" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-03 -pipe -fsigned-char" CXXFLAGS="-03 -pipe -fsigned-char" ACCEPT_KEYWORDS="ppc" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="" JAVA_HOME="" AUTOCLEAN="no" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" OldWorld UMAX S900 604e/200 288MB
Ahh this was a bug in an old make.conf file it should be -O3 (right now is <zero>3, shoudl be capital O That should fix you up, please let me know
Heya Mark, I gave it a whirl, it got a little further and I and got: /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -03 -pipe -fsigned-char -Wall -c nanohttp.c rm -f .libs/nanohttp.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -03 -pipe -fsigned-char -Wall -c nanohttp.c -fPIC -DPIC gcc: unrecognized option `-03' nanohttp.c: In function `xmlNanoHTTPConnectAttempt': nanohttp.c:807: `len' undeclared (first use in this function) nanohttp.c:807: (Each undeclared identifier is reported only once nanohttp.c:807: for each function it appears in.) make[2]: *** [nanohttp.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/libxml2-2.4.24/work/libxml2-2.4.24' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libxml2-2.4.24/work/libxml2-2.4.24' make: *** [all-recursive-am] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -153, Exitcode 2 !!! (no error message)
thats still "ZERO"3 ... not O3 .. .(O3 as Optimize 3) Change your CFLAGS and CXXFLAGS to read "O3" not Zero3.
Oops, my bad, I thought the comments were for your own notation, not me.
Emerging fine now, the CFLAGS change sorted it out. FYI though, I did not insert that -03 myself, I simply uncommented the line from the make.conf that came on either the 1.4rc1 stage3 tarball or the 1.2 iso.
so, closing.
OK, np. I just wanted to make sure that the original source of that make.conf has been corrected.
Someone mind re-opening this bug, unrecognized options such as -03 are ignored. libxml2 still does not compile. Please change the Platform to [All] instead of [PPC]. gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -I/usr/local/include -pipe -g -O2 -mcpu=i686 -march=i686 -D__NO_STRING_INLINES -malign-loops=2 -malign-jumps=2 -malign-functions=2 -ffast-math -Wall -c nanohttp.c -fPIC -DPIC cc1: warning: -malign-loops is obsolete, use -falign-loops cc1: warning: -malign-jumps is obsolete, use -falign-jumps cc1: warning: -malign-functions is obsolete, use -falign-functions nanohttp.c: In function `xmlNanoHTTPConnectAttempt': nanohttp.c:807: `len' undeclared (first use in this function) nanohttp.c:807: (Each undeclared identifier is reported only once nanohttp.c:807: for each function it appears in.) dev-libs/libxml2-2.4.28-r1 I can't install mod_php using xml w/out this being fixed.
Well yeah, 03 is just plain wrong. O it is, of Optimisation not a zero. We can't go around make it totally foolproof (literally). It does compile if you have correct CFLAGS afaik, if it doesn't open a new bug with a good problem description (not this one, this one is about a typo).
-03 may be wrong, but that isn't the reason why the compiler stops. gcc will ignore the -03 and continue on just fine. Please read my text in comment #8. I have a proper compile line and it still fails in the exact same manner. The variable 'len' is not declared. Arguing over -03 is a side issue and is of little value to solving the problem that libxml2 is not compiling correctly. It's akin to arguing whether or not the gas in a car is 89 octane or 97 octane when the gas tank is disconnected.
The information in this bug has been duplicated into bug 14265.