Subject: | Net::DNS on OS X Tiger (10.4) build errors |
building on OS X tiger with the stock version of perl (v5.8.6 built for darwin-thread-multi-2level)
fails due to undeclared symbols
$make
cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" DNS.c
DNS.xs: In function 'XS_Net__DNS__Packet_dn_expand_XS':
DNS.xs:58: error: 'MAXDNAME' undeclared (first use in this function)
DNS.xs:58: error: (Each undeclared identifier is reported only once
DNS.xs:58: error: for each function it appears in.)
DNS.xs:68: warning: pointer targets in passing argument 1 of 'res_9_dn_expand' differ in signedness
DNS.xs:68: warning: pointer targets in passing argument 2 of 'res_9_dn_expand' differ in signedness
DNS.xs:68: warning: pointer targets in passing argument 3 of 'res_9_dn_expand' differ in signedness
make: *** [DNS.o] Error 1
I was able to build by changing all refs of "MAXDNAME" to "NS_ MAXDNAME" in DNS.xs
All tests completed successfully
Hope that helps.