Languages and Scripting

Error encountered while building perl

 
SOLVED
Go to solution
Syed Madar J S
Frequent Advisor

Error encountered while building perl

Hi,

I am trying to build perl on PA-RISC, and using HP-UX-11iv1.

The make-test phase threw out some failures, and the following is one of them.

================
hpmdd78#perl lib/Net/t/hostname.t
1..5
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'uname{20040821}' in load module '../lib/auto/POSIX/POSIX.sl'.
hpmdd78#
================

Can anyone let me know if i am missing anything or how to rectify this issue?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Error encountered while building perl

Shalom,

I would go to http://software.hp.com

Download the PERL5 (Search by that term) depot and install the depot.

There are a number of pre-compiled perl programs available at http://hpux.ws/merijn
userid:itrc
password:itrc1234

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: Error encountered while building perl

Hi:

Knowing the compiler you're using and What Perl version you're building would be useful.

Regards!

...JRF...
Solution

Re: Error encountered while building perl

first thing is to make sure you the latest linker and loader patch on 11iv1. the latest patch is PHSS_40549.

secondly, the error means that the symbol 'uname...' is not found at runtime. in such cases, there will be a warning from the linker while building the executable. grep for warnings from linker in the build log. see if you have any warning related to the symbol name.

an undefined symbol is satisfied at runtime by some shared library. in you case, the library which is supposed to provide the definition is not providing it.

search your entire source code and see which module defines the symbol 'uname...'. if none of them define, then there are chances that a third part library satisfies this. read the documentation supplied with your source.
Horia Chirculescu
Honored Contributor

Re: Error encountered while building perl

Hello Syed,

This could be because in /etc/hosts there is no line corresponding to $(hostname)

Run this command (edit IP address 127.0.0.1 as necessary) in order to add the corresponding line to your /etc/hosts

echo "127.0.0.1 $(hostname)" >> /etc/hosts

Horia.

Best regards from Romania,
Horia.
Syed Madar J S
Frequent Advisor

Re: Error encountered while building perl

Thanks James

HPUX compiler - acXX
Building perl-5.8.9

Thanks Suprateeka, I would work on the suggested lines
Dennis Handly
Acclaimed Contributor

Re: Error encountered while building perl

>dld.sl: Unsatisfied code symbol 'uname{20040821}' in load module '../lib/auto/POSIX/POSIX.sl'.

This means you have illegally taken POSIX.sl which was compiled on 11.23 or 11.31 and are trying to run on 11.11.