[MacPorts] #17919: samba3: smbc_urlencode symbol not in dylib
MacPorts
noreply at macports.org
Thu Jan 8 12:03:07 PST 2009
#17919: samba3: smbc_urlencode symbol not in dylib
-----------------------------------+----------------------------------------
Reporter: jeremyhu@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: symbol linking | Port: samba3
-----------------------------------+----------------------------------------
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...
--
Ticket URL: <http://trac.macports.org/ticket/17919>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list