Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 90010

Summary: emerge perl fails due to changed libperl path
Product: Gentoo Linux Reporter: rj rooke <rjrooke>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED DUPLICATE    
Severity: major CC: perl
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description rj rooke 2005-04-21 23:01:28 UTC
ebuild for perl 5.8.6-r4 looking for libperl in /usr/lib.  2005.0 amd64 multilib libperl is in /lib:

# ldconfig -p | grep libperl
libperl.so.1 (libc6,x86-64) => /lib/libperl.so.1



Reproducible: Always
Steps to Reproduce:
1.emerge perl
2.
3.

Actual Results:  
 * Cannot find //usr/lib/libperl.so.1.5.8!  Make sure that you
 * have sys-libs/libperl installed properly ...

!!! ERROR: dev-lang/perl-5.8.6-r4 failed.
!!! Function pkg_setup, Line 64, Exitcode 0
!!! Cannot find /usr/lib/libperl.so.1.5.8!
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
should have found libperl in /lib

sucessfully emerged by changing all 'usr/lib/libperl.so' to lib/libperl.so
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-04-22 03:03:30 UTC
please give output of `emerge info` as well as the libperl-version. also, try to re-emerge libperl, i can't confirm this behaviour here
Comment 2 rj rooke 2005-04-23 00:19:14 UTC
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.11
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 22 2005, 09:47:21)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://www.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa amd64 apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl doc dvd dvdr encode esd fam flac font-server foomaticdb fortran gd gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imlib ipv6 java joystick jp2 jpeg junit kde libg++ libwww lzw lzw-tiff mad mikmod motif mozilla mp3 mpeg ncurses nls nogcj nvidia ofx ogg oggvorbis opengl oss pam pdflib perl png python quicktime quotes readline samba scanner sdk sdl slang spell ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 vorbis xine xml xml2 xmms xpm xprint xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Reemerged libperl a couple of times - Using latest libperl ebuild - mentions several amd64 multilib changes:

root@dhube ~ # emerge -pv libperl

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/libperl-5.8.6  +berkdb -debug +gdbm -ithreads -nocxx (-uclibc) 0 kB

Total size of downloads: 0 kB
Comment 3 rj rooke 2005-04-23 09:08:01 UTC
I am doing a full bootstrap and rebuild of system world - at 75/667 - Looks to have made it past libperl and perl - I will reconfirm this bug after it completes.
Comment 4 rj rooke 2005-04-23 10:08:46 UTC
I can reconfirm this issue - I had an alternative ebuild in my portage overlay directory - libperl still goes to /lib (and /usr/lib is not linked to anything - wonder if that is wrong?):

 *
 * PLEASE NOTE: If you want to compile perl-5.8 with
 * threading enabled , you must restart this emerge
 * with USE=ithreads emerge....
 * Threading is not supported by all applications
 * that compile against perl. You use threading at
 * your own discretion.
 *
 * Cannot find //usr/lib/libperl.so.1.5.8!  Make sure that you
 * have sys-libs/libperl installed properly ...

!!! ERROR: dev-lang/perl-5.8.6-r4 failed.
!!! Function pkg_setup, Line 64, Exitcode 0
!!! Cannot find /usr/lib/libperl.so.1.5.8!
!!! If you need support, post the topmost build error, NOT this status message.

dhube ~ # ldconfig -p | grep libperl
        libperl.so.1 (libc6,x86-64) => /lib/libperl.so.1
        libperl.so.1 (libc6) => /emul/linux/x86/usr/lib/libperl.so.1
        libperl.so (libc6,x86-64) => /lib/libperl.so
Comment 5 rj rooke 2005-04-23 10:29:01 UTC
Investigating some other library problems, came upon:

cd /usr/lib

# ls -la ./libperl.so
lrwxrwxrwx  1 root root 12 Apr 23 06:36 ./libperl.so -> libperl.so.?

lost links in /usr/lib - there's lots of these files.
Comment 6 rj rooke 2005-04-23 11:03:31 UTC
I think I've got the xorg problem - my library directories were scrambled by xorg: http://bugs.gentoo.org./show_bug.cgi?id=82333

Seems that /usr/lib64 was linked to /lib incorrectly - should be linked to /usr/lib.

ls -al /usr
drwxr-xr-x  109 root  root  74344 Apr 23 10:34 lib
drwxr-xr-x    8 root  root   1664 Apr 23 09:04 lib32
lrwxrwxrwx    1 root  root      8 Feb 10 08:28 lib64 -> ../lib64

ls -la /
drwxr-xr-x    2 root root   1616 Apr 23 08:13 lib32
lrwxrwxrwx    1 root root      3 Dec 16 03:05 lib64 -> lib

I'll see if I can clean up my libraries and close this bug.
Comment 7 rj rooke 2005-04-27 08:08:09 UTC
this issue is downstream consequence of xorg library path bug 82333.  /usr/lib64 linked to /lib.  closing - thx

*** This bug has been marked as a duplicate of 82333 ***