[bug-notifications] [gcc4g++rt 0003694]: libstdc++.so.6.0.10 doesn't see libgcc_s.so.1

Mantis Bug Tracker noreply at opencsw.org
Sun Jun 21 20:38:22 CEST 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=3694 
====================================================================== 
Reported By:                kamilradz
Assigned To:                mwatters
====================================================================== 
Project:                    gcc4g++rt
Issue ID:                   3694
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-05-29 10:20 CEST
Last Modified:              2009-06-21 20:38 CEST
====================================================================== 
Summary:                    libstdc++.so.6.0.10 doesn't see libgcc_s.so.1
Description: 
/opt/csw/gcc4/lib/libstdc++.so.6.0.10 looks for libgcc_s.so.1 dependency in
system runtime linking environment, instead of linking to
/opt/csw/gcc4/lib/libgcc_s.so.1

====================================================================== 

---------------------------------------------------------------------- 
 (0006222) dam (reporter) - 2009-05-29 11:57
 http://www.opencsw.org/bugtrack/view.php?id=3694#c6222 
---------------------------------------------------------------------- 
For the library to be self-sufficient the runtime linker path must be
compiled into the shared lib. No RUNPATH there:

build8s% dump -Lv /opt/csw/gcc4/lib/libstdc++.so.6.0.10

/opt/csw/gcc4/lib/libstdc++.so.6.0.10:

  **** DYNAMIC SECTION INFORMATION ****
.dynamic:
[INDEX] Tag         Value
[1]     NEEDED          libm.so.1
[2]     NEEDED          libgcc_s.so.1
[3]     INIT            0x5c0f0
[4]     FINI            0x5c10c
[5]     SONAME          libstdc++.so.6
[6]     HASH            0x94
[7]     STRTAB          0x16fc0
[8]     STRSZ           0x2a5f2
[9]     SYMTAB          0x7b00
[10]    SYMENT          0x10
[11]    CHECKSUM        0x9ea4
[12]    VERNEED         0x415b4
[13]    VERNEEDNUM      0x2
[14]    PLTSZ           0x2088
[15]    PLTREL          0x7
[16]    JMPREL          0x54398
[17]    RELA            0x415f4
[18]    RELASZ          0x14e2c
[19]    RELAENT         0xc
[20]    FEATURE_1       PARINIT 
[21]    FLAGS           0
[22]    FLAGS_1         DISPRELDONE 
[23]    PLTGOT          0xedb04

However, as libstdc++.so.6.0.10 is always linked to a binary, that binary
itself needs to have this runtime linker path also. So there is a slight
flaw inside the shared lib which should be fixed some time, bit it
shouldn't be visible when you compile something as '-R/opt/csw/gcc4/lib' is
mandatory.




More information about the bug-notifications mailing list