Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260497 - openoffice-3.0.x emerge fails on: check_libpyuno.so: undefined symbol: PyUnicodeUCS2_GetSize
Summary: openoffice-3.0.x emerge fails on: check_libpyuno.so: undefined symbol: PyUnic...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-27 11:16 UTC by florenzopaolo.dimagli
Modified: 2009-03-03 23:12 UTC (History)
1 user (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 florenzopaolo.dimagli 2009-02-27 11:16:53 UTC
tried openoffice-3.0.0 (amd64), openoffice-3.0.1 (~amd64)
tried setting /etc/portage/package.use either like: app-office/openoffice  gnome -kde odk  -opengl seamonkey
or app-office/openoffice  gnome -kde odk  -opengl seamonkey -ucs2 -uno -xulrunner -python -pyuno -nothreads

tried with both the following versions of python installed: python-2.5.2-r7  python-2.5.4-r2

already aware of the issue MAKEOPT="-j1" and "eselect opengl set xorg-x11" I set them (otherwise I use nvidia).

Reproducible: Always

Steps to Reproduce:
1. emerge openoffice
2.
3.

Actual Results:  
# tail -30 app-office:openoffice-3.0.1:20090226-214815.log
------------------------------
Making: ../../unxlngx6.pro/lib/libpyuno.so
g++ -Wl,-z,combreloc -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../../unxlngx6.pro/lib ../../unxlngx6.pro/slo/pyuno_version.o -o ../../unxlngx6.pro/lib/libpyuno.so ../../unxlngx6.pro/slo/pyuno_runtime.o ../../unxlngx6.pro/slo/pyuno.o ../../unxlngx6.pro/slo/pyuno_callable.o ../../unxlngx6.pro/slo/pyuno_module.o ../../unxlngx6.pro/slo/pyuno_type.o ../../unxlngx6.pro/slo/pyuno_util.o ../../unxlngx6.pro/slo/pyuno_except.o ../../unxlngx6.pro/slo/pyuno_adapter.o ../../unxlngx6.pro/slo/pyuno_gc.o -luno_cppu -luno_cppuhelpergcc3 -luno_sal -lpython2.5 -ldl -lpthread -lm  -L../lib -L/hugetmp/portage/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solenv/unxlngx6/lib -L/hugetmp/portage/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/lib -L/hugetmp/portage/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solenv/unxlngx6/lib -LNO_JAVA_HOME/lib64 -LNO_JAVA_HOME/jre/lib/amd64 -LNO_JAVA_HOME/jre/lib/amd64/server -LNO_JAVA_HOME/jre/lib/amd64/native_threads -L/usr/lib -L/usr/lib64/xulrunner
rm -f ../../unxlngx6.pro/lib/check_libpyuno.so
mv ../../unxlngx6.pro/lib/libpyuno.so ../../unxlngx6.pro/lib/check_libpyuno.so
/hugetmp/portage/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solenv/bin/checkdll.sh -L../../unxlngx6.pro/lib -L/hugetmp/portage/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/lib  ../../unxlngx6.pro/lib/check_libpyuno.so
Checking DLL ../../unxlngx6.pro/lib/check_libpyuno.so ...: ERROR: ../../unxlngx6.pro/lib/check_libpyuno.so: undefined symbol: PyUnicodeUCS2_GetSize
dmake:  Error code 1, while making '../../unxlngx6.pro/lib/libpyuno.so'

ERROR: Error 65280 occurred while making /hugetmp/portage/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/pyuno/source/module
rmdir /tmp/13319
make: *** [stamp/build] Error 1
 * 
 * ERROR: app-office/openoffice-3.0.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5569:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/sync/gentoo/log/app-office:openoffice-3.0.1:20090226-214815.log'.
 * The ebuild environment file is located at '/hugetmp/portage/portage/app-office/openoffice-3.0.1/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/home/archimedes/.gentoo/java-config-2/current-user-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

Expected Results:  
Should emerge successfully.
Why should build a module that I cannot control, ban (with a use flag)? It makes emerge fail.

Here is my emerge --info:
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon_Dual-Core_QL-60-with-glibc2.2.5
Timestamp of tree: Thu, 26 Feb 2009 08:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.6-r1
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 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.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/sync/gentoo/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://156.56.247.195 http://distfiles.gentoo.org http://152.46.7.80/pub/Linux/distributions/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/sync/gentoo/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --timeout=23 --bwlimit=20"
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="/hugetmp/portage"
PORTDIR="/sync/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/vmware /sync/gentoo/myebs"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 apm aspell audiofile avi bash-completion bcmath berkdb bindist bitmap-fonts blas bzip2 bzip2cairo caps cdparanoia cdr cli clibpdf cracklib crypt cscope ctype cups cxx dbus dbx diet dillo dio directfb divx4linux doc dv dvb dvd dvdr dvdread emul-linux-86 encode examples exif expat f90 f95 fam fbcon ffmpeg fftw flac flash foomaticdb fortran fortran90 fortran95 g95 gcj gd gdbm geforce ggi gif ginac glut glx gmp gnutls gphoto2 gpm gstreamer gtk gtkhtml guile hal hardened hardenedphp hdf5 hdtemp headphones html2ps iconv ieee1394 imagemagick imlib inifile innodb ipv6 isdnlog jabber jack jikes jpeg junit ladcca lapack lcms ldap libcaca libwww lm_sensors m17n-lib mad mhash midi mikmod mime ming mjpeg mmx mng motif mp3 mpeg mplayer msession mudflap multilib mysql mysqli ncurses netcdf nforce nls nptl nptlonly nsplugin nvidia nvidia-glx objc ofx ogg openal opengl openmp osc pcre pdflib perl php plotutils png portaudio ppds pppd prelude profile qdbm qt qt3 qt4 quicktime radius readline reflection ruby samba scanner sdl session sharedext shorten simplexml slp sndfile speex spell spl sse sse2 ssl svg sysfs szip tcltk tcp tcpd test tetex theora tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vcd videos vorbis wddx wifi wireless wmf xfce xfce4 xine xml xmlrpc xorg xosd xpm xscreensaver xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="access auth auth_dbm auth_anon auth_digest authz_host alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate  filter mime-magic cern-meta expires headers usertrack unique_id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nvidia nv vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2009-02-27 12:38:51 UTC
Can you try remerging pyxml?
Comment 2 florenzopaolo.dimagli 2009-02-27 22:30:18 UTC
yes, I've tried now remerging pyxml: same result, same messages.

I did another test too. I unmerged pyxml and "emerge --depclean -p" told me that it was required by javatoolkit only. so I get rid of both and tried remerging ooo: same result, same messages.

Then I emerged pyxml javatoolkit and ooo, but it failed again.
Now I've remerged python forcing the use flag -ucs2 both changing it into the ebuild and by command line (USE="-ucs2" emerge ...) and I'm trying to remerge ooo again. I'll keep you informed.

After this attempt I guess that I've tried everything that, as  a newbie, I could imagine.

Two details: 1) the use flag -ucs2 in make.conf was put after the first failure, as measure of desperation. 2)at the moment there's no version  of ooo installed.
Comment 3 florenzopaolo.dimagli 2009-02-28 10:55:07 UTC
(In addition to comment #2)

> Now I've remerged python forcing the use flag -ucs2 both changing it into the
> ebuild and by command line (USE="-ucs2" emerge ...) and I'm trying to remerge
> ooo again. I'll keep you informed.

Same result as above. Same error message from emerge. Now what?
I don't know what this module pyuno does, but I feel that I don't use it at all, so is there any way to avoid compiling it, just it?
Comment 4 florenzopaolo.dimagli 2009-03-03 23:12:20 UTC
openoffice-3.0.0 has now been emerged successfully. 
 did it after purging a misplaced installation of python, like suggested by a wise gentoo developer in relation to another bug I filed. In that config.log the path where the configure found python was /usr/local/python2.5 /usr/local/bin/python, etc.
What did the trick was:
1.removing python stuff from /usr/local
2.remerging python (my initiative, maybe unnecessary)
3.emerging the failing packages (in this case openoffice-3.0.0).
Of course before doing this I fixed all my exotic changes to use flags shown above.

Maybe that python stuff was a manual installation for emergency recovery of portage that I did months ago, not sure.
For this reason I'm proposing to mark this bug as resolved invalid.
I'm going to write soon the solution on the (very few) forums where I found this apparently crazy. Thank you.