Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-08-23
14:00 • Ticket [1231017fff] Fedora Core: soname status still Open with 6 other chang... artifact: 5a56d8f39d user: dkf
2008-12-18
18:53 • Ticket [1231017fff]: 1 change artifact: 06e76b280a user: dkf
2005-07-27
06:42 • Ticket [1231017fff]: 4 changes artifact: acfc1f47d1 user: jenglish
03:58 • Ticket [1231017fff]: 4 changes artifact: 4d217c3ad2 user: dkf
03:00 • Ticket [1231017fff]: 4 changes artifact: dc3479625e user: mdejong
2005-07-01
22:24 • Ticket [1231017fff]: 4 changes artifact: cb8c704536 user: dgp
22:24 • Add attachment tcl-8.3.5-tclm4-soname.patch to ticket [1231017fffffffff... artifact: db3029df8d user: dgp
15:24 • New ticket [1231017fff] Fedora Core: soname. artifact: 3b35c28fe4 user: dgp

Fedora Core: soname

Open1231017fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 10 years ago
Descriptionplain2005-07-01 15:24:20
Contributed patch from
Fedora Core distributors.

Applies to 8.4.11.
dgpplain2005-07-01 22:24:20
File Added - 140521: tcl-8.3.5-tclm4-soname.patch
mdejongplain2005-07-27 03:00:50
Logged In: YES 
user_id=90858

This patch might do something useful. Can anyone shed light
on exactly
what problem this patch fixes? It adds a -Wl option to the
gcc command
line invocation under Linux. What is wrong with the default
shared library name?

-SHLIB_LD="${CC} -shared"
+SHLIB_LD='${CC} -shared -Wl,-soname,${@}'
dkfplain2005-07-27 03:58:06
Logged In: YES 
user_id=79902

Excerpt from the Linux 'ld' manual page

       -soname=name
           When creating an ELF shared  object,  set  the 
internal  DT_SONAME
           field  to  the specified name.  When an
executable is linked with a
           shared object which has a DT_SONAME field, then
when the executable
           is  run  the  dynamic linker will attempt to load
the shared object
           specified by the DT_SONAME field rather than  the
 using  the  file
           name given to the linker.

(No, I don't know why this confers a benefit.)
jenglishplain2005-07-27 06:42:39
Logged In: YES 
user_id=68433

It helps in the case where you specify an absolute path to
libtcl8.X.so when linking tclsh, wish, or other "embedding"
application, and this library is expected to be found in a
different location at run-time on the target platform.

I think -soname can also used for library versioning, but
Tcl's current library naming conventions preclude that use.
dkf Ticket [1231017fff]: 1 change [History diff]2008-12-18 18:53:17
dkf Ticket [1231017fff]: 6 changes [History diff]2016-08-23 14:00:06
Log in (anonymous is fine) to add a comment.

Attachments: