Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217659 - dev-libs/libxml2-2.6.31: xmllib.py:9: DeprecationWarning
Summary: dev-libs/libxml2-2.6.31: xmllib.py:9: DeprecationWarning
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 14:47 UTC by Lónyai Gergely
Modified: 2008-05-29 06:43 UTC (History)
0 users

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


Attachments
build.log (build.log,139.18 KB, text/plain)
2008-04-14 14:50 UTC, Lónyai Gergely
Details
environment (environment,101.30 KB, text/plain)
2008-04-14 14:50 UTC, Lónyai Gergely
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lónyai Gergely 2008-04-14 14:47:08 UTC
Making all in .
make[3]: Entering directory `/var/tmp/portage/dev-libs/libxml2-2.6.31/work/libxml2-2.6.31/python'
/usr/bin/python ./generator.py .
/usr/lib/python2.4/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 1229, in ?
    buildStubs()
  File "./generator.py", line 569, in buildStubs
    parser.close()
  File "/usr/lib/python2.4/xmllib.py", line 175, in close
    self.goahead(1)
  File "/usr/lib/python2.4/xmllib.py", line 408, in goahead
    self.syntax_error("bogus `%s'" % data)
  File "/usr/lib/python2.4/xmllib.py", line 794, in syntax_error
    raise Error('Syntax error at line %d: %s' % (self.lineno, message))
xmllib.Error: Syntax error at line 5646: bogus `<'
make[3]: *** [gen_prog] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/libxml2-2.6.31/work/libxml2-2.6.31/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/libxml2-2.6.31/work/libxml2-2.6.31/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libxml2-2.6.31/work/libxml2-2.6.31'
make: *** [all] Error 2
Comment 1 Lónyai Gergely 2008-04-14 14:47:41 UTC
# emerge --info
Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.21-rsbac-r1-rsbac i686)
=================================================================
System uname: 2.6.21-rsbac-r1-rsbac i686 AMD Athlon(tm) XP 2500+
Timestamp of tree: Mon, 14 Apr 2008 06:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="hu_HU"
LC_ALL="hu_HU.UTF-8"
LINGUAS="hu"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/hron /usr/local/overlays/hron-temp /usr/local/overlays/aleph"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 bash-completion berkdb bzip2 cracklib crypt hardened jpeg logrotate midi mysql ncurses nls nptl nptlonly pam pcre perl pic png python readline ssl tcpd tiff truetype unicode urandom vhosts vim-syntax x86 xml" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env file_cache filter headers include info log_config mem_cache mime mime_magic proxy proxy_http proxy_ftp rewrite setenvif userdir vhost_alias" APACHE2_MPMS="itk" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Lónyai Gergely 2008-04-14 14:50:16 UTC
Created attachment 149688 [details]
build.log
Comment 3 Lónyai Gergely 2008-04-14 14:50:32 UTC
Created attachment 149689 [details]
environment
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-04-14 14:58:45 UTC
It's not a bug in bugzilla.
Comment 5 Arun Raghavan (RETIRED) gentoo-dev 2008-04-14 20:11:36 UTC
The culprit line seems to be:

xmllib.Error: Syntax error at line 5646: bogus `<'

The build works fine for me (Python 2.5), though, even with the DeprecationWarning. The problem seems to be hit while parsing "doc/libxml2-api.xml" in the source tree. Could you examine this file (particularly line 5646) and see if everything looks fine?
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2008-05-27 20:26:03 UTC
Can anyone reproduce this bug with libxml2 2.6.32 ?

Thanks
Comment 7 Lónyai Gergely 2008-05-28 20:26:20 UTC
Yes. This bug is reproducable with libxml2 2.6.32.
Comment 8 Lónyai Gergely 2008-05-29 06:43:26 UTC
I update for python-2.4.4-r13 and dev-libs/libxml2-2.6.31 is compiled.

1. emerge --sync
2. emerge -1 >=python-2.4.4-r13
3. emerge -1 =dev-libs/libxml2-2.6.31