Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10463 - emerge libxml2 dies with error 1 and 2
Summary: emerge libxml2 dies with error 1 and 2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Mark Guertin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-08 21:53 UTC by Joe Kallar (RETIRED)
Modified: 2006-02-04 06:03 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kallar (RETIRED) gentoo-dev 2002-11-08 21:53:53 UTC
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
Comment 1 Mark Guertin 2002-11-09 11:38:05 UTC
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
Comment 2 Joe Kallar (RETIRED) gentoo-dev 2002-11-09 20:13:28 UTC
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)
Comment 3 Spider (RETIRED) gentoo-dev 2002-11-09 21:31:28 UTC
thats still "ZERO"3  ... not O3 .. .(O3 as Optimize 3) 

Change your CFLAGS and CXXFLAGS to read "O3" not Zero3.
Comment 4 Joe Kallar (RETIRED) gentoo-dev 2002-11-09 23:02:13 UTC
Oops, my bad, I thought the comments were for your own notation, not me.
Comment 5 Joe Kallar (RETIRED) gentoo-dev 2002-11-09 23:45:28 UTC
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.
Comment 6 Spider (RETIRED) gentoo-dev 2002-11-09 23:53:41 UTC
so, closing.
Comment 7 Joe Kallar (RETIRED) gentoo-dev 2002-11-10 08:44:41 UTC
OK, np. I just wanted to make sure that the original source of that make.conf
has been corrected.
Comment 8 Blu3 2003-01-20 18:05:41 UTC
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.
Comment 9 foser (RETIRED) gentoo-dev 2003-01-20 18:15:57 UTC
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).
Comment 10 Blu3 2003-01-20 18:32:35 UTC
-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.
Comment 11 Blu3 2003-01-20 18:39:38 UTC
The information in this bug has been duplicated into bug 14265.