Bug 149191 - missing symbolic link to libdb_cxx.so
missing symbolic link to libdb_cxx.so
Product: Fedora
Classification: Fedora
Component: db4 (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
Blocks: 225173
  Show dependency treegraph
Reported: 2005-02-20 12:36 EST by Stephen Beahm
Modified: 2007-11-30 17:11 EST (History)
4 users (show)

See Also:
Fixed In Version: 4.3.27-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-21 01:01:23 EST
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 Stephen Beahm 2005-02-20 12:36:30 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20041020 Epiphany/1.4.4

Description of problem:
db4-devel has a missing symbolic link from libdb_cxx.so to

Rawhide package db4-devel-4.3.27-1.i386.rpm is also missing the symlink.


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

How reproducible:

Steps to Reproduce:
1. try building klibido (for example)

Actual Results:  klibido build cannot find libdb_cxx.so

Additional info:
Comment 1 Jeff Johnson 2005-02-21 01:01:23 EST
The file /usr/lib/libdb_cxx-4.2.so is in the db4 package:

$ rpm -qf /usr/lib/libdb_cxx-4.2.so

Specify -ldb_cxx-4.2 on the linkage line to specify
the version of libdb_cxx that is desired. The Berkeley
DB is version specific, and can/will change between
versions, so it is not wise to link against a symlink
for libdb_cxx.so.
Comment 2 Bernard Normier 2005-03-03 11:17:19 EST
The libdb_cxx.so (like any simple .so) should never be used for
runtime linking. Don't include it in the runtime (db4) package, but
please put it back in the db4-devel RPM.

When you build an application [not run it], such symbolic link is very
useful. Berkeley DB is mostly source compatible from versions to
version. It's very easy to write a package that works with 4.1, 4.2,
4.3, but if you don't provide this lib_cxx.so symbolic link (for
link-time when you build the application), you force a specific
version into the makefiles. Quite unfortunate!

Comment 3 Philippe Rigault 2005-03-10 09:39:48 EST
> Specify -ldb_cxx-4.2 on the linkage line to specify 
> the version of libdb_cxx that is desired. 
No, this is not the correct way (and Bernard is exactly right, one wants to be 
forward compatible when building an app). 
Besides, this is inconsistent with what is done (correctly) for libdb in the 
same package: 
$ ls -l /usr/lib/libdb.so 
lrwxrwxrwx  1 root root 22 Dec  7 14:53 /usr/lib/libdb.so 
-> ../../lib/libdb-4.2.so 
$ rpm -qf /usr/lib/libdb.so 
Please do the same with libdb_cxx, that would be both correct and consistent. 
Comment 4 Bill Nottingham 2005-04-25 16:02:20 EDT
Added in -3.
Comment 5 Aleksey Nogin 2007-01-26 18:55:15 EST
This problem still exists in db4-devel-4.2.52-7.1 in EL 4. Should I file a
separate bug on that?
Comment 6 Bill Nottingham 2007-01-26 21:25:28 EST
You can, yes.

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