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

Bug 20167

Summary: bootstrap.sh fails compile of portage due to symlinks
Product: Gentoo Linux Reporter: Chris Gianelloni (RETIRED) <wolf31o2>
Component: [OLD] Core systemAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Gianelloni (RETIRED) gentoo-dev 2003-04-29 08:41:57 UTC
If the /usr partition is created under a different mount point and symlinked to
rather than being directly under the root filesystem, the symlinks in /usr/lib
will no longer point to their proper counterparts in /lib.  This is due to the
links being relative links rather than absolute links.

Reproducible: Always
Steps to Reproduce:
1. Follow installation instructions through first 8 steps, creating the usr
partition under another mount point, with a symlink in the root pointing to it
(eg. ln -sf /data/usr /usr)
2. emerge sync && scripts/bootstrap.sh
Actual Results:  
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../../i586-pc-linux-gnu/bin/ld:
cannot find -ldl

Expected Results:  
Portage should have compiled properly

Changing the symbolic links from pointing to ../../lib/libraryname to
/lib/libraryname solves this problem.
Comment 1 John Davis (zhen) (RETIRED) gentoo-dev 2004-01-20 21:43:43 UTC
forwarding to the portage team since it is more their area of responsibility
Comment 2 SpanKY gentoo-dev 2004-10-30 19:36:10 UTC

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