Operating System - HP-UX
1840589 Members
7890 Online
110166 Solutions
New Discussion

perl 5.6.1 - install module fails

 
SOLVED
Go to solution
Michael Conners
Occasional Contributor

perl 5.6.1 - install module fails

In my attempt to install the Digest-MD5 module for perl 5.6.1, I get the following response to building the Makefile:

swm-hp==>perl Makefile.PL
Testing alignment requirements for U32... (Bundled) cc: warning 480: The -A opti
on is available only with the C/ANSI C product; ignored.
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 538: error 100
0: Unexpected symbol: "nbytes".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539: error 100
0: Unexpected symbol: "elements".
(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540: error 100
0: Unexpected symbol: "size_t".

More errors continue along the same lines as above.

The attached file has the entire output, along with the makefile attempt with the -P option and a -V output for reference purposes.

It's a relatively new machine, and perl 5.6.1 was installed as a depot package.

Thanks for the help.
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: perl 5.6.1 - install module fails

Get perl from here:

https://www.beepz.com/personal/merijn/#Perl

live free or die
harry
Live Free or Die
Steve Steel
Honored Contributor

Re: perl 5.6.1 - install module fails

Hi

HP's Bundled C-Compiler CC is not the best compiler around (to say the least)
so you better install HP-Ansi C or Softbench C compiler ($$$) or go with
gcc (it is better to compile perl and all the xs modules with the same compiler)

With the installed archive of perl you have you should use HP Ansi C compiler
(available on an Add-ON CD from HP, ask your Unix-Support, they probably have
a depot for it)


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
H.Merijn Brand (procura
Honored Contributor
Solution

Re: perl 5.6.1 - install module fails

harry already pointed to my perl builds.

5.8.0 is the latest stable, and it has Digest-MD5 in the core modules.

If you plan to add other XS modules (modules that need an ANSI C compiler), also fetch the appropriate gcc-3.2 build, so that the options to the C compiler match. If you don't, you are heading for big trouble. Please *do* read the notes about gcc.
Enjoy, Have FUN! H.Merijn
Michael Conners
Occasional Contributor

Re: perl 5.6.1 - install module fails

I ended up getting the latest gcc from the HP software porting site, installing it and building perl from sources.

Used the configuration flags I saw in another perl post to this site to do the build. All tested and installed.

Also ended up getting perl 5.8.0 instead of reinstalling 5.6.1.

Thanks for the help - I'm a HP newbie and appreciate the quick responses.
harry d brown jr
Honored Contributor

Re: perl 5.6.1 - install module fails

Michael, If that site where you got the hints on how to compile perl was the one I posted, then Procura deserves a 10 pointer :-)

live free or die
harry
Live Free or Die
Michael Conners
Occasional Contributor

Re: perl 5.6.1 - install module fails

Well, I guess you're right. The points do matter, but I don't have to buy them.

So, points for everyone!

I did give procura some points but for some reason the site here doesn't like the konqueror browser, so I'll do it again.

All the best.