Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 101048

Summary: DSO link-errors with libdb_cxx.so
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: db4Assignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: jakub
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-21 19:39:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 100643    

Description Enrico Scholz 2003-07-28 19:51:05 UTC
Description of problem:

| $ echo 'int main() {}' >x.c
| $ g++ x.c -ldb_cxx
| /usr/bin/ld: a.out: hidden symbol `__dso_handle' in
| /usr/lib/gcc-lib/i386-redhat-linux/3.3/crtbegin.o is referenced by DSO
| collect2: ld returned 1 exit status


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

db4-devel-4.1.25-7
gcc-3.3-14
binutils-2.14.90.0.4-23

Comment 1 Jakub Jelinek 2003-07-28 20:15:05 UTC
That means libdb_cxx has been built incorrectly.
nm -Du /usr/lib/libdb_cxx.so | grep __dso_handle
         U __dso_handle
Quick guess is that ld -shared instead of g++ -shared is used to link that
shared library.

Comment 2 Jeff Johnson 2003-09-26 01:48:58 UTC
I'll take this one ...

Comment 3 Bill Nottingham 2003-10-21 19:39:44 UTC
This is fixed in current rawhide.