libsmbclient-dev missing smbc_urlencode in .a in intrepid

Bug #315774 reported by Tobias Arrskog
4
Affects Status Importance Assigned to Milestone
samba
Fix Released
High
samba (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libsmbclient-dev

when installed on Hardy
topfs@tobias:~$ cat /usr/include/libsmbclient.h | grep smbc_urlencode
smbc_urlencode(char * dest, char * src, int max_dest_len);
topfs@tobias:~$ nm /usr/lib/libsmbclient.a | grep smbc_urlencode
000000a0 T smbc_urlencode
topfs@tobias:~$

When installed on Intrepid
topfs@topfs-laptop:~$ cat /usr/include/libsmbclient.h | grep smbc_urlencode
smbc_urlencode(char * dest, char * src, int max_dest_len);
topfs@topfs-laptop:~$ nm /usr/lib/libsmbclient.a | grep smbc_urlencode
nm: dbwrap_ctdb.o: no symbols
topfs@topfs-laptop:~$

This leads me to believe its not available, seems to affect both x86 and x64 versions.

1) topfs@topfs-laptop:~$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

2)topfs@topfs-laptop:~$ apt-cache policy libsmbclient-dev
libsmbclient-dev:
  Installed: 2:3.2.3-1ubuntu3.4
  Candidate: 2:3.2.3-1ubuntu3.4
  Version table:
 *** 2:3.2.3-1ubuntu3.4 0
        500 http://se.archive.ubuntu.com intrepid-updates/main Packages
        500 http://security.ubuntu.com intrepid-security/main Packages
        100 /var/lib/dpkg/status
     2:3.2.3-1ubuntu3 0
        500 http://se.archive.ubuntu.com intrepid/main Packages
topfs@topfs-laptop:~$

topfs-laptop is intrepid
tobias is hardy

Tobias Arrskog (topfs2)
description: updated
Changed in samba:
assignee: nobody → wattazoum
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

I tested and indeed, the smbc_urlencode symbol defined in the header is not found in the libsmbclient.a file on intrepid but is found in hardy (3.0.28a-1ubuntu4).
I am trying to figure out is this is due to the sources or to a wrong build.

Changed in samba:
status: New → Confirmed
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Quoting the developer commit:
==================

[Bug 6022] smbc_urlencode and smbc_urldecode were not exported
- Since the revamp of libsmbclient, there has still been an external
  declaration for smbc_urlencode and smbc_urldecode in libsmbclient.h, yet
  those functions were renamed and made private. The two choices were to
  remove the function names from libsmbclient.h or to make them public
  again. The reported requested that they be public. This commit makes it so.
Derrell

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :
Changed in samba:
status: Confirmed → In Progress
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Debdiff attached.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :
Changed in samba:
assignee: wattazoum → nobody
status: In Progress → Fix Committed
Changed in samba:
status: Unknown → Fix Released
Bryce Harrington (bryce)
Changed in samba:
status: Fix Committed → In Progress
Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed for jaunty now.

Changed in samba:
status: In Progress → Fix Released
Revision history for this message
Tobias Arrskog (topfs2) wrote :

Nice to hear, just wondering if this will be fixed for intrepid?

Basically team-xbmc would ideally want to use libsmbclient-dev so we could link to the systemlib instead because we have issues regarding x64 with our precompiled version and can´t switch due to this bug.

If it won´t be backported for intrepid we´ll just have to try to another way (would love not to though ;) )

Changed in samba:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.