cancel
Showing results for 
Search instead for 
Did you mean: 

net::dns

SOLVED
Go to solution
Cfabio
Frequent Advisor

net::dns

Hi

I have a software write in perl 5.010 that works on my linux machine using perl module net::dns and I would want to port it on VMS alpha or (possibly) itanium on an ODS5 disk.

Do you know if it is possible? The module net::dns is supported on VMS?

Thanks in advance
Regards
16 REPLIES
Shriniketan Bhagwat
Trusted Contributor

Re: net::dns

Hi,

A similar topic was discussed in the below thread. May be useful.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=653158&admit=109447627+1278604673030+28353475

Regards,
Ketan
P Muralidhar Kini
Honored Contributor

Re: net::dns

Hi Cfabio,

Check the following links -
http://www.mail-archive.com/vmsperl@perl.org/msg06324.html
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=653158

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
Craig A Berry
Honored Contributor

Re: net::dns

Pointers to earlier posts don't seem especially relevant anymore since the module now comes with its own dn_exapand implementation.

I spent 10 minutes building the current version (0.66) myself and with minor adjustments got it to build and pass most of its tests (only failed 3 of 1492). The failures seem to have to do with additional modules that I don't have installed and poorly written tests that do not check for their presence before running.

So the module appears to work on VMS, but no, in answer to the original question, no, it is not "supported" in the sense that anyone guarantees it will work or has any obligation to make it work.
Cfabio
Frequent Advisor

Re: net::dns

Hi

I wanted to know if it was possible because I have to install the perl too...

Now I've decided to try. I have chosen an IA64 Operating System (Version V8.3-1H1), ODS5 disk and perl 5.10.1.

I followed the README.vms file in the perl packet, extracted files in PERL_5-010.DIR and in the directory
DATL$MSA1:[DIR$UTIL.PERL_5-010.perl-5^.10^.1]
gave the commands:

@configure "-des" "-Dprefix=DATE$MSA1:[perl5]
mmk

During mmk I obtain the error in the attachment.

Suggestions?
Regards.
Craig A Berry
Honored Contributor

Re: net::dns

5.12.1 is current as long as you're building from source, but 5.10.1 is only a year old, so not truly ancient. The following is an excerpt from the README.vms file that I think you missed:

rename the top-level source directory like so:

set security/protection=(o:rwed) perl-5^.10^.1.dir
rename perl-5^.10^.1.dir perl-5_10_1.dir

The reason for this last step is that while filenames with multiple dots
are generally supported by Perl on VMS, I names with multiple
dots are a special case with special problems because the dot is the
traditional directory delimiter on VMS. Rudimentary support for
multi-dot directory names is available, but some of the oldest and most
essential parts of Perl (such as searching for and loading library
modules) do not yet fully support the ODS-5 caret-escape syntax.
Cfabio
Frequent Advisor

Re: net::dns

Hi

Thanks Craig. I thought that giving the command
set process/PARSE_STYLE=extended
I could skip this passage...but I'm wrong.

Now I've given the commands (I decided to use the last perl version):

set security/protection=(o:rwed) perl-5^.12^.1.DIR;1

rename perl-5^.12^.1.DIR perl-5_12_1.DIR

@configure "-des" "-Dprefix=DATE$MSA1:[PERL-5_12_1.]"

mmk

mmk test

My machine appears to be very slow...it spends about four or five hours to do mmk and mmk test. Is it normal? The system don't seem to be overload. I have four cpu and with "system monitor" the CPU load is always about 120 of 400. Suggests?

During mmk test there are a series of failed tests as:
t/op/exec...FAILED at test 16
cpan/Archive-Extract/t/01_Archive-Extract.........FAILED at test 35
cpan/Archive-Tar/t/02_methods...FAILED at test 241
cpan/Compress-Raw-Bzip2/t/01bzip2......FAILED--expected 173 tests, saw 10
cpan/Compress-Raw-Bzip2/t/09limitoutput..FAILED--expected 88 tests, saw 5
cpan/CPANPLUS/t/03_CPANPLUS-Internals-Source...FAILED at test 40
cpan/CPANPLUS/t/15_CPANPLUS-Shell.....FAILED--extra output after trailing 1..n
cpan/ExtUtils-Command/t/cp........FAILED at test 1
cpan/ExtUtils-MakeMaker/t/pm_to_blib.....FAILED at test 8
cpan/IO-Compress/t/001bzip2.........FAILED at test 58
cpan/IO-Compress/t/006zip......FAILED--expected 77 tests, saw 17

I have do two attempts and in both case the process after the 006zip test failed doesn't go on (doesn't return the prompt).

My mmk and C compiler version are:

mmk/ident: %MMK-I-IDENT, this is the MadGoat Make Utility V4.1
CC/version nl: HP C V7.2-001 on OpenVMS IA64 V8.3-1H1


Regards
Craig A Berry
Honored Contributor

Re: net::dns

Cfabio
Frequent Advisor

Re: net::dns

Hi

@Craig
I've followed your suggests. My response to the vmsperl mailing list:

http://www.mail-archive.com/vmsperl@perl.org/msg09137.html

Regards
Fabio

Cfabio
Frequent Advisor

Re: net::dns

Hi

I have installed perl 5.10.1 and now it works.
So I've tried to install the perl module Net::DNS. I've read that is not advise to use the module cpan (giving the command cpan Net::DNS) in VMS.

So I've given the command:

cpanp install "Net::DNS"

but it doesn't work. I obtain the error:

ISTI-MX4> cpanp install "Net::DNS"
[ERROR] Could not find the 'cpanp-run-perl' binary in your path--this may be a problem.
Please locate this program and set your 'perlwrapper' config entry to its path.
From the default shell, you can do this by typing:

s program perlwrapper FULL_PATH_TO_CPANP_RUN_PERL
s save


Suggests?

Regards
Craig A Berry
Honored Contributor
Solution

Re: net::dns

cpanplus is extraordinarily chatty, but it does often work. The reason it can't find cpanp-run-perl is because we don't define a symbol to it and we can't define a symbol because on VMS the minus sign is an operator.

I did get Net::DNS to install this way (despite the warnings) but it installed the pure Perl version because it has a very Unix-specific method for determining if there is a C compiler.

You can force it to build the XS version by doing

$ perl Makefile.PL --xs
$ mms
$ mms install
Cfabio
Frequent Advisor

Re: net::dns

Hi, thanks for the answer.

I have installed the missing modules to satisfy dependencies of Net::DNS.

After I've tried to install Net-DNS-0.66 giving the commands:
$ perl Makefile.PL --xs (I obtain "looks good" from check if the kit is complete)
$ mmk
during mmk process I obtain the first error in the attachment.


Instead if I ignore the --xs option for link to the libresolv library, I obtain during mmk test the second error in the attachment.

Ideas?

Regards
Craig A Berry
Honored Contributor

Re: net::dns

I would just change the line

#define MAXDNAME 1010

to

#ifndef MAXDNAME
#define MAXDNAME 1010
#endif

and you might report to the module author that he shouldn't blindly redefine macros defined in standard headers.
Cfabio
Frequent Advisor

Re: net::dns

Hi

Ok, thanks. Now the mmk works but I still have problems during mmk test.
I obtain the error in the attachment and so the process stops before running tests.

Regards
Craig A Berry
Honored Contributor

Re: net::dns

Actually the output you posted shows that all tests except one passed. The one that didn't pass checks the version numbers of the module's own files, which is really a packaging issue and shouldn't ordinarily affect a programmer who just wants to use the module. And that particular test script (00-version.t) is not portably written -- I would just ignore it and go ahead and install the module. There's a problem with one of 32 test scripts, not necessarily with the module itself.
Cfabio
Frequent Advisor

Re: net::dns

Now it works. Thanks.



Cfabio
Frequent Advisor

Re: net::dns

Solved