public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/10268: C++ executables fail: libstdc++.so.5 not found
Date: Mon, 31 Mar 2003 14:53:00 -0000	[thread overview]
Message-ID: <20030331144601.13785.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/10268; it has been noted by GNATS.

From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: Hallvard B Furuseth <h.b.furuseth@usit.uio.no>
Cc: ehrhardt@mathematik.uni-ulm.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
  nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c++/10268: C++ executables fail: libstdc++.so.5 not found
Date: Mon, 31 Mar 2003 16:44:45 +0200

 This whole issue has been discussed many times on the gcc lists and
 this is not going to change any time soon. Note that this doesn't
 mean that I like the result of this discussion.
 
 This is even covered by the gcc FAQ at http://gcc.gnu.org/faq.html#rpath
 
 On Mon, Mar 31, 2003 at 12:14:10PM +0200, Hallvard B Furuseth wrote:
 > ehrhardt@mathematik.uni-ulm.de writes:
 > >     This behaviour is intentional. -R adds paths to the executable and
 > >     gcc should not add system specific paths to an executable.
 > >     You can either set LD_RUN_PATH at compile time or LD_LIBRARY_PATH
 > >     at run time.
 > 
 > *What*?  Why is it better to have an executable which doesn't work than
 > one where GCC has added a path which is needed to make it work?  In
 > particular since the user must add the same path to make it work anyway.
 
 Because that path might have unexpected effects if the executable is
 transfered to another machine.
 
 > If you don't want to add to the executable's path, I think you should
 > only build static libraries.  If one configures gcc to build dynamic
 > libraries, add the path and warn about whatever the problem is with
 > adding such a path, or don't add it and give a very loud warning that
 > g++ will build executables that don't work.
 
 There is a loud warning when you install the shared libraries!
 
 > And document this, and how one is supposed to make it work.
 
 See the FAQ entry mentioned above.
 
    regards  Christian
 
 -- 
 THAT'S ALL FOLKS!


             reply	other threads:[~2003-03-31 14:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31 14:53 Christian Ehrhardt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-31 15:29 Phil Edwards
2003-03-31 15:16 Hallvard B Furuseth
2003-03-31 15:06 Hallvard B Furuseth
2003-03-31 12:16 Hallvard B Furuseth
2003-03-30 17:44 ehrhardt
2003-03-30 11:56 Hallvard B Furuseth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030331144601.13785.qmail@sources.redhat.com \
    --to=ehrhardt@mathematik.uni-ulm.de \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).