Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29950 - gcc-config doesn't allow multiple library paths in LDPATH=
Summary: gcc-config doesn't allow multiple library paths in LDPATH=
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 50132 (view as bug list)
Depends on: 18933
Blocks: 29952
  Show dependency tree
 
Reported: 2003-09-29 13:55 UTC by Brad House
Modified: 2004-06-20 08:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to allow multiple paths LDPATH when using gcc-config (gcc-config.amd64.patch,571 bytes, patch)
2003-09-29 13:56 UTC, Brad House
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brad House 2003-09-29 13:55:51 UTC
Basically because of a 
if [ -d "${LDPATH}" ]
statement, it doesn't allow an LDPATH like this:
LDPATH="dir1:dir2:dir3"
yet, LDPATH parameters in /etc/env.d _do_ allow that.
This is a patch to comment out that restriction.  This is
required for a GCC patch I'm about to submit for multilib support
for GCC on amd64
Comment 1 Brad House 2003-09-29 13:56:49 UTC
Created attachment 18500 [details, diff]
patch to allow multiple paths LDPATH when using gcc-config
Comment 2 Brad House 2003-10-18 12:45:08 UTC
gcc-config-1.3.3-r2  has these changes needed for gcc-3.3.1-r5 for
amd64
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-05-05 13:54:19 UTC
*** Bug 50132 has been marked as a duplicate of this bug. ***
Comment 4 Travis Tilley (RETIRED) gentoo-dev 2004-05-05 13:55:33 UTC
ok, it seems this bug now applies to all archs and not just amd64. since i am on an amd64 box, i never even noticed a problem.. since we seem to already have a fix.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2004-05-06 11:56:42 UTC
Stupid question - does it have the entries in the correct order in ld.so.conf?
Comment 6 SpanKY gentoo-dev 2004-05-06 17:45:14 UTC
fixed in cvs
Comment 7 Travis Tilley (RETIRED) gentoo-dev 2004-05-06 23:32:48 UTC
martin - from my ld.so.conf:

/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.0

(i have 3.3.3 and 3.4.0 installed at the moment)

same order regardless of which compiler is active. yeah... i'd say that's a bug.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2004-05-07 13:47:16 UTC
Yeah, some nut in portage dev decided that the order in env.d doesn't bother
him, and went and sorted it.  Might be mistaken though, but I want to remember
it did not do it in the past (and why my gcc2/gcc3 installation did the
right thing at the time, before I wiped it).

Can anybody in portage dev confirm that ld.so.conf entries was not always
sorted?  This is also sorda a sticky issue with mozilla/firefox/etc.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2004-05-08 07:29:00 UTC
Oh, and could we add it in the order it appears in /etc/env.d/ ?
Comment 10 Nicholas Jones (RETIRED) gentoo-dev 2004-05-16 04:05:05 UTC
Yeah... Looks like the sort has been in since at least October...
It's in every version since 2.0.49-r15, at least.

It's not present in any portage-2.0.51.

Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-20 08:04:20 UTC
Ok, this should be fine now ...