Operating System - HP-UX
1828228 Members
2872 Online
109975 Solutions
New Discussion

Problem trying to install perl from source.

 
Brett Simpson
Frequent Advisor

Problem trying to install perl from source.

I am trying to install 64 bit Perl 5.8.5 on a HP-UX superdome hard partition running HPUX 11.11. I used the Perl 5.8.5 file stable.tar.gz from www.cpan.org.

I get the following error message:

cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of "sendfile" with a different storage class specifier: "sendfile" will have internal linkage.
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of "sendpath" with a different storage class specifier: "sendpath" will have internal linkage.
rm -f opmini.c
cc +DD64 -L/usr/local/lib -L/lib/pa20_64 -o miniperl \
miniperlmain.o opmini.o libperl.a -lcl -lpthread -lnsl -lnm -ldl -ldld -lm -lsec -lc
ld: Mismatched ABI (not an ELF file) for miniperlmain.o
Fatal error.
*** Error exit code 1

Stop.
11 REPLIES 11
Sundar_7
Honored Contributor

Re: Problem trying to install perl from source.

Are u particular about the 5.8.5 version of the perl ?

You can download Perl version 5.0005_02 SD-depot from software.hp.com.

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111
Learn What to do ,How to do and more importantly When to do ?
harry d brown jr
Honored Contributor

Re: Problem trying to install perl from source.

Or get 5.8.3 from http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.8.3/

or check here: http://www.cmve.net/~merijn/#Perl

live free or die
harry
Live Free or Die
Jeff Schussele
Honored Contributor

Re: Problem trying to install perl from source.

Hi Brett,

Why fight it?
Just download the binary from Merijn's website:

http://www.cmve.net/~merijn/#Perl

I've never had trouble with his builds at all. Always top-notch.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Brett Simpson
Frequent Advisor

Re: Problem trying to install perl from source.

I'm not particular to 5.8.5 at all. I've built 5.8.3 on other servers with no problem, but I'm concerned about the whether the libraries are correct. I'm thinking that I may have 32-bit libraries in my /lib/pa20_64 directory. Is there a way to verify this?
Dave Olker
Neighborhood Moderator

Re: Problem trying to install perl from source.

Hi Brett,

I downloaded the same tar file and was able to compile it without any problems. I did get dozens of warnings about "sendfile" and "sendpath" but the compile completed fine.

My cc options are very different on my system. Here's an example:

cc -c -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64 +O2 +Onolimit


All I did was follow the instructions in the INSTALL file:

rm -f config.sh Policy.sh
sh Configure -de
make

Did you do these steps on your system as well? I believe it is the "Configure" step that sets up the cc options.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Jeff Schussele
Honored Contributor

Re: Problem trying to install perl from source.

Hi (again) Brett,

Just run the file command against the lib file.
If it *doesn't* come back ELF-64 then it's *not* 64-bit.

Well....archive (????.a) files will not come back that way, but all object files will.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Brett Simpson
Frequent Advisor

Re: Problem trying to install perl from source.

I did that and it is definitely a 64-bit file.
Sundar_7
Honored Contributor

Re: Problem trying to install perl from source.

If you are not concerned about the version of the perl, then I would recommend installing the Perl depot from HP site. This way you can manage it using the SD-UX commands.

Learn What to do ,How to do and more importantly When to do ?
Brett Simpson
Frequent Advisor

Re: Problem trying to install perl from source.

I can't use HP's version because it doesn't seem to be able to handle other modules like DBI and DBD::Oracle.
Jeff Schussele
Honored Contributor

Re: Problem trying to install perl from source.

That's because HP doesn't put out 64-bit Perl - only 32.
If you go to Merijn's website he *already* has 64-bit Perl compiled with the DBI & DBD CPAN modules.
Save yourself some time - check it out.

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Brett Simpson
Frequent Advisor

Re: Problem trying to install perl from source.

Jeff,
Actually, HP does have a 64-bit perl with the newer 11i O/S distributions, but it didn't work either! I will check out that site.

Thanks All