You can not just link different library versions. In reality libstdc++.so.6
is just a symlink to the latest minor version.
root_at_foo:~# ls -l /usr/lib/libstdc++.so.6
lrwxrwxrwx 1 root root 18 2004-09-19 22:08 /usr/lib/libstdc++.so.6 ->
libstdc++.so.6.0.2
root_at_foo:~# ls -l /usr/lib/libstdc++.so.5
lrwxrwxrwx 1 root root 18 2004-08-06 11:36 /usr/lib/libstdc++.so.5 ->
libstdc++.so.5.0.6
They are totally different versions of libstdc++ and differ enough that you
need to have the right major version installed required by the program. You
need to find the correct package that has libstdc++.
-----Original Message-----
From: fabio [mailto:fabio_at_crearium.com]
Sent: Friday, October 08, 2004 1:20 AM
To: nmap-dev_at_insecure.org
Subject: nmap on Solaris 9 sparc shared library problems
Hi.
nietzsche% uname -snr
SunOS nietzsche 5.9
nietzsche% nmap 127.0.0.1
ld.so.1: nmap: fatal: libstdc++.so.5: open failed: No such file or
directory
Killed
nietzsche% sudo ln -s /usr/local/lib/libstdc++.so.6
/usr/local/lib/libstdc++.so.5
nietzsche% nmap 127.0.0.1
ld.so.1: nmap: fatal: relocation error: file nmap: symbol
_ZNSt24__default_alloc_templateILb1ELi0EE8allocateEj: referenced symbol
not found
Killed
I installed the package (gcc,nmap) from sunfreeware. Any solution? in
general, how to deal with Solaris shared library and the open source
code we often need as solaris admins?
Thanks in advance.
---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to
nmap-dev-help@insecure.org . List archive: http://seclists.org
---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to
nmap-dev-help@insecure.org . List archive: http://seclists.org
Received on Oct 08 2004