Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 12708
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: OLAF [...] cpan.org
Requestors: matt [...] tnpi.biz
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.49
Fixed in: 0.50



Subject: Net::DNS & Darwin (Mac OS X 10.4)
Net::DNS refuses to compile on Mac OS X 10.4. This fix is quite easy, edit DNS.xs and add the following: #include <nameser8_compat.h> immediately after #include <netinet/in.h>. Darwin g5.simerson.net 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh powerpc
Subject: Net::DNS & Darwin (Mac OS X) 10.4
Net::DNS refuses to compile on Mac OS X 10.4. This fix is quite easy, edit DNS.xs and add the following: "#include <nameser8_compat.h>" immediately after "#include <netinet/in.h>". Darwin g5.simerson.net 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh powerpc g5:/Users/matt/.cpan/build/Net-DNS-0.49 root# perl -v This is perl, v5.8.6 built for darwin-2level It then occured to me, some compile output might be helpful, in case there's a method of fixing it that is better than mine: cp lib/Net/DNS/Resolver/Base.pm blib/lib/Net/DNS/Resolver/Base.pm /opt/local/bin/perl /opt/local/lib/perl5/5.8.6/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.8.6/ExtUtils/typemap DNS.xs > DNS.xsc && mv DNS.xsc DNS.c cc -c -I/opt/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/opt/local/include -O3 -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\" "-I/opt/local/lib/perl5/5.8.6/darwin-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 Note that this is with the version of Perl installed via DarwinPorts. I have also tested and confirmed that Net::DNS will not build with the Apple supplied build of perl (also 5.8.6) on a clean 10.4 system.
[guest - Fri May 6 21:48:44 2005]: Show quoted text
> Net::DNS refuses to compile on Mac OS X 10.4. This fix is quite easy, > edit DNS.xs and add the following: > > #include <nameser8_compat.h> > > immediately after #include <netinet/in.h>. > > Darwin g5.simerson.net 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26 > 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh > powerpc
In the forthcomming version DNS.xs commes with its own version of dn_expand and therefore does not depend on the local libresolv and therefore not on these headers. I would appreciate somebody with Tiger (I'm lame I do only have Panther :-) ) to try if the code of the trunk works for them (subversion: http://www.net-dns.org/svn/net-dns/trunk ). --Olaf
All tests fail because off: Show quoted text
> # Error: Can't locate Net/IP.pm in @INC (@INC contains: /private/
Net::IP is one of the prerequisites for running Net::DNS. It may be that Net::IP is not installed or not in the pathy you are trying to use. Net::IP is available from CPAN. I hope and think that things will run better once Net::IP is available :-) --Olaf
Show quoted text
> > Read further down in the email, I installed Net:IP and then ran "make > test" again. >
Oh you mean the part just behind the few 100 lines of debug code is what I missed :-) t/10-recurse...............ok 8/12Server [10.0.1.1] did not give answers at Show quoted text
>/private/var/root/.cpan/build/test/netdns/blib/lib/Net/DNS/Resolver/Recurse.pm
line 86. Server [10.0.1.1] did not give answers at /private/var/root/.cpan/build/test/netdns/blib/lib/Net/DNS/Resolver/Recurse.pm line 86. # Failed test (t/10-recurse.t at line 62) # got: undef # expected: '3' # Looks like you planned 12 tests but only ran 9. t/10-recurse...............dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 9-12 Failed 4/12 tests, 66.67% okay On 10-recurse: You are running your test against a recursive server on RFC1918 space. Changes are that beast is not connected to the Internet and you do not get the appropriate answers to actually start recursing. Hence the error. This is an error the tests do fail on more often, I do want to catch this failure Ignore it for now. t/11-escapedchars..........ok 96/141# disabling XS based dns_expand for a moment. t/11-escapedchars..........ok 99/141# Continuing to use the XS based dn_expand() t/11-escapedchars..........ok The test below 11-excapedchars is the relevant test in this context, that test uses the dn_expand function that is shipped with the package. Good to know that this compiles. t/11-inet6.................ok 5/6# Looks like you planned 6 tests but only ran 5. t/11-inet6.................dubious 11-inet6 Hmmm this is suspicious... could you run perl -Iblib/lib t/11-inet6.t and provide me with the output. That would be very helpful. Thanks for the feedback, I appreciate it!. --Olaf
From: lorenzo.luconi [...] iit.cnr.it
Hi Olaf, I've a Mac with Mac OS X 10.4 and tried to execute this command: $ perl -Iblib/lib t/11-inet6.t 1..5 ok 1 - use Net::DNS; ok 2 - Preparing for v6 transport, got NS records for ripe.net ok 3 - Preparing for v6 transport, got AAAA records for munnari.oz.au # # Using munnari.oz.au (2001:388:c02:4000:0:0:1:21) to query for ripe.net SOA ;; RESOLVER state: ;; domain = ;; searchlist = ;; nameservers = 2001:388:c02:4000:0:0:1:21 ;; port = 53 ;; srcport = 0 ;; srcaddr = 0.0.0.0 ;; tcp_timeout = 120 ;; retrans = 5 retry = 4 ;; usevc = 0 stayopen = 0 igntc = 0 ;; defnames = 1 dnsrch = 1 ;; recurse = 1 debug = 0 ;; INET6 enabled # # The test below are skipped because of # 'Send error: No route to host' # # This could be a indication that you actually do not have IPv6 connectivity # Please try if 'ping6 2001:388:c02:4000:0:0:1:21' works before contacting the maintainer # ok 4 # skip No answer available to analyse ok 5 # skip No answer available to analyse I don't know if this test i enough for you or not. Unfortunelly in my home I haven't an IPv6 connectivity. I can make the same test on monday at work with IPv6 support. Let me know if you need this test with IPv6 or other. Ciao, Lorenzo Luconi Tromacchi Show quoted text
> > Oh you mean the part just behind the few 100 lines of debug code > is what I missed :-) > > > > t/10-recurse...............ok 8/12Server [10.0.1.1] did not give > answers > at > >/private/var/root/.cpan/build/test/netdns/blib/lib/Net/DNS/Resolver/Recurse.pm > line 86. > Server [10.0.1.1] did not give answers at >
/private/var/root/.cpan/build/test/netdns/blib/lib/Net/DNS/Resolver/Recurse.pm Show quoted text
> line 86. > # Failed test (t/10-recurse.t at line 62) > # got: undef > # expected: '3' > # Looks like you planned 12 tests but only ran 9. > t/10-recurse...............dubious > Test returned status 4 (wstat 1024, 0x400) > DIED. FAILED tests 9-12 > Failed 4/12 tests, 66.67% okay > > > On 10-recurse: > > You are running your test against a recursive server on RFC1918 space. > Changes are that beast is not connected to the Internet and you do not > get the appropriate answers to actually start recursing. Hence the > error. > > This is an error the tests do fail on more often, I do want to catch > this failure Ignore it for now. > > > > > > > t/11-escapedchars..........ok 96/141# disabling XS based dns_expand > for > a moment. > t/11-escapedchars..........ok 99/141# Continuing to use the XS based > dn_expand() > t/11-escapedchars..........ok > > The test below 11-excapedchars is the relevant test in this context, > that test uses the dn_expand function that is shipped with the > package. > > Good to know that this compiles. > > > t/11-inet6.................ok 5/6# Looks like you planned 6 tests but > only ran 5. > t/11-inet6.................dubious > > > 11-inet6 > > Hmmm this is suspicious... could you run > perl -Iblib/lib t/11-inet6.t > and provide me with the output. That would be very helpful. > > > Thanks for the feedback, I appreciate it!. > > --Olaf