Subject: | Unresolved calls in Net::DNS |
I use Net::DNS in a library that sends emails from both inside and outside the firewall. To do this my library needs to know which SMTP server I'm supposed to use, which I discover by
@smtp_list = mx('iec.ch');
This fails with the message
Can't locate object method "query" via package MYPACKAGE at
/usr/lib/perl5/site_perl/5.8.1/i586-linux-thread-multi/Net/DNS.pm
line 312
Bug being reported is the unresolved reference in DNS.pm.
Using the command: perl -c xxx, I get "syntax OK" on each piece of code (orignal program, my library, DNS.pm) until I get to
.../Net/DNS/Resolver.pm
at which point I get a number of errors.
I've checked the @INC, and it looks OK so far as I can tell. Specifically, it includes the .../i586-linux-thread-multi/ directory in which Net and its
sub-directories are found; from there on the Net::DNS, Net::DNS::etc references in the modules should be sufficient.
I'm running perl v5.8.1 built for i586-linux-multi-thread with SuSE v9.0.
(Full uname -a OS version is: Linux devweb-1 2.4.21-266-smp4G #1 SMP Fri Dec 10 17:06:22 UTC 2004 i686 i686 i386 GNU/Linux.)
I upgraded/reinstalled Net::DNS to Net-DNS-0.49 (downloaded from cpan today), but that has not fixed the problem. Any thoughts? Files and/or output that could be helpful gladly provided on request.
Thanks and regards,
Sam Carmalt