Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232721 - dev-lang/python-2.5.2-r5: not linking all libs after new emerge
Summary: dev-lang/python-2.5.2-r5: not linking all libs after new emerge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 07:34 UTC by claudiu
Modified: 2009-03-03 23:32 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 claudiu 2008-07-23 07:34:41 UTC
After a bad emerge -C python call i had to reinstall python from sources, after that i used: emerge -av python and then python-updater did nothing
Java VM was not working properly after this, i had to:
ln -s /usr/lib/python2.5/site-packages/java_config /usr/lib/python2.5/site-packages/java_config_2
ln -s /usr/local/bin/depend-java-query /usr/bin/depend-java-query
ln -s /usr/local/bin/java-config-2 /usr/bin/java-config-2

To be able to reinstall java and reconfigure it.
Now app-office/openoffice-2.4.1 is crashing, log will be attached

I guess my python installation is messed up
How to fix, i guess reinstall gentoo, but if there is a way to fix this easier would be better.

Reproducible: Always

Steps to Reproduce:
1.emerge -C python
2.compile python from sources
3.emerge python

Actual Results:  
Installed python and it didn't linked all libs to it

Expected Results:  
Should reinstall python and relink all libs

emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Wed, 23 Jul 2008 05:01:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
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 /var/lib/hsqldb"
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=prescott -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ ftp://ftp.romnet.org/gentoo/ http://ftp.romnet.org/gentoo/ http://mirrors.evolva.ro/gentoo/ ftp://mirrors.evolva.ro/gentoo/ "
LINGUAS="en_GB"
MAKEOPTS="-j3"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi ada alsa amarok apache2 apm arts audiofile authdaemon avi berkdb big-tables bzip2 cairo cli connectionstatus contactnotes cpudetection cracklib crypt ctype cvs dbus dga dmx dri dv dvb dvd dvdnav dvdr dvdread eds encode examples fastcgi ffmpeg flac fortran ftp gd gdbm gif glitz glut gmp gnutls gpm gstreamer gtk2 hal history html httpd icc iconv imap ipv6 isdnlog java javascript jif jpeg jpeg2k junit kde kdeenablefinal ladcca latin1 libcaca libwww mad maildir midi mikmod mjpeg mmx mmxext mng motif mozilla mp3 mpeg mplayer mudflap mysql mysqli nas ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl openmp oss pam pascal pcre pdf pdflib perl php png pppd python qt qt-static qt3 qt3support quicktime readline real reflection sasl scanner script sdl session sharedext sharedmem simplexml slang sndfile sockets spell spl sql sse sse2 ssl ssse3 svg svga symlink system-libvncserver szip tcl tcpd threads tiff tk tokenizer truetype unicode usb v4l v4l2 vcd vda verbose vhosts vorbis win32codecs x86 xcomposite xine xinerama xml xml2 xmlrpc xorg xscreensaver xv xvid yahoo 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


ldd /usr/lib/libpython2.5.so.1.0
        linux-gate.so.1 =>  (0xb7f3f000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7df7000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7df3000)
        libutil.so.1 => /lib/libutil.so.1 (0xb7def000)
        libm.so.6 => /lib/libm.so.6 (0xb7dc9000)
        libc.so.6 => /lib/libc.so.6 (0xb7c98000)
        /lib/ld-linux.so.2 (0x80000000)


ldd /usr/bin/python
        linux-gate.so.1 =>  (0xb7f12000)
        libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0xb7de1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7dca000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7dc6000)
        libutil.so.1 => /lib/libutil.so.1 (0xb7dc2000)
        libm.so.6 => /lib/libm.so.6 (0xb7d9c000)
        libc.so.6 => /lib/libc.so.6 (0xb7c6c000)
        /lib/ld-linux.so.2 (0xb7f13000)


Openoffice relevant information:

/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/bin/checkdll.sh -L../../unxlngi6.pro/lib -L/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngi6.pro/lib  ../../unxlngi6.pro/lib/check_libpyuno.so
Checking DLL ../../unxlngi6.pro/lib/check_libpyuno.so ...: ERROR: ../../unxlngi6.pro/lib/check_libpyuno.so: undefined symbol: PyUnicodeUCS2_GetSize
dmake:  Error code 1, while making '../../unxlngi6.pro/lib/libpyuno.so'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/pyuno/source/module
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-2.4.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5368:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed


GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.07"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-07-23 13:51:59 UTC
Don't start these damn symlinking actions. Best way to introduce hard to track down issues, you'll notice sooner or (even much) later.

Did you try a revdep-rebuild run? The UCS2 issues show up, when togging the respective use flag and not rebuild all packages using Python. And no, unless you know what you do very well, you don't want to have the ucs2 use flag set.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-23 14:53:00 UTC
You could have just asked a developer for an x86 dev-lang/python-2.5.2-r5.tbz2 tarball before re-emerging python the normal way - circumventing the package manager isn't supported, or we wouldn't have a package manager and be called LFS[1]. :)

With that out of the way, you could do the above, and then after a complete `emerge world' you could emerge app-portage/portage-utils and use its `qfile --orphans /' to target for removal the remaining orphaned files (that do not belong to a package, but do be careful).

[1] http://www.linuxfromscratch.org/
[2] http://tinderbox.dev.gentoo.org/default-linux/x86/dev-lang/python-2.4.4-r13.tbz2
Comment 3 claudiu 2008-07-23 15:42:16 UTC
Thank you for replays, this machine is just for testing, even if i am using it daily as my desktop :)

Now here it is my emerge -av python:

dev-lang/python-2.5.2-r5  USE="berkdb examples gdbm ipv6 ncurses readline ssl threads tk -bootstrap -build -doc -sqlite -ucs2 -wininst"

No ucs2 same as my previous python installation.
It could be from the compiled python tho...
Comment 4 Wormo (RETIRED) gentoo-dev 2008-07-28 01:29:00 UTC
Technically, this isn't a bug, right? It sounds like a reinstall is the cleanest solution since this isn't a critical system (user is wisely learning the ropes on  a test machine...)

Please don't be put off by getting your bug closed claudiu. I recommend http://forums.gentoo.org as a good starting point for help if you ever get in a similar situation, and feel free to open more bugzilla reports if you find unreported bugs in the software.
Comment 5 florenzopaolo.dimagli 2009-03-03 23:32:33 UTC
(In reply to comment #3)
> Thank you for replays, this machine is just for testing, even if i am using it
> daily as my desktop :)

I had a similar problem with the installation of openoffice (and some libraries for other packages) and got the same error. It turned out that the configure script found a misplaced installation of python in /usr/local.
This installation survived to several emerging of (the correctly placed) python and passed unobserved while emerging several other packages.
What did the trick:
1. removing all python stuff in /usr/local
2. remerging python
3. emerging the failing package.