public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Hallvard B Furuseth <h.b.furuseth@usit.uio.no>
To: gcc-gnats@gcc.gnu.org
Subject: c++/10268: C++ executables fail: libstdc++.so.5 not found
Date: Sun, 30 Mar 2003 11:56:00 -0000	[thread overview]
Message-ID: <E18zb8W-0004Ex-00@bombur.uio.no> (raw)


>Number:         10268
>Category:       c++
>Synopsis:       C++ executables fail: libstdc++.so.5 not found
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 30 11:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hallvard B Furuseth
>Release:        3.2.2
>Organization:
>Environment:
System: SunOS bombur.uio.no 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4

	
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../gcc-3.2.2/configure --enable-languages=c,c++,f77 --prefix=/usit/bombur/hbf --enable-version-specific-runtime-libs --enable-threads
>Description:
	C++ executables fail with
	ld.so.1: ./a.out: fatal: libstdc++.so.5: open failed:
		No such file or directory
>How-To-Repeat:
bash$ cat a.cc
int main(void) { return 0; }
bash$ g++ -c a.cc
bash$ g++ -v a.o
Reading specs from
	/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --enable-languages=c,c++,f77
	--prefix=/usit/bombur/hbf --enable-version-specific-runtime-libs
	--enable-threads
Thread model: posix
gcc version 3.2.2
 /usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/collect2 -V
	-Y P,/usr/ccs/lib:/usr/lib
	-Qy
	/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crt1.o
	/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crti.o
	/usr/ccs/lib/values-Xa.o
	/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crtbegin.o
	-L/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2
	-L/usr/ccs/bin -L/usr/ccs/lib
	-L/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/../../..
	a.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc -lc
	/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crtend.o
	/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/crtn.o
ld: Software Generation Utilities - Solaris-ELF (4.0)
bash$ ./a.out 
ld.so.1: ./a.out: fatal: libstdc++.so.5: open failed: No such file or directory
Killed
>Fix:
Workaround:

bash$ g++ -R/usit/bombur/hbf/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2 -v a.o
bash$ ./a.out
bash$

Note: I configured with --enable-version-specific-runtime-libs.
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2003-03-30 11:46 UTC|newest]

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

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=E18zb8W-0004Ex-00@bombur.uio.no \
    --to=h.b.furuseth@usit.uio.no \
    --cc=gcc-gnats@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).