Bug 17556 - Location of shared library is wrong.
Location of shared library is wrong.
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: db3 (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-09-15 22:10 EDT by Red Hat Bugzilla
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-09-15 22:10:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Red Hat Bugzilla 2000-09-15 22:10:51 EDT
The GNU linker use the firt match, shared and then static, in the
directory it searches for -lfoo. That means the shared and static
libraries for the linker have to be in the same directory. But for
db3, it has

/usr/lib/libdb-3.1.a
/usr/lib/libdb-3.1.la

in db3-devel and

/lib/libdb-3.1.so

in db3. For gcc 2.96,

# gcc .... -ldb-3.1

will pickup /usr/lib/libdb-3.1.a as

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libdb-3.1.a

since

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../..

is searched before /lib. There are many shared libraries like that under
/lib. They all should be fixed.
Comment 1 Red Hat Bugzilla 2000-10-09 15:51:58 EDT
Fixed by adding
	ln -s ../../lib/libdb-3.1.so /usr/lib/libdb-3.1.so
add not editing the "libdir='...'" line in libdb-3.1.la

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