1.7.9: where are ns_get16 and ns_name_ntop defined?
Fischer, Matthew L
matt.fischer@hp.com
Tue Jun 7 17:56:00 GMT 2011
I cannot find ns_get16 and ns_name_ntop defined in libresolv or anywhere else for that matter. For example, the following sample code compiles and links fine on Ubuntu 10.04, but on Cygwin it has missing symbols:
#include <arpa/nameser.h>
int main()
{
char *dst;
unsigned int ux;
int x = ns_name_ntop("foo",dst, 1);
ux = ns_get16(dst);
return 0;
}
Ubuntu 10.04:
[mfisch@toaster ~]$ gcc ns.c -lresolv -o ns
[mfisch@toaster ~]$ ls -al ns
-rwxr-xr-x 1 mfisch mfisch 7184 2011-06-03 15:55 ns
Cygwin 1.7.9:
$ gcc ns.c -o ns -lresolv
/tmp/ccSU4pXz.o:ns.c:(.text+0x2e): undefined reference to `___ns_name_ntop'
/tmp/ccSU4pXz.o:ns.c:(.text+0x3c): undefined reference to `___ns_get16'
collect2: ld returned 1 exit status
How do we resolve this issue? Are these methods implemented in a different library or with different names?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 32377 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110607/9bcc86b7/attachment.obj>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list