Bug 1017604

Summary: LD_LIBRARY_PATH does not contain 32bit lib path on 64bit systems
Product: Red Hat Developer Toolset Reporter: Miroslav Franc <mfranc>
Component: devtoolset-metaAssignee: Marek Polacek <mpolacek>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: medium Docs Contact:
Priority: medium    
Version: DTS 2.0 RHEL 6CC: jakub, mfranc, mnewsome, ohudlick
Target Milestone: ---   
Target Release: 2.4   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: devtoolset-2-2.1-3.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-11 06:34:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Miroslav Franc 2013-10-10 08:45:34 UTC
Description of problem:
When I enable dts (on x86_64 for example) I see that LD_LIBRARY_PATH=/opt/rh/devtoolset-2/root/usr/lib64, but it should be LD_LIBRARY_PATH=/opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib.  In other words 32 lib path should be included as well.


How to reproduce:
1/ Install devtoolset-2-memstomp.i686 on x86_64 distro
2/ LD_PRELOAD="libmemstomp.so" ./something_compiled_with_-m32
ERROR: ld.so: object 'libmemstomp.so' from LD_PRELOAD cannot be preloaded: ignored.

Comment 1 Marek Polacek 2013-10-14 15:56:01 UTC
Fixed in devtoolset-2-2.1-3.el[56]; only lightly tested though.

Comment 6 errata-xmlrpc 2014-03-11 06:34:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0278.html