[csw-users] gcc-4.3.3, post-install trouble: ld.so.1: a.out: fatal: libstdc++.so.6: open failed...
Silviu Podariu
vuvulescu at gmail.com
Wed Nov 17 18:23:11 CET 2010
Dear solaris experts,
I am new to this utility/list, signed up because it looks the natural
way of installing packages to a solaris env (much like the
debian/ubuntu 'apt' way).
I did a fresh install of solaris 10 on a sparc workstation (uname -a
gives: SunOS testComp 5.10 Generic_139555-08 sun4u sparc
SUNW,Sun-Blade-2500 ), and i tried to use pkgutil (installed normally
with pkgadd, updated to v-2.2, updated catalog) to install a newer gcc
package than the 3.4.3 which came with the install. Everything went
fine with the install, and now i have the two g++ compilers on the
system: (my prompt is a '\w: ')
/: find . -name g++
./usr/sfw/bin/g++
./opt/csw/gcc4/bin/g++
/: /usr/sfw/bin/g++ --version
g++ (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
/: /opt/csw/gcc4/bin/g++ --version
g++ (GCC) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
/:
However, when testing a simple program, trouble arises with the csw compiler:
(while all is fine with the original one)
~/cs/cpp/test: /opt/csw/gcc4/bin/g++ reFormat.cc
~/cs/cpp/test: ./a.out
ld.so.1: a.out: fatal: libstdc++.so.6: open failed: No such file or directory
Killed
~/cs/cpp/test: ldd a.out
libstdc++.so.6 => (file not found)
libm.so.2 => /lib/libm.so.2
libgcc_s.so.1 => (file not found)
libc.so.1 => /lib/libc.so.1
/platform/SUNW,Sun-Blade-2500/lib/libc_psr.so.1
~/cs/cpp/test:
~/cs/cpp/test: /usr/sfw/bin/g++ reFormat.cc
~/cs/cpp/test: ./a.out
~/cs/cpp/test: ldd a.out
libstdc++.so.6 => /usr/sfw/lib/libstdc++.so.6
libm.so.2 => /lib/libm.so.2
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libc.so.1 => /lib/libc.so.1
/platform/SUNW,Sun-Blade-2500/lib/libc_psr.so.1
~/cs/cpp/test:
Apparently there is something else i need to do, besides installing
the gcc package. Does anybody have a robust solution/answer to fixing
this?
Thank you very much,
Silviu
More information about the users
mailing list