Operating System - HP-UX
1829012 Members
2238 Online
109986 Solutions
New Discussion

Diff in execution on HP11.0 and HP11.11

 
Rajesh Rajguru
Occasional Contributor

Diff in execution on HP11.0 and HP11.11

Hi,

After running
system('su root -c "./diagch_rteall.perl"')
and giving root password

I get following error on HP11.11

DynaLoader.pm loaded (/opt/nokianms/lib/perllib /opt/nokianms/lib/perl5/5.00503/PA-RISC1.1 /opt/nokianms/lib/perl5/5.00503 /opt/nokianms/lib/perl5/site_perl/5.005/PA-RISC1.1 /opt/nokianms/lib/perl5/site_perl/5.005 ., /opt/nokianms/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib)

DynaLoader::bootstrap for Data::Dumper (auto/Data/Dumper/Dumper.sl)

Can't load '/opt/nokianms/lib/perl5/5.00503/PA-RISC1.1/auto/Data/Dumper/Dumper.sl' for module Data::Dumper: Unresolved external at /opt/nokianms/lib/perl5/5.00503/PA-RISC1.1/DynaLoader.pm line 169.



at ./diagch_rteall.perl line 17

BEGIN failed--compilation aborted at ./diagch_rteall.perl line 17.

But on HP11.0 I am not getting this error
On HP11.0 eventhough I disabled SHLIB_PATH,
it works

Any pointers/idea about this ??

Thanks & Regards,
Rajesh



2 REPLIES 2
Stuart Abramson
Trusted Contributor

Re: Diff in execution on HP11.0 and HP11.11

I would guess that you installed a binary product on HP-UX 11.11 that you had been running on HP-UX 11.0 and that you have a mismatch between the binary library calling sequence from HP-UX 11.0 and the running libraries on HP-UX 11.11. Something like that.

See if the vendor (Nokia ?) has an 11.11 version.

do other perl programs work on your 11.11 system?
Sanjay Chavda
New Member

Re: Diff in execution on HP11.0 and HP11.11

We observed similar issue with 11i.

SHLIB_PATH gets removed every time it does switch user to root. This is true even in one of the other tests where it does switch user to oracle and calls mdbchk.pl.

one solution (other then modifying the call to the script by removing switch user) is to edit "security" file at "/etc/default" with this one line present:-
SU_KEEP_ENV_VARS=SHLIB_PATH.

i got this suggestions from co-workers and it helps.

only issue is, this calls for compromise on security policy on the system.

application side updation appears more close to this issue then unix versions...