Bug 59011 - sources package: spec file resets LD_LIBRARY_PATH in %build section before do `make test`
Summary: sources package: spec file resets LD_LIBRARY_PATH in %build section before do...
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: libjpeg (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-01-29 08:55 UTC by Sysoltsev Slawa
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-01-29 08:55:56 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Sysoltsev Slawa 2002-01-29 08:55:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Description of problem:
Intel C/C++ compiler is delivered with shared libraries. It itself needs them 
to run. In addition, programs built by Intel compiler with default options need 
the shared libraries too. Intel shared libraries are searched in directories 
pointed out by the environment variable LD_LIBRARY_PATH. Before building a 
package, a user sets this variable properly. During building, the packages may 
only add something to the contents of LD_LIBRARY_PATH but not replace it.

You may add your pathes to LD_LIBRARY_PATH but not totally replace it.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
If you don't have Intel compiler (icc) you are unable to reproduce the error. 
This compiler is not free. Let's assume you have it.
1. Make sure that all environment necessary for icc is set.
2. Make sure that icc will be called instead of gcc, g++, cc, cpp and c++. I 
recommend you make links to icc with these names, put them into some directory 
and add this directory to the beginning of the PATH variable.
3. Install one of the packages listed above from the .src.rpm file (-i option 
of rpm). 
4. Try to build the .spec file (-bc option of rpm) and get an error message.

Actual Results:  The package won't build. In the output (near the end), you may 
see the following error message: 
error while loading shared libraries: libcxa.so.1: cannot open shared object 
file: No such file or directory

Expected Results:  The package should build with no problem.

Additional info:

Comment 1 Bernhard Rosenkraenzer 2002-01-31 14:50:43 UTC
Having to set LD_LIBRARY_PATH to use a system library is broken, so IMO the 
compiler should be fixed. 
Nevertheless, I've changed the spec file to prepend $PWD to LD_LIBRARY_PATH 
rather than using it exclusively, shouldn't hurt. (6b-19)

Note You need to log in before you can comment on or make changes to this bug.