Bug 17556 - Location of shared library is wrong.
Location of shared library is wrong.
Product: Red Hat Linux
Classification: Retired
Component: db3 (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  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:
Last Closed: 2000-09-15 22:10:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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


in db3-devel and


in db3. For gcc 2.96,

# gcc .... -ldb-3.1

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




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.