[Pkg-samba-maint] Bug#219242: use of commun functions names

Julien Cristau jcristau at debian.org
Fri Jun 8 22:36:02 UTC 2007


# Gaétan's email address has changed, so let's pretend I'm the submitter
submitter 219242 !
tags 219242 patch
kthxbye

On Wed, Nov  5, 2003 at 10:02:34 +0100, Richard Gaétan wrote:

> Some fonctions exported with libsmbclient have currents names therefore 
> it is impossible to incorporate libsmbclient in an other language.
> 
> ex: sys_open , string_set (for use with OCaml)
> 
> $  objdump -R /usr/lib/libsmbclient.so > foo.txt
> $ grep sys_open foo.txt
> 000afcc8 R_386_JUMP_SLOT   sys_open
> $
> 
> I think these fonctions should either renamed in smbc_(old name) or they 
> should be hidden in the binary
> 
Hi,

I rebuilt samba with the attached patch, and the number of symbols
exported by libsmbclient went down from more than 4000 to 51.
The patch adds a version script for this lib, which only exports symbols
matching "smbc_*".  I added tentative detection code for the configure
script, which checks the version of GNU ld.  As far as I know, support
for this was added for GNU ld 2.12 (or at least, that's what libtool.m4
seems to check), released in 2002.
I'll attach a complete debdiff, and the actual patch I dropped in
debian/patches.

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsmbclient_version_script.diff
Type: text/x-diff
Size: 10075 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20070609/0a2a5432/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version-script.patch
Type: text/x-diff
Size: 2373 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20070609/0a2a5432/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20070609/0a2a5432/attachment.pgp 


More information about the Pkg-samba-maint mailing list