From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26010 invoked by alias); 19 Mar 2003 19:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25928 invoked by uid 71); 19 Mar 2003 19:56:00 -0000 Date: Wed, 19 Mar 2003 19:56:00 -0000 Message-ID: <20030319195600.25924.qmail@sources.redhat.com> To: danglin@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: law@redhat.com Subject: Re: target/9843: [HPUX] -static still leaves the linker looking f or shl_* Reply-To: law@redhat.com X-SW-Source: 2003-03/txt/msg01295.txt.bz2 List-Id: The following reply was made to PR target/9843; it has been noted by GNATS. From: law@redhat.com 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_* Date: Wed, 19 Mar 2003 12:53:45 -0700 In message , "BONNER, MATT (HP-Vancouver,ex1)" writes: >>> 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 >>> , "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? Because it's impossible to build a true static executable on hpux11. jeff