Runtime Linker Problems ld.so.1


 
Thread Tools Search this Thread
Operating Systems Solaris Runtime Linker Problems ld.so.1
# 1  
Old 02-10-2012
Hello all,

I am releatively new to Solaris and I am the System administrator for my branch at the FAA. This is the first time I can say I have really messed something up thankfully. My issue came up after installing and uninstalling Oracle Secure Backup which i felt I needed to do a clean reinstall due to inability to find scsi devices. After doing so I realized that I could no longer run the ./installob script it would throw the following error...and I have no knowledge or understandinf of the runtime linker and ELF classes...etc...

Code:
# ./installob

Welcome to installob, Oracle Secure Backup's installation program.

For most questions, a default answer appears enclosed in square brackets.
Press Enter to select this answer.

Please wait a few seconds while I learn about this machine...ld.so.1: hostinfo: fatal: libresolv.so.2: open failed: No such file or directory
Killed
ld.so.1: hostinfo: fatal: libresolv.so.2: open failed: No such file or directory
Killed
ERROR: can't determine machine information for this host: can't determine proper hostname
my_base_arch: Undefined variable
#

after messing around with the LD_LIBRARY_PATH env variable I realized I messed something else up I can no longer run "ldd" command it says the following

Code:
# ldd
ld.so.1: ldd: fatal: /usr/bin/sparcv9/../../lib/libelf.so.1: wrong ELF class: ELFCLASS32
Killed
#

Now regardless what i run, if it has to do with the ld.so.1 runtime linker then it throws a similar error every time. There are even a couple services I cannot get to start like efdaemon, sma, webconsole and oplhpd.
I realize this may be considered a remedial question for this forum but any help would be greatly appreciated.

Thank You,
Jerry

Last edited by DukeNuke2; 02-10-2012 at 06:33 PM..
# 2  
Old 02-10-2012
You forgot to mention your architecture (sparc/X86- 32/64...), OS version
Sure it has to do with LD_LIBRARY_PATH... (32/64 bit mismatch?)
# 3  
Old 02-10-2012
Didn't you save the stuff you have changed? No? MAJOR FAIL!
Why not simply restore the entire system? No backup? MAJOR FAIL!

If I were you I'd consult the appropriate Oracle Secure Backup Installation Guide, read the fourth chapter "Installing Oracle Secure Backup on Linux or
UNIX" and ensure your system meets all requirements!

However I that's an operating system problem thus your system is not ready for the installation of the.
Undo the changes if you can, if you can't, don't forget to make proper backups in the future! Smilie

Those were my thoughs reading this issue..

No offense meant! Smilie
# 4  
Old 02-13-2012
Runtime linker

The only thing I changed was installing and uninstalling Oracle Secure Backup. I have a snapshot of my ZFS raid however that will not help me with the issue at hand. Also due to this problem I am no longer able to get webconsole running it is stuck in maintenenance as is a few other services. I did read the Documentation for Oracle Secure Backup, I simply didnt feel there would be a problem from uninstalling it. Truthfully I can't even really narrow it down to that being the cause.

---------- Post updated at 12:53 PM ---------- Previous update was at 12:50 PM ----------

Here is the info...
If there is anything else needed I wil promptly get it posted.

# isainfo -kv
64-bit sparcv9 kernel modules

# uname -a
SunOS Einstein 5.10 Generic_147440-01 sun4u sparc SUNW,SPARC-Enterprise
# 5  
Old 02-13-2012
Maybe fixing webconsole will get us closer to fixing the main problem. Post output of
Code:
tail -20 /var/svc/log/system-webconsole:console.log

# 6  
Old 02-13-2012
Here is the output...

# tail -20 /var/svc/log/system-webconsole:console.log
[ Feb 10 08:47:34 Executing stop method ("/lib/svc/method/svc-webconsole stop") ]
The console is stopped.
[ Feb 10 08:47:36 Method "stop" exited with status 0 ]
[ Feb 10 08:47:36 Executing start method ("/lib/svc/method/svc-webconsole start") ]
Starting Oracle Java(TM) Web Console Version 3.1 ...
Cannot determine if console started successfully
[ Feb 10 08:48:26 Method "start" exited with status 0 ]
[ Feb 10 08:48:26 Stopping because all processes in service exited. ]
[ Feb 10 08:48:26 Executing stop method ("/lib/svc/method/svc-webconsole stop") ]
The console is stopped.
[ Feb 10 08:48:28 Method "stop" exited with status 0 ]
[ Feb 10 08:48:28 Executing start method ("/lib/svc/method/svc-webconsole start") ]
Starting Oracle Java(TM) Web Console Version 3.1 ...
Cannot determine if console started successfully
[ Feb 10 08:49:17 Method "start" exited with status 0 ]
[ Feb 10 08:49:17 Stopping because all processes in service exited. ]
[ Feb 10 08:49:17 Executing stop method ("/lib/svc/method/svc-webconsole stop") ]
The console is stopped.
[ Feb 10 08:49:19 Method "stop" exited with status 0 ]
[ Feb 10 08:49:19 Restarting too quickly, changing state to maintenance ]
#
# 7  
Old 02-13-2012
You should increase start timeout:
Code:
svccfg -s webconsole:console setprop start/timeout_seconds=600

Then
Code:
svcadm refresh webconsole:console
svcadm clear webconsole:console

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

runtime linker errors

Hey guys I have a solaris 10 OS, with a zone configured. In that zone, I am trying to install an Oracle Client. However, when I run the oracle installer, I get the following error: ld.so.1: java: fatal: libexpat.so.0: open failed: No such file or directory ld.so.1: java: fatal:... (2 Replies)
Discussion started by: goodvikings
2 Replies

2. Programming

AIX linker oddities...what is going on?

I've tried to figure out what the linker is smoking in AIX to no avail...so I'm trying to find a little information to see why it's being inconsistent. I have the following code in a shared library, it doesn't do anything useful, it's just there to exercise functions in a few system libraries: ... (11 Replies)
Discussion started by: DreamWarrior
11 Replies

3. Programming

gcc linker address

Hai, I have two (Pgm1.c and Pgm2.c) simple programs, which is compiled using gcc. Now we have two exe's (Pgm1 and Pgm2). When i executed the nm Pgm1 and nm Pgm2, in the listed symbols the address of main is same for both programs (08048344 T main) at run time also. Doubt: 1) What is this... (3 Replies)
Discussion started by: rajamohan
3 Replies

4. Shell Programming and Scripting

Perl - Problems iwith colors while printing from dynamic array at runtime..

Hi Perl folks, I am having problems printing elements from an array at runtime. I wish to push elements into array at runtime and the print it later. Now I wish to print this matrix using colors. So I do something like this to enter the runtime values in array: ... (1 Reply)
Discussion started by: som.nitk
1 Replies

5. HP-UX

Hp-ux linker option -c

Hi, The necessary symbols in a shared library can be exported to the application using linker option --version-script in Linux. The same can be done in Hp-ux using linker option +e. This can also be done by listing all the global symbols with +e in a file with linker option ld -c filename in... (0 Replies)
Discussion started by: roopa_v
0 Replies

6. Linux

G++ Linker Error

Hi All, I m new to this group. I m facing one problem during my linking of CPP code at Linux env. after compliation i m getting error "undefined reference to ....." Please anyone help me to resolve this error. Regards, ASR make: Leaving directory /fwk' echo g++ -o server ... (1 Reply)
Discussion started by: ASRRAJ
1 Replies

7. UNIX for Advanced & Expert Users

LD linker define symbol

Hi, I want to define a symbol in my code as: extern int Address; and then I'd like to define the symbol value in linker (ld) script file, so each time I change the hardware, I don't need to redefine the value in code, just use different linker script. I've gone through ld reference and didn't... (3 Replies)
Discussion started by: lzwierko
3 Replies

8. Programming

Linker error when using vector's

using SUN C++ I have a problem when I do a push_back on a vector. The linker gives me a undefined symbol error on __cxa_end_catch. Any ideas, is there a library to include? Thanks Chris (1 Reply)
Discussion started by: CDurkin
1 Replies

9. UNIX for Dummies Questions & Answers

Linker (ld)

hai I have installed Linux 7.0 on my system and i have an doubt the linker i ran simple hello.c program with gcc compiler gcc -c hello.c i want linker to produce the output so i put on the command line as ld first.o -lc but it is not running ver properly but there is an... (1 Reply)
Discussion started by: rajashekaran
1 Replies
Login or Register to Ask a Question