Re: Problem trying to install perl from source. (417 Views)
Reply
Frequent Advisor
Brett Simpson
Posts: 75
Registered: ‎07-07-2003
Message 1 of 12 (417 Views)

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.
Honored Contributor
Sundar_7
Posts: 1,938
Registered: ‎11-07-2000
Message 2 of 12 (417 Views)

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 ?
Honored Contributor
harry d brown jr
Posts: 8,418
Registered: ‎12-12-2000
Message 3 of 12 (417 Views)

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
Honored Contributor
Jeff Schussele
Posts: 6,795
Registered: ‎02-18-2002
Message 4 of 12 (417 Views)

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!
Frequent Advisor
Brett Simpson
Posts: 75
Registered: ‎07-07-2003
Message 5 of 12 (417 Views)

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?
HP Pro
Dave Olker
Posts: 1,427
Registered: ‎10-10-2002
Message 6 of 12 (417 Views)

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
Honored Contributor
Jeff Schussele
Posts: 6,795
Registered: ‎02-18-2002
Message 7 of 12 (417 Views)

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!
Frequent Advisor
Brett Simpson
Posts: 75
Registered: ‎07-07-2003
Message 8 of 12 (417 Views)

Re: Problem trying to install perl from source.

I did that and it is definitely a 64-bit file.
Honored Contributor
Sundar_7
Posts: 1,938
Registered: ‎11-07-2000
Message 9 of 12 (417 Views)

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 ?
Frequent Advisor
Brett Simpson
Posts: 75
Registered: ‎07-07-2003
Message 10 of 12 (417 Views)

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.
Honored Contributor
Jeff Schussele
Posts: 6,795
Registered: ‎02-18-2002
Message 11 of 12 (417 Views)

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!
Frequent Advisor
Brett Simpson
Posts: 75
Registered: ‎07-07-2003
Message 12 of 12 (417 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.