Re: Errormsg symbol __libc_wait, version GLIBC2.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A.J. Bonnema wrote:
Alexander Dalloz wrote:

<snip>

Alexander,

It doesn't work for me. I paste the result at the end of the message.
Do you have any idea what i have done wrong? A summary of what I did:

1. First I set LD_LIBRARY_PATH to contain libjvm.so and libzip.so:

LD_LIBRARY_PATH="/usr/java/jdk1.5.0/jre/lib/i386/client:/usr/java/jdk1.5.0/jre/lib/i386"; export LD_LIBRARY_PATH

2. Then I compiled the source like the c-file comments say:

gcc -shared -o libcwait.so libcwait.c -fpic -O

3. Finally I executed the install command:

LD_PRELOAD="/home/abonnema/tcc6_1/libcwait.so ./tcc6.1lin.bin"

and I got the error (see bottom of the message).

I am not a C-programmer so I really don't understand the error. Do you know what is wrong?

Thank you very much for taking the effort to help.

Guus.

I finally solved this problem. Turns out the tip from Alexander was key to the solution. Only the LD_LIBRARY_PATH needs to point to a "compatible" jvm or you will get errors. When I executed the above commands using a 1.3.1 jvm the installation finally worked.


Alexander, thanks for you pointer (and your patience).

Just so the original problem is clear and problem and solution are in one place, I summarize what happened. I wanted to install Together Contol Center 6.1. The trouble started with the error message:

"/tmp/install.dir.12566/Linux/resource/jre/jre/bin/i386/native_threads/java: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory
"


After fixing this with an LD_LIBRARY as above I got the following error message:

"
Error occurred during initialization of VM
Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
"


The final commands were:

LD_LIBRARY_PATH="/usr/java/jre1.3.1_13/lib/i386/client:/usr/java/jre1.3.1_13/lib/i386/"; export LD_LIBRARY_PATH
LD_PRELOAD="/home/abonnema/tcc6_1/libcwait.so" ./tcc6.1lin.bin


(The LD_LIBRARY_PATH plus export is on one line).

Hope this helps someone save some time.

Guus.
--
A.J. Bonnema, Leiden The Netherlands,
user #328198 (Linux Counter http://counter.li.org)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux