This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.7.9: where are ns_get16 and ns_name_ntop defined?


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?

Attachment: cygcheck.out
Description: cygcheck.out

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]