Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: Marek.Rouchal [...] gmx.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.60
Fixed in: (no value)



Subject: Adding -lresolv on Solaris, better netdns.o handling
The attached patch contains two improvements: - On Solaris 8 (sparc) Net::DNS requires libresolv.so, so I added - lresolv to LIBS - better way to include netdns.o - there is no need to go through the archive (netdns.a); you then can also remove the additional target to build netdns.a. There is no benefit with this indirection Cheers, and keep up the good work, Marek
Subject: Net-DNS.diff
diff -ruN Net-DNS-0.60/Makefile.PL Net-DNS-0.60p1/Makefile.PL --- Net-DNS-0.60/Makefile.PL 2007-06-21 16:40:00.000000000 +0200 +++ Net-DNS-0.60p1/Makefile.PL 2007-07-05 09:14:27.571274000 +0200 @@ -128,7 +128,8 @@ if ($use_xs) { # turn the XS bits on. print "Activating XS Magic...\n" if DEBUG; - $Makefile{'MYEXTLIB'} = 'netdns$(LIB_EXT)'; + $Makefile{'LIBS'} = '-lresolv' if($^O =~ /solaris|sunos/i); + $Makefile{'OBJECT'} = '$(O_FILES)'; delete $Makefile{'XS'}; delete $Makefile{'C'}; }
Thanks for the patch. I've applied it to the trunk so it will be released with 0.62 (not with the version that popped out today (0.61) which contained an 'emergency' fix. --Olaf