klohare has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Can anyone please give the cause of the below issue

I have one PERL application,from the .pm file, accessing one .so file and giving below error as

"Can't load '/opt/httpd/apps/dev//xxpica/lib/CPRClient.so' for module CPRClient: /opt/httpd/apps/dev//xxpica/lib/CPRClient.so: only ET_DYN and ET_EXEC can be loaded at /opt/httpd/software/perl/5.8.9/lib/5.8.9/x86_64-linux/DynaLoader.pm line 226., referer: http://www-dev3.cisco.com/cgi-bin/front.x/pica/list_pica_contracts.pl"

However I checked the CPRClient.so file version as $ file CPRClient.so CPRClient.so: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped

But dont know what is mean by 'only ET_DYN and ET_EXEC can be loaded' from above error message.

Can anyone please help in this,your help is appreciated.

Thanks
Kishor
  • Comment on Cant load CPRClient.so file for perl module- 'only ET_DYN and ET_EXEC can be loaded'

Replies are listed 'Best First'.
Re: Cant load CPRClient.so file for perl module- 'only ET_DYN and ET_EXEC can be loaded'
by Anonymous Monk on Aug 23, 2012 at 12:39 UTC

    Run ldd -v /opt/httpd/apps/dev/xxpica/lib/CPRClient.so

    and then adjust your LD_LIBRARY_PATH accordingly (or recompile CPRClient and/or its dependencies)

      Thanks a lot.