Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17919 closed defect (fixed)

samba3: smbc_urlencode symbol not in dylib

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: symbol linking Cc: mww@…
Port: samba3

Description

This was happening with 3.2.6 as well before I bumped it for the CVE.

$ cat test.c 
#include <libsmbclient.h>

int main() {
	char *c; char *s; int l;
	return smbc_urlencode(c, s, l);
}

$ gcc test.c -Wall -I/opt/local/include -L/opt/local/lib/samba3 -lsmbclient
Undefined symbols:
  "_smbc_urlencode", referenced from:
      _main in ccdxnKVA.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

$ gcc test.c -Wall -I/opt/local/include -E | grep -C3 smbc_urlencode
smbc_urldecode(char *dest, char * src, size_t max_dest_len);
# 2542 "/opt/local/include/libsmbclient.h" 3
int
smbc_urlencode(char * dest, char * src, int max_dest_len);
# 2558 "/opt/local/include/libsmbclient.h" 3
const char *
smbc_version(void);
--

int main() {
 char *c; char *s; int l;
 return smbc_urlencode(c, s, l);
}

I'm looking into it now...

Change History (2)

comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

I patched this a few weeks ago, and it's fixed upstream for the next release as well

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.