Operating System - HP-UX
1832058 Members
3182 Online
110034 Solutions
New Discussion

Re: /usr/lib/dld.sl: Bad magic number for shared library

 
Ernest Small
Advisor

/usr/lib/dld.sl: Bad magic number for shared library

When running the 'gmake test' command I get the following error...

# gmake test
PERL_DL_NONLAZY=1 /opt/perl/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 test.pl
1..3
/usr/lib/dld.sl: Bad magic number for shared library: blib/arch/auto/Filesys/Statvfs/Statvfs.sl
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/Filesys/Statvfs/Statvfs.sl' for module Filesys::Statvfs: Exec format error at /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.
at test.pl line 12
Compilation failed in require at test.pl line 12.
BEGIN failed--compilation aborted at test.pl line 12.
gmake: *** [test_dynamic] Error 255
2 REPLIES 2
harry d brown jr
Honored Contributor

Re: /usr/lib/dld.sl: Bad magic number for shared library


Have a look at this thread, and go to Procura's site for more into:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf18493e260b0d611abdb0090277a778c,00.html

live free or die
harry
Live Free or Die
Rick Beldin
HPE Pro

Re: /usr/lib/dld.sl: Bad magic number for shared library

I would guess that perhaps you have PA2.0 modules on a PA1.1 system. It might be worth experimenting with +DAportable for your entire build.
Necessary questions: Why? What? How? When?