Requirements for UDNS Install

T kyer xdtrq at ananzi.co.za
Fri Dec 2 19:37:06 MSK 2005


Hi Michael

Thanks for your prompt reply. Library packages of the
quality offered by UDNS are rare for C/C++ internet
Libraries. It would be worth the effort to work together to
try to port this excellent package to windows. I may not
respond to queries immediately but I will provide feedback
in short order. 

Actually I'm glad that to try to port UDNS to a Gcc
compiler instead of MS Visual C++. The reason being is that
Visual C++ is a non standard C++ compiler. Usually what
this means is that is that any software built with this
compiler can only be built with Visual C++ and nothing else
unless extensive changes are implemented. With Gcc on the
other hand this is not usually the case.

I'm not sure what you mean by compile natively. Could you
please elaborate.
I don't think these functions are available - getopt() and
inet_ntoa() and friends - unless they are included in one
of the library files. This is not easily verifiable unless
you have a package name e.g. winsock.h or libwininet.a. No
matter, once we know which external files are required we
will be able to sort this out.

Following please find the compiled error list:

Compiler: Default compiler
Executing  make...
make.exe -f "Makefile" all
gcc -Wall -W -Wmissing-prototypes -O2 -DHAVE_POLL -c
udns_dn.c gcc -Wall -W -Wmissing-prototypes -O2 -DHAVE_POLL
-c udns_dntosp.c gcc -Wall -W -Wmissing-prototypes -O2
-DHAVE_POLL -c udns_parse.c gcc -Wall -W
-Wmissing-prototypes -O2 -DHAVE_POLL -c udns_resolver.c
udns_resolver.c: In function `dns_add_serv_internal':
udns_resolver.c:258: error: `EOVERFLOW' undeclared (first
use in this function)
udns_resolver.c:258: error: (Each undeclared identifier is
reported only once udns_resolver.c:258: error: for each
function it appears in.)
udns_resolver.c:258: warning: left-hand operand of comma
expression has no effect
udns_resolver.c:264: warning: implicit declaration of
function `inet_pton'
udns_resolver.c: In function `dns_add_serv_s_internal':
udns_resolver.c:304: error: `EOVERFLOW' undeclared (first
use in this function)
udns_resolver.c:304: warning: left-hand operand of comma
expression has no effect
udns_resolver.c: In function `dns_add_srch_internal':
udns_resolver.c:383: error: `EOVERFLOW' undeclared (first
use in this function)
udns_resolver.c:383: warning: left-hand operand of comma
expression has no effect
udns_resolver.c: In function `dns_firstid':
udns_resolver.c:443: warning: implicit declaration of
function `gettimeofday'
udns_resolver.c:444: warning: implicit declaration of
function `getpid'
udns_resolver.c: At top level:
udns_resolver.c:451: error: syntax error before
"PIP_ADAPTER_ADDRESSES"
udns_resolver.c: In function `dns_initns_iphlpapi':
udns_resolver.c:457: error: `PIP_ADAPTER_ADDRESSES'
undeclared (first use in this function)
udns_resolver.c:457: error: syntax error before "pAddr"
udns_resolver.c:458: error:
`PIP_ADAPTER_DNS_SERVER_ADDRESS' undeclared (first use in
this function)
udns_resolver.c:464: error: `HANDLE_ERROR' undeclared
(first use in this function)
udns_resolver.c:467: error: `iphlp' undeclared (first use
in this function)
udns_resolver.c:470: warning: implicit declaration of
function `GetAdAddrs'
udns_resolver.c:472: error: `pAddrBuf' undeclared (first
use in this function)
udns_resolver.c:476: error: `pAddr' undeclared (first use
in this function) udns_resolver.c:479: error: `pDnsAddr'
undeclared (first use in this function) udns_resolver.c: In
function `dns_initns_registry':
udns_resolver.c:510: warning: passing arg 4 of
`RegQueryValueExA' from incompatible pointer type
udns_resolver.c:510: warning: passing arg 5 of
`RegQueryValueExA' from incompatible pointer type
udns_resolver.c:510: error: too few arguments to function
`RegQueryValueExA'
udns_resolver.c: In function `dns_close':
udns_resolver.c:754: warning: implicit declaration of
function `close'
udns_resolver.c: In function `dns_ioevent':
udns_resolver.c:1054: warning: comparison between signed
and unsigned
udns_resolver.c:1063: warning: comparison between signed
and unsigned
udns_resolver.c:1254:3: warning: #warning fixme:
poll()/select() on WIN32 (WaitForMultipleObjects?)
udns_resolver.c: In function `dns_resolve':
udns_resolver.c:1257: error: storage size of 'pfd' isn't
known udns_resolver.c:1283: error: `POLLIN' undeclared
(first use in this function) udns_resolver.c:1291: warning:
implicit declaration of function `poll'
udns_resolver.c:1257: warning: unused variable `pfd'
udns_resolver.c: At top level: udns_resolver.c:395:
warning: 'dns_set_srch_internal' defined but not used
make.exe: *** [udns_resolver.o] Error 1 Execution
terminated


Please let me know your thoughts

Thanks



More information about the udns mailing list