The installation of libxml2 is required by emerge -u world I've disabled distcc in /etc/make.conf but I still get this error. This is what portage has to say: make[2]: Leaving directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/example' Making all in xstc make[2]: Entering directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/xstc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/xstc' Making all in python make[2]: Entering directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/python' Making all in . make[3]: Entering directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/python' cd . && /usr/bin/python generator.py /usr/lib/python2.3/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead. warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", DeprecationWarning) Traceback (most recent call last): File "generator.py", line 1228, in ? buildStubs() File "generator.py", line 574, in buildStubs parser.feed(data) File "/usr/lib/python2.3/xmllib.py", line 171, in feed self.goahead(0) File "/usr/lib/python2.3/xmllib.py", line 280, in goahead k = self.parse_starttag(i) File "/usr/lib/python2.3/xmllib.py", line 598, in parse_starttag self.syntax_error('garbage in starttag') File "/usr/lib/python2.3/xmllib.py", line 794, in syntax_error raise Error('Syntax error at line %d: %s' % (self.lineno, message)) xmllib.Error: Syntax error at line 4946: garbage in starttag make[3]: *** [gen_prog] Error 1 make[3]: Leaving directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/python' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/python' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15' make: *** [all] Error 2 !!! ERROR: dev-libs/libxml2-2.6.15-r1 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge dev-libs/libxml2-2.6.15-r1 Actual Results: The compilation failed and I got the error as I posted Expected Results: It should've compiled and merged # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r8 i686) ================================================================= System uname: 2.6.7-gentoo-r8 i686 Celeron (Mendocino) Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/ 3/share/config /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 -march=pentium2 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http: //gentoo.mirror.solnet.ch/ http://mirror.etf.bg.ac.yu/gentoo http://ftp.snt. utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="apache2 apm arts avi berkdb bitmap-fonts crypt cups encode esd f77 fam foomaticdb fortran gd gdbm gif gpm gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl php png python quicktime readline sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
can python folk have a look ?
hrmm .. i can't reproduce. the xmllib warning is non-fatal, but it seems to imply that there's malformed xml in libxml2-api.xml and/or libxml2-python-api.xml. both seems to be fine for me.
Try the newest libxml2
Assuming the newest version fixed.
reopen due to another person with same issue
*** Bug 113033 has been marked as a duplicate of this bug. ***
I get the exact same error with the newest dev-libs/libxml2-2.6.23 on x86 stable. You can see the output in the Gentoo forums: http://forums.gentoo.org/viewtopic-t-425605.html The earlier version 2.6.22 didn't have this error when I compiled it last year.
Reporters, Can you still reproduce this problem with recent version of python and libxml2?
No further feedback.