doing emerge -uDv world fails when it gets to net-libs/xulrunner Reproducible: Always Steps to Reproduce: 1. emerge uDv world Actual Results: End of log file: Traceback (most recent call last): File "../../config/JarMaker.py", line 51, in <module> from MozZipFile import ZipFile File "/var/tmp/portage/net-libs/xulrunner-1.9.2.8/work/mozilla-1.9.2/config/MozZipFile.py", line 41, in <module> import zlib ImportError: /usr/lib/python2.6/lib-dynload/zlib.so: undefined symbol: inflateCopy make[4]: *** [libs] Error 1 make[4]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.8/work/mozilla-1.9.2/netwerk/locales' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.8/work/mozilla-1.9.2/netwerk' make[2]: *** [libs_tier_necko] Error 2 make[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.8/work/mozilla-1.9.2' make[1]: *** [tier_necko] Error 2 make[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.8/work/mozilla-1.9.2' make: *** [default] Error 2 * ERROR: net-libs/xulrunner-1.9.2.8 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 7376: Called _eapi2_src_compile * ebuild.sh, line 646: Called die * The specific snippet of code: * emake || die "emake failed" * * If you need support, post the output of 'emerge --info =net-libs/xulrunner-1.9.2.8', * the complete build log and the output of 'emerge -pqv =net-libs/xulrunner-1.9.2.8'. !!! When you file a bug report, please include the following information: GENTOO_VM=ibm-jdk-bin-1.6 CLASSPATH="" JAVA_HOME="/opt/ibm-jdk-bin-1.6.0.7" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="" Expected Results: Sucessful build emerge --info =net-libs/xulrunner-1.9.2.8 output: Portage 2.1.8.3 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.30-gentoo-r8 ppc) ================================================================= System Settings ================================================================= System uname: Linux-2.6.30-gentoo-r8-ppc-740-750-with-gentoo-1.12.13 Timestamp of tree: Wed, 28 Jul 2010 17:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="ppc" ACCEPT_LICENSE="* -@EULA IBM-J1.6 IBM-J1.5" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo http://gentoo.virginmedia.com/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ " LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_GB en ja" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib accessibility acl alsa apache2 avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cscope cups cupsc cxx dbus doc dri dts dvdr emboss encode exif fam fbcon firefox flac foomaticdb fortran fpx gcj gdbm gif gnome gnutls gphoto2 gpm graphviz gs gtk gtk2 hal iconv ieee1394 ipv6 java jbig jpeg jpeg2k kerberos lcms ldap libnotify mad mailwrapper mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pda pdf perl png ppc ppds pppd pulseaudio python qt3support readline reflection samba sdl session sndfile spell spl ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vim-syntax vorbis wmf x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="powermac" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en ja" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev ati r128" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS --- emerge -pqv =net-libs/xulrunner-1.9.2.8 output: [ebuild U ] net-libs/xulrunner-1.9.2.8 [1.9.0.13] USE="alsa%* dbus gnome java libnotify%* startup-notification -custom-optimization -debug% (-ipc) -system-sqlite% -wifi%"
The problem is: ImportError: /usr/lib/python2.6/lib-dynload/zlib.so: undefined symbol: inflateCopy Please post output of: objdump -p /usr/lib/python2.6/lib-dynload/zlib.so | grep NEEDED Also try re-compiling python-2.6: emerge -1 =dev-lang/python-2.6*
$ objdump -p /usr/lib/python2.6/lib-dynload/zlib.so | grep NEEDED NEEDED libz.so.1 NEEDED libpython2.6.so.1.0 NEEDED libpthread.so.0 NEEDED libc.so.6 Will re-emerge python next.
Tried emerge -1 =dev-lang/python-2.6* then re-emerging xulrunner but xulrunner build failed with same error
Attach build log of dev-lang/python, see 'ldd /usr/lib/python2.6/lib-dynload/zlib.so' and check your /usr/local beforehand.
Sorry, it looks like I had some old libz files which hadn't got deleted from an older version of sys-libs/libz I guess. I deleted these and then re-emerged xulrunner successfully. Details below. I looked more carefully at the contents of my /lib and /usr/lib directories and found that I had two files: /usr/lib/libz.so.1 -> libz.so.1.1.4 /usr/lib/libz.so.1.1.4 These didn't belong to any installed package, my currently installed sys-libs/zlib-1.2.3-r1 has: /lib/libz.so -> libz.so.1.2.3 /lib/libz.so.1 -> libz.so.1.2.3 /lib/libz.so.1.2.3 and /usr/lib/libz.a /usr/lib/libz.so After rm /usr/lib/libz.so.1 rm /usr/lib/libz.so.1.1.4 Then re-emerging xulrunner worked.
Minor note for the future: that means the bug should be resolved as INVALID, not FIXED.