runtime linker errors


 
Thread Tools Search this Thread
Operating Systems Solaris runtime linker errors
# 1  
Old 02-07-2011
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:

Code:
ld.so.1: java: fatal: libexpat.so.0: open failed: No such file or directory
ld.so.1: java: fatal: libfreetype.so.6: open failed: No such file or directory
ld.so.1: java: fatal: libexpat.so.0: open failed: No such file or directory
ld.so.1: java: fatal: relocation error: file /usr/lib/64/libfontconfig.so: symbol XML_ParserCreate: referenced symbol not found

I have googled and googled for hours. It looks like the issue is that the runtime linker ld expects libexpat.so.0 and libfreetype.so.6 to be somewhere else, but I have no idea about the last one, libfontconfig.so. So i tried setting LD_LIBRARY_PATH which didn't work. I then tried adding the path to these libraries using crle, but that didn't work either. Finally, I tried adding a link to the libraries, in where ld was looking for them. First, from within the zone:
Code:
-bash-3.00# ln -s /usr/local/lib/libexpat.so.0 /usr/lib
ln: cannot create /usr/lib/libexpat.so.0: Read-only file system

and again from the global zone:
Code:
-bash-3.00# cd /export/home/zonename/root/
-bash-3.00# ln -s usr/local/lib/libexpat.so.0 usr/lib
ln: cannot create usr/lib/libexpat.so.0: Read-only file system

So... can anyone help me:
- Change the zone's /lib to read/write
- add the library to the crle / library path and have it work
- Tell me if I'm on the right track at least (ie, that it is a problem with where ld is looking)
- anything else to help fix it.

On a side note, the Oracle Client I'm trying to install is 11g. I previously tried 10g and had that work beautifully. Unfortunately, 10g is actually incompatible with the next thing i'll be putting in the zone.

Cheers, I'd appreciate any help you can offer
# 2  
Old 02-07-2011
FWIW, I've run into this error before and it is usually due to the LD_LIBRARY_PATH var missing or miss configured. But it could also be that the libraries are not on your system.

Try to find those libraries on your system. If they are on your system, change/create the LD_LIBRARY_PATH var so that the dirs containing the libraries are at the begining of the var (always remember to end that var with /usr/lib:/lib).

If the libraries are NOT on your system, find the software and install the libraries. Then, change LD_LIBRARY_PATH and compile again.


HTH
This User Gave Thanks to bluescreen For This Post:
# 3  
Old 02-07-2011
Yeah, I know that the libraries are on the system. As I mentioned, I did try setting LD_LIBRARY_PATH. I'm not sure if I made it end with "/usr/lib:/lib" though, so I'll give it another try.

---------- Post updated at 10:18 AM ---------- Previous update was at 08:55 AM ----------

ok, so retrying setting LD_LIBRARY_PATH helped a little. I guess... I still get similar errors:

Code:
ld.so.1: java: fatal: /usr/local/lib/libexpat.so.0: wrong ELF class: ELFCLASS32
ld.so.1: java: fatal: /usr/sfw/lib/libfreetype.so.6: wrong ELF class: ELFCLASS32
ld.so.1: java: fatal: /usr/local/lib/libexpat.so.0: wrong ELF class: ELFCLASS32
ld.so.1: java: fatal: relocation error: file /usr/lib/64/libfontconfig.so: symbol XML_ParserCreate: referenced symbol not found

I would assume that this means I installed 32 bit libraries expat and freetype, but I need 64?

That said, the last error is still the same, the relocation error. Given that expat is a xml parsing library, is the last error just because of not finding expat?

Cheers

---------- Post updated at 10:23 AM ---------- Previous update was at 10:18 AM ----------

don't worry lol. Changed the paths i was adding to LD_LIBRARY_PATH to add the /sparcv9/ to the extra paths. Worked.

I'll probably be back later though for more help.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Linker errors linking to .a files on OS X

Basically my problem is that when I try to compile anything using ./configure && make, it fails because of linker errors. I can reproduce the behavior I'm getting as follows: I have the two following files main.c: #include <stdio.h> extern void func(void); int main(int argc, char... (5 Replies)
Discussion started by: MarshallBanana
5 Replies

2. Solaris

Runtime Linker Problems ld.so.1

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... (7 Replies)
Discussion started by: jbirkes
7 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. Programming

GCC: Choose my own linker

Hi, I do not use the default linker, and instead us another one and pass this argument -Wl,--dynamic-linker=<path to linker> to gcc when compiling. However, what happens if the linker is not under /lib and /lib64 and I am not able to create a symlink to the linker in /lib or /lib64 due to no... (2 Replies)
Discussion started by: Shompis
2 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. HP-UX

dynamic linker error

Hi All Could anyone help in giving a little background to the following runtime error. /usr/lib/pa20_64/dld.sl: Mmap failed due to errno: 13. Seen when executing a 64-bit ELF executable. Thanks Ed (3 Replies)
Discussion started by: C3000
3 Replies

9. 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

10. 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