<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dld.sl: Bad magic number for shared library in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557558#M649965</link>
    <description>Thank you for your reply. It is already using 64bit gcc:&lt;BR /&gt;&lt;BR /&gt;$ which gcc&lt;BR /&gt;/opt/hp-gcc/bin/gcc&lt;BR /&gt;$ file /opt/hp-gcc/bin/gcc&lt;BR /&gt;/opt/hp-gcc/bin/gcc:    ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;</description>
    <pubDate>Mon, 04 Jan 2010 09:39:49 GMT</pubDate>
    <dc:creator>Arjen Visser</dc:creator>
    <dc:date>2010-01-04T09:39:49Z</dc:date>
    <item>
      <title>dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557556#M649963</link>
      <description>&lt;!--!*#--&gt;I have seen this error on many forums, but I have not been able to fix the issue. &lt;BR /&gt;I am trying to compile a Perl module in a 64bit PA-RISC2.0 11.11 HP-UX environment. &lt;BR /&gt;&lt;BR /&gt;The make command is successful:&lt;BR /&gt;$ make&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H blocksort.c&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H huffman.c&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H crctable.c&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H randtable.c&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H compress.c&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H decompress.c&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H bzlib.c&lt;BR /&gt;        gcc -c  -I.  -D_HPUX_SOURCE -mpa-risc-2-0 -DNO_HASH_SEED -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O    -DVERSION=\"2.023\"  -DXS_VERSION=\"2.023\" -fPIC "-I/usr/local/perl2exe/perl5/lib/5.10.0/PA-RISC2.0/CORE"  -Wall -Wno-comment  -DBZ_NO_STDIO -DUSE_PPPORT_H Bzip2.c&lt;BR /&gt;Running Mkbootstrap for Compress::Raw::Bzip2 ()&lt;BR /&gt;        chmod 644 Bzip2.bs&lt;BR /&gt;        rm -f blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl&lt;BR /&gt;        /usr/bin/ld  -b blocksort.o  huffman.o  crctable.o  randtable.o  compress.o  decompress.o  bzlib.o  Bzip2.o   -o blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl     \&lt;BR /&gt;                \&lt;BR /&gt;&lt;BR /&gt;        chmod 755 blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl&lt;BR /&gt;         cp Bzip2.bs blib/arch/auto/Compress/Raw/Bzip2/Bzip2.bs&lt;BR /&gt;        chmod 644 blib/arch/auto/Compress/Raw/Bzip2/Bzip2.bs&lt;BR /&gt;Manifying blib/man3/Compress::Raw::Bzip2.3&lt;BR /&gt;&lt;BR /&gt;The compiled shared libraries are all 64bit, and so is the Perl executable.&lt;BR /&gt;&lt;BR /&gt;But when I run make test, I get the following:&lt;BR /&gt;Manifying blib/man3/Compress::Raw::Bzip2.3&lt;BR /&gt;$ make test&lt;BR /&gt;        PERL_DL_NONLAZY=1 /usr/local/perl2exe/perl5/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t&lt;BR /&gt;t/000prereq........ok&lt;BR /&gt;t/01bzip2........../usr/lib/dld.sl: Bad magic number for shared library: /opt/oracle/orabase/cpan/Compress-Raw-Bzip2-2.023/blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;/usr/lib/dld.sl: Bad magic number for shared library: /opt/oracle/orabase/cpan/Compress-Raw-Bzip2-2.023/blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;&lt;BR /&gt;The shared library is 64bit: &lt;BR /&gt;$ file  /opt/oracle/orabase/cpan/Compress-Raw-Bzip2-2.023/blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl&lt;BR /&gt;/opt/oracle/orabase/cpan/Compress-Raw-Bzip2-2.023/blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl:   ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;So as far as I can see the issue is that it calls the 32bit linker /usr/lib/dld.sl. It should be calling the 64bit linker: /usr/lib/pa20_64/dld.sl&lt;BR /&gt;&lt;BR /&gt;The linker is patched to the latest version:&lt;BR /&gt;# ld -V&lt;BR /&gt;92453-07 linker command s800.sgs ld PA64 B.11.68 REL 090514&lt;BR /&gt;ld: 92453-07 linker linker ld B.11.68 090514&lt;BR /&gt;&lt;BR /&gt;My settings:&lt;BR /&gt;LD_LIBRARY_PATH=/usr/lib/pa20_6a:/usr/ccs/lib/pa20_644&lt;BR /&gt;SHLIB_PATH=/usr/lib/&lt;BR /&gt;&lt;BR /&gt;Anyone has any ideas how to force the 64 bit linker /usr/lib/pa20_64/dld.sl?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jan 2010 04:47:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557556#M649963</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-04T04:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557557#M649964</link>
      <description>&lt;!--!*#--&gt;If you want to generate&lt;BR /&gt;blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl with ELF-64, it's very&lt;BR /&gt;easy to use /usr/local/pa64/bin/gcc which can be installed from&lt;BR /&gt;&lt;A href="http://hp.com/go/gcc" target="_blank"&gt;http://hp.com/go/gcc&lt;/A&gt; as "HP-GCC 4.4.0-1 PA-RISC LP64".&lt;BR /&gt;&lt;BR /&gt;% which gcc                               &lt;BR /&gt;/usr/local/bin/gcc&lt;BR /&gt;% gcc -o hello hello.c -mpa-risc-2-0      &lt;BR /&gt;% file hello&lt;BR /&gt;hello:          PA-RISC2.0 shared executable dynamically linked -not stripped&lt;BR /&gt;% /usr/local/pa64/bin/gcc -o hello hello.c&lt;BR /&gt;% file hello&lt;BR /&gt;hello:          ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;% &lt;BR /&gt;&lt;BR /&gt;Hope this helps you !!</description>
      <pubDate>Mon, 04 Jan 2010 08:52:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557557#M649964</guid>
      <dc:creator>Shinji Teragaito_1</dc:creator>
      <dc:date>2010-01-04T08:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557558#M649965</link>
      <description>Thank you for your reply. It is already using 64bit gcc:&lt;BR /&gt;&lt;BR /&gt;$ which gcc&lt;BR /&gt;/opt/hp-gcc/bin/gcc&lt;BR /&gt;$ file /opt/hp-gcc/bin/gcc&lt;BR /&gt;/opt/hp-gcc/bin/gcc:    ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jan 2010 09:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557558#M649965</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-04T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557559#M649966</link>
      <description>$ gcc -v&lt;BR /&gt;Using built-in specs.&lt;BR /&gt;Target: hppa64-hp-hpux11.11&lt;BR /&gt;Configured with: /tmp/gcc-4.4.0.tar.gz/gcc-4.4.0/configure --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-hp-hpux11.11 --prefix=/opt/hp-gcc64-4.4.0 --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa64-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa64-hp-hpux11.11&lt;BR /&gt;Thread model: posix&lt;BR /&gt;gcc version 4.4.0 (GCC)</description>
      <pubDate>Mon, 04 Jan 2010 09:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557559#M649966</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-04T09:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557560#M649967</link>
      <description>&amp;gt;I am trying to compile a Perl module in a 64bit PA-RISC2.0 11.11 HP-UX environment.&lt;BR /&gt;&lt;BR /&gt;Then you have to use HP's gcc compiler to get 64 bit mode.  (Or build your own.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The compiled shared libraries are all 64bit, and so is the Perl executable.&lt;BR /&gt;&amp;gt;the issue is that it calls the 32bit linker /usr/lib/dld.sl. It should be calling the 64bit linker: /usr/lib/pa20_64/dld.sl&lt;BR /&gt;&lt;BR /&gt;If it invokes /usr/lib/dld.sl, it's 32 bit.&lt;BR /&gt;(This is the dynamic loader, not linker.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;LD_LIBRARY_PATH=/usr/lib/pa20_6a:/usr/ccs/lib/pa20_644&lt;BR /&gt;&lt;BR /&gt;You have typos here?  And there are no shlibs in /usr/ccs/lib/, so remove that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;SHLIB_PATH=/usr/lib/&lt;BR /&gt;&lt;BR /&gt;This is the default, so remove this too.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;$ file /opt/hp-gcc/bin/gcc&lt;BR /&gt;/opt/hp-gcc/bin/gcc: ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;This may not be telling us the right thing.  You need to run file(1) on a binary produced by the compiler.  (HP's compilers can produce both 32 and 64 bit with the same executable.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;But when I run make test, I get the following:&lt;BR /&gt;&lt;BR /&gt;Is this using the right gcc?</description>
      <pubDate>Mon, 04 Jan 2010 18:28:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557560#M649967</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-04T18:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557561#M649968</link>
      <description>Thank you for the reply Dennis.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;LD_LIBRARY_PATH=/usr/lib/pa20_6a:/usr/ccs/lib/pa20_644&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You have typos here? And there are no shlibs in /usr/ccs/lib/, so remove that.&lt;BR /&gt;&lt;BR /&gt;Thanks for pointing this out, I have removed the typo but still get the same result.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; This may not be telling us the right thing. You need to run file(1) on a binary produced by the compiler. (HP's compilers can produce both 32 and 64 bit with the same executable.)&lt;BR /&gt;&lt;BR /&gt;The resulting binary is 64 bit as far as I can tell:&lt;BR /&gt;$ file /opt/oracle/orabase/cpan/Compress-Raw-Bzip2-2.023/blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl&lt;BR /&gt;/opt/oracle/orabase/cpan/Compress-Raw-Bzip2-2.023/blib/arch/auto/Compress/Raw/Bzip2/Bzip2.sl:   ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;But when I run make test, I get the following:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is this using the right gcc?&lt;BR /&gt;How can I tell if make uses the right gcc.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Then you have to use HP's gcc compiler to get 64 bit mode. (Or build your own.)&lt;BR /&gt;I used the HP gcc compiler from the DSPP HP website.</description>
      <pubDate>Mon, 04 Jan 2010 21:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557561#M649968</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-04T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557562#M649969</link>
      <description>&amp;gt;but still get the same result.&lt;BR /&gt;&lt;BR /&gt;Naturally since you are still in 32 bit mode.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The resulting binary is 64 bit as far as I can tell:&lt;BR /&gt;&lt;BR /&gt;Yes, you showed that elsewhere.  But my comment was directed at using file(1) on gcc.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How can I tell if make uses the right gcc?&lt;BR /&gt;&lt;BR /&gt;Do you see the make macro CC defined anywhere?&lt;BR /&gt;Typically you can use:&lt;BR /&gt;gmake ... CC=/opt/hp-gcc/bin/gcc ...</description>
      <pubDate>Tue, 05 Jan 2010 07:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557562#M649969</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-05T07:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557563#M649970</link>
      <description>Compiled a sample C program to test if the resulting executable:&lt;BR /&gt;&lt;BR /&gt;$ ls&lt;BR /&gt;sample.c&lt;BR /&gt;$ gcc -Wall -o sample sample.c&lt;BR /&gt;$ ./sample&lt;BR /&gt;sum = 55&lt;BR /&gt;$ file sample&lt;BR /&gt;sample:         ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;$ gcc -v&lt;BR /&gt;Using built-in specs.&lt;BR /&gt;Target: hppa64-hp-hpux11.11&lt;BR /&gt;Configured with: /tmp/gcc-4.4.0.tar.gz/gcc-4.4.0/configure --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-hp-hpux11.11 --prefix=/opt/hp-gcc64-4.4.0 --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa64-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa64-hp-hpux11.11&lt;BR /&gt;Thread model: posix&lt;BR /&gt;gcc version 4.4.0 (GCC)&lt;BR /&gt;&lt;BR /&gt;I also set CC=/opt/hp-gcc/bin/gcc and ran gmake with CC=/opt/hp-gcc/bin/gcc, but still get the same results.</description>
      <pubDate>Tue, 05 Jan 2010 21:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557563#M649970</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-05T21:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557564#M649971</link>
      <description>This is part of the Makefile:&lt;BR /&gt;AR = ar&lt;BR /&gt;CC = gcc&lt;BR /&gt;CCCDLFLAGS = -fPIC&lt;BR /&gt;CCDLFLAGS = -Wl,-E -Wl,-B,deferred&lt;BR /&gt;DLEXT = sl&lt;BR /&gt;DLsrc=dl_hpux.xs&lt;BR /&gt;EXE_EXT =&lt;BR /&gt;FULL_AR = /usr/bin/ar&lt;BR /&gt;LD = /usr/bin/ld&lt;BR /&gt;LDDLFLAGS = -b&lt;BR /&gt;LDFLAGS =&lt;BR /&gt;LIBC = /lib/libc.sl&lt;BR /&gt;LIB_EXT = .a&lt;BR /&gt;OBJ_EXT = .o&lt;BR /&gt;OSNAME = hpux&lt;BR /&gt;OSVERS = 11.11&lt;BR /&gt;RANLIB = :&lt;BR /&gt;SITELIBEXP = /usr/local/perl2exe/perl5/lib/site_perl/5.10.0&lt;BR /&gt;SITEARCHEXP = /usr/local/perl2exe/perl5/lib/site_perl/5.10.0/PA-RISC2.0&lt;BR /&gt;SO = sl&lt;BR /&gt;&lt;BR /&gt;Anything there I can try to get this resolved?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 05 Jan 2010 23:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557564#M649971</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-05T23:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557565#M649972</link>
      <description>&amp;gt;Compiled a sample C program to test if the resulting executable:&lt;BR /&gt;&lt;BR /&gt;Now, this is a valid test.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;CC=/opt/hp-gcc/bin/gcc, but still get the same results.&lt;BR /&gt;&lt;BR /&gt;Then you need to do makefile debugging.  Try removing every stinkin' "@" at the beginning of lines so you see what's happening.&lt;BR /&gt;Also make has -d.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Anything there I can try to get this resolved?&lt;BR /&gt;&lt;BR /&gt;You need to find out the name of the executable when it aborts.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;so is the Perl executable&lt;BR /&gt;&lt;BR /&gt;Is /usr/local/perl2exe/perl5/bin/perl 64 bit?&lt;BR /&gt;&lt;BR /&gt;If you can't debug your makefiles you need to give up and just use "tusc -fp -ae -o tusc.out make test".</description>
      <pubDate>Wed, 06 Jan 2010 09:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557565#M649972</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-06T09:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557566#M649973</link>
      <description>Thank you. &lt;BR /&gt;make -d gives pages of output which so far has not given much insight but I will continue to search through the details.&lt;BR /&gt;&lt;BR /&gt;Perl version:&lt;BR /&gt;$ file /usr/local/perl2exe/perl5/bin/perl5.10.0&lt;BR /&gt;/usr/local/perl2exe/perl5/bin/perl5.10.0:       PA-RISC2.0 shared executable dynamically linked -not stripped&lt;BR /&gt;&lt;BR /&gt;What is tusc, this is not installed on our system. &lt;BR /&gt;&lt;BR /&gt;Are you available for remote support and able to assist us resolving this issue?</description>
      <pubDate>Thu, 07 Jan 2010 07:41:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557566#M649973</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-07T07:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557567#M649974</link>
      <description>&amp;gt;Perl version:&lt;BR /&gt;&amp;gt;/usr/local/perl2exe/perl5/bin/perl5.10.0: PA-RISC2.0 shared executable dynamically linked -not stripped&lt;BR /&gt;&lt;BR /&gt;This is 32 bit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;What is tusc, this is not installed on our system.&lt;BR /&gt;&lt;BR /&gt;You can download it from here:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.10/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.10/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Are you available for remote support&lt;BR /&gt;&lt;BR /&gt;No.</description>
      <pubDate>Thu, 07 Jan 2010 08:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557567#M649974</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-07T08:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557568#M649975</link>
      <description>Thank you. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;Perl version:&lt;BR /&gt;&amp;gt;/usr/local/perl2exe/perl5/bin/perl5.10.0: PA-RISC2.0 shared executable dynamically linked -not stripped&lt;BR /&gt;&lt;BR /&gt;I thought PA-RISC1.1 was 32bit and PA-RISC2.0 is 64bit.</description>
      <pubDate>Thu, 07 Jan 2010 09:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557568#M649975</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-07T09:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557569#M649976</link>
      <description>&amp;gt;I thought PA-RISC1.1 was 32 bit&lt;BR /&gt;&lt;BR /&gt;Yes, 1.0 and 1.1 are 32 bit only.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;PA-RISC2.0 is 64bit.&lt;BR /&gt;&lt;BR /&gt;It can be 32 or 64 bit.&lt;BR /&gt;&lt;BR /&gt;This is 64 bit for PA (LP64):&lt;BR /&gt;ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;For IPF it's much simpler:&lt;BR /&gt;ELF-32 executable object file - IA64&lt;BR /&gt;ELF-64 executable object file - IA64&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Thank you. &lt;BR /&gt;&lt;BR /&gt;If you are happy with the answers you got, please read the following on how to assign points:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Thu, 07 Jan 2010 09:20:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557569#M649976</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-07T09:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557570#M649977</link>
      <description>Thank you for the explanation. &lt;BR /&gt;&lt;BR /&gt;Do I need to download the 32bit gcc compiler (HP-GCC 4.3.3 PA-RISC ILP32) or can I use the current 64bit compiler to compile the module with the 32bit perl?&lt;BR /&gt;&lt;BR /&gt;What flags do I need to set to force the 64bit gcc compiler to compile for 32bit?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 07 Jan 2010 23:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557570#M649977</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-07T23:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557571#M649978</link>
      <description>Problem solved. Downloaded HP-GCC 4.4.0-1 PA-RISC ILP32 and this worked. &lt;BR /&gt;&lt;BR /&gt;So the issues was that the Perl executable was 32bit and not 64bit.&lt;BR /&gt;&lt;BR /&gt;Thanks Dennis!</description>
      <pubDate>Fri, 08 Jan 2010 07:29:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557571#M649978</guid>
      <dc:creator>Arjen Visser</dc:creator>
      <dc:date>2010-01-08T07:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: dld.sl: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557572#M649979</link>
      <description>&amp;gt;What flags do I need to set to force the 64bit gcc compiler to compile for 32bit?&lt;BR /&gt;&lt;BR /&gt;For PA, the foreign devil compiler only has one data model.  You have to install both to switch to the other model.&lt;BR /&gt;On Integrity, the models are similar, so there is -mlp64 and -milp32.</description>
      <pubDate>Fri, 08 Jan 2010 09:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dld-sl-bad-magic-number-for-shared-library/m-p/4557572#M649979</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-08T09:00:42Z</dc:date>
    </item>
  </channel>
</rss>

