target/9843: [HPUX] -static still leaves the linker looking f or shl_*

BONNER,MATT (HP-Vancouver,ex1) matt.bonner@hp.com
Wed Mar 19 19:55:00 GMT 2003


>> From: law@redhat.com [mailto:law@redhat.com]
>> Sent: Wednesday, March 19, 2003 10:43 AM
>> To: BONNER,MATT (HP-Vancouver,ex1)
>> Cc: 'John David Anglin'; danglin@gcc.gnu.org; gcc-bugs@gcc.gnu.org;
>> gcc-prs@gcc.gnu.org; nobody@gcc.gnu.org; gcc-gnats@gcc.gnu.org
>> Subject: Re: target/9843: [HPUX] -static still leaves the linker looking
f or shl_*
>> 
>> 
>> In message 
>> <A134E2426B46D711BB4B000347AE6E7C76EBBD@xvan02.vcd.hp.com>, "BONNER,
MATT" writes:
>>  >Hmmm...
>>  >
>>  >Maybe all is still not well.  When I move an executable compiled with
>>  >all this stuff from an HP-UX 11 machine to an HP-UX machine, I get
>>  >
>>  >/usr/lib/dld.sl: Can't open shared library: /usr/lib/libdld.2
>>  >/usr/lib/dld.sl: No such file or directory
>>  >IOT trap
>>  >
>>  >I'm hunting around as I write this, but if you know what I'm doing
>>  >wrong now, please let me know.  Or if the answer is "You can't run
>>  >11 executables on 10." :-)
>>
>> You can't run hpux11 executables on an hpux10 system.

Okay.  Bummer.  However, I'm still confused.  I thought all these -Wl,-E,+n
commands were to link statically.  Why, then, is the executable looking for
shared library libdld.2?

thanks,
Matt



More information about the Gcc-bugs mailing list