Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199005 - amd64: emerging ncurses only installs ld script in EPREFIX/usr/lib64, yet no actual libs in EPREFIX/lib64
Summary: amd64: emerging ncurses only installs ld script in EPREFIX/usr/lib64, yet no ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-13 02:13 UTC by Matt Michalowski
Modified: 2007-11-13 10:04 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 Matt Michalowski 2007-11-13 02:13:14 UTC
I sync'ed today (say approx 2007-11-13 01:00 UTC), and emerged sys-libs/ncurses-5.6-r2 in my amd64 nomultilib prefix-portage install. It hosed my install as bash no longer worked giving the error "error while loading shared libraries: /opt/hwbp/usr/lib64/libncurses.so.5: invalid ELF header".
(my EPREFIX is /opt/hwbp)

The contents of EPREFIX/usr/lib64/libncurses.so are:
---
/* GNU ld script
   Since Gentoo has critical dynamic libraries
   in /lib, and the static versions in /usr/lib,
   we need to have a "fake" dynamic lib in /usr/lib,
   otherwise we run into linking problems.

   See bug http://bugs.gentoo.org/4411 for more info.
 */
OUTPUT_FORMAT ( elf64-x86-64 )
GROUP ( /opt/hwbp/lib64/libncurses.so )
---

however, /opt/hwbp/lib64/libncurses.so does not exist, and looking at the ncurses CONTENTS file nothing was installed in /opt/hwbp/lib64

I have since tried bootstrapping again, but this still happens with ncurses-5.5-r03.2 in the 20071108 snapshot, preventing getting past the "emerge --oneshot bash" stage.(I've tried both multilib and nomultilib

When I originally bootstrapped on this platform, some months ago (around April I think), it was working OK.


Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2007-11-13 09:36:45 UTC
I'm using:

Portage 2.2.00.8470-prefix (default-prefix/linux/amd64/no-multilib, gcc-4.2.2, unavailable, 2.6.20-1.2925.fc6 x86_64)

and I'm going to upgrade ncurses now.
Comment 2 Fabian Groffen gentoo-dev 2007-11-13 09:44:01 UTC
indeed, it hoses the system.

This is probably related:

/net/pegasus.ins.cwi.nl/export/scratch0/fabian/programs/gentoo-prefix/grobian/prefix-tree/sys-libs/ncurses/ncurses-5.6-r2.ebuild: line 130: cd: /net/pegasus.ins.cwi.nl/export/scratch0/fabian/programs/gentoo/var/tmp/portage/sys-libs/ncurses-5.6-r2/image/ufs/fabian/scratch/programs/gentoo//lib64: No such file or directory
Comment 3 Fabian Groffen gentoo-dev 2007-11-13 09:47:31 UTC
and I think I found the problem...  oopsie... works fine on platforms that use lib instead of lib64.
Comment 4 Fabian Groffen gentoo-dev 2007-11-13 09:54:15 UTC
the solution is to remove usr/lib64/libncurses.so.5 and /usr/lib64/libncursesw.so.5 such that tools fall back to your host OS provided ones.
Comment 5 Fabian Groffen gentoo-dev 2007-11-13 10:04:51 UTC
Please apply the workaround as described in my previous post, emerge --sync and reemerge ncurses.  I fixed the issue now.

Sorry for the inconvenience, I will create a new snapshot asap!