Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282696 - Emerge of swt fails, undefined symbol: PyUnicodeUCS2_DecodeUTF8
Summary: Emerge of swt fails, undefined symbol: PyUnicodeUCS2_DecodeUTF8
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 14:19 UTC by Claes
Modified: 2009-08-26 11:55 UTC (History)
0 users

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 Claes 2009-08-25 14:19:19 UTC
emerge -1 pyxml swt
Note the pyxml, to ensure it's not bug http://bugs.gentoo.org/144774

Error message:
 * Building JNI libraries                                                                                                                                                                                                                
Rewriting attributes                                                                                                                                                                                                                     
Traceback (most recent call last):                                                                                                                                                                                                       
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py", line 30, in <module>                                                                                                                                                                 
    from javatoolkit.xml.DomRewriter import DomRewriter                                                                                                                                                                                  
ImportError: No module named javatoolkit.xml.DomRewriter                                                                                                                                                                                 
 * If the output above contains:                                                                                                                                                                                                         
 * ImportError:                                                                                                                                                                                                                          
 * /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so:                                                                                                                                                                         
 * undefined symbol: PyUnicodeUCS2_DecodeUTF8
 * Try re-emerging dev-python/pyxml
 *
 * ERROR: dev-java/swt-3.4-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4343:  Called eant 'compile'
 *             environment, line  871:  Called java-ant-2_src_configure
 *             environment, line 2146:  Called java-ant_bsfix
 *             environment, line 2168:  Called java-ant_bsfix_files './build.xml'
 *             environment, line 2263:  Called _bsfix_die 'xml-rewrite2 failed: ./build.xml'
 *             environment, line  272:  Called die
 * The specific snippet of code:
 *           die ${1} " Look at the eerror message above";
 *  The die message:
 *   xml-rewrite2 failed: ./build.xml  Look at the eerror message above
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/swt-3.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/swt-3.4-r3/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.15"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""

Expected result:
Succesful merge of swt.

emerge --info:
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 25 Aug 2009 07:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O1 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O1 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.klid.dk/ftp/gentoo/ ftp://ftp.klid.dk/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="se"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage/layman/letharion"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode esd evo fam firefox flac fortran gdbm gif gnome gpm gstreamer hal iconv isdnlog java6 jpeg kde kdehiddenvisibility ldap libnotify mad mikmod mmx mmxext mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl plasma png ppds pppd python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl startup-notification svg symlink sysfs tcpd thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="se" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-25 17:44:02 UTC
Post the output of:
emerge -ptv python:2.5 python:2.6
Comment 2 Patrick Lauer gentoo-dev 2009-08-25 18:42:36 UTC
Usually re-emerging javatoolkit or just running python-updater fixes this issue
Comment 3 Claes 2009-08-26 08:02:00 UTC
python-updater did it. Thanks
Not sure what is an appropriate solution, leaving new for someone wiser to decide.

Incase of any importance:
# emerge -pvt python:2.5 python:2.6

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/python-2.6.2-r1  USE="gdbm ncurses readline ssl threads xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -ucs2 -wininst" 10 kB
[ebuild   R   ] dev-lang/python-2.5.4-r3  USE="gdbm ncurses readline ssl threads xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -ucs2 -wininst" 21 kB