|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
SUNWcry_installed: referenced symbol not found
Not able to connect to ssh . when i run command ssh username@remoteserver i get the follwing error Code:
ld.so.1: ssh: fatal: relocation error: file /usr/bin/ssh: symbol SUNWcry_installed: referenced symbol not found Killed LDD check gave the below results : Code:
libsocket.so.1 => /lib/libsocket.so.1 libnsl.so.1 => /lib/libnsl.so.1 libz.so.1 => /usr/lib/libz.so.1 libcrypto.so.0.9.7 => /opt/symas/lib/libcrypto.so.0.9.7 libgss.so.1 => /usr/lib/libgss.so.1 libc.so.1 => /lib/libc.so.1 libmp.so.2 => /lib/libmp.so.2 libmd.so.1 => /lib/libmd.so.1 libscf.so.1 => /lib/libscf.so.1 libdl.so.1 => /lib/libdl.so.1 libcmd.so.1 => /lib/libcmd.so.1 libdoor.so.1 => /lib/libdoor.so.1 libuutil.so.1 => /lib/libuutil.so.1 libgen.so.1 => /lib/libgen.so.1 libm.so.2 => /lib/libm.so.2 /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1 /platform/SUNW,Sun-Fire-T200/lib/libmd_psr.so.1 Please advice. Last edited by Scott; 08-06-2010 at 04:20 AM.. Reason: Please use code tags |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
I guess, it's because ssh is loading libcrypto from /opt/symas/lib instead of the solaris version of this library. What does Code:
echo $LD_LIBRARY_PATH crle say? Check, that /usr/lib comes before /opt/symas/lib. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
The results are below :
echo $LD_LIBRARY_PATH :/apps/oracle/product/10.2.0/client_1/lib32:/opt/symas/lib:/opt/bea/tuxedo9.1/lib:/opt/bea/wlserver_10.0/server/native/solaris/sparc crle Default configuration file (/var/ld/ld.config) not found Default Library Path (ELF): /lib:/usr/lib (system default) Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default) Thanks |
|
#4
|
||||
|
||||
|
The dynamic linker starts to look for dynamic libraries in the directories given in $LD_LIBRARY_PATH, then in the program's runpath and finally in the default path defined with crle.
Because symas seems to use a library with the same name as a solaris system library, all commands find the symas version instead of the solaris version. You can insert /lib:/usr/lib at the beginning of LD_LIBRARY_PATH. That would make ssh and probably other solaris commands find the solaris version of libcrypto. But you have to check, if this has any unwanted side effects on symas commands (if they can't deal with the solaris version of libcrypto). |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Hi Thanks for the help . I found the following SSH is using Code:
stat64("/usr/openwin/lib/libcrypto.so.0.9.7", 0xFFBFF208) Err#2 ENOENT
stat64("/usr/sfw/lib/libcrypto.so.0.9.7", 0xFFBFF208) = 0
resolvepath("/usr/sfw/lib/libcrypto.so.0.9.7", "/usr/sfw/lib/libcrypto.so.0.9.7", 1023) = 31
open("/usr/sfw/lib/libcrypto.so.0.9.7", O_RDONLY) = 3
stat64("/usr/openwin/lib/libcrypto_extra.so.0.9.7", 0xFFBFEEC0) Err#2 ENOENT
stat64("/usr/sfw/lib/libcrypto_extra.so.0.9.7", 0xFFBFEEC0) = 0
resolvepath("/usr/sfw/lib/libcrypto_extra.so.0.9.7", "/usr/sfw/lib/libcrypto_extra.so.0.9.7", 1023) = 37
open("/usr/sfw/lib/libcrypto_extra.so.0.9.7", O_RDONLY) = 3
stat64("/usr/openwin/lib/libcrypto_extra.so.0.9.7", 0xFFBFE7B8) Err#2 ENOENT
following crypto packages are installed on this system
system SUNWcry Crypt Utilities
system SUNWcryr Solaris Root CryptoCan we read into this? Last edited by Scott; 08-06-2010 at 04:22 AM.. Reason: Code tags |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Looks good. ssh loads the solaris libcrypto library from /usr/sfw/lib (not /usr/lib as I assumed erroneously before). This is, what ldd /usr/bin/ssh should look on Solaris 10u8 (x86): Code:
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libz.so.1 => /usr/lib/libz.so.1
libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7
libgss.so.1 => /usr/lib/libgss.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libcmd.so.1 => /lib/libcmd.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libcrypto_extra.so.0.9.7 => /usr/sfw/lib/libcrypto_extra.so.0.9.7
libm.so.2 => /lib/libm.so.2On a T2000 with an older version of Solaris 10 I get: Code:
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libz.so.1 => /usr/lib/libz.so.1
libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7
libgss.so.1 => /usr/lib/libgss.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libcmd.so.1 => /lib/libcmd.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1 |
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
As an aside, Symas's code is always linked with proper embedded runpaths so there is no need to put /opt/symas/lib in an LD_LIBRARY_PATH value or even in an ldconfig file. The only exception to this is if some other software wants to use Symas's libraries (which is perfectly appropriate) and wasn't linked with runpaths.
|
| Sponsored Links | ||
|
![]() |
| Tags |
| ssh, unix |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found | dshakey | Solaris | 0 | 03-18-2010 02:11 PM |
| kernel debug:"Symbol file not found for *.ko" | yanglei_fage | UNIX for Advanced & Expert Users | 2 | 03-30-2009 10:45 AM |
| Error: Undefined Symbol ..... First referenced in file...... | smartgupta | Programming | 1 | 10-10-2008 06:08 AM |
| relocation error: yyparse referenced symbol not found | agilgeous | UNIX for Advanced & Expert Users | 2 | 05-06-2008 02:40 PM |
| referenced symbol not found, how to solve? | champion | UNIX for Advanced & Expert Users | 4 | 01-08-2003 09:40 AM |
|
|