Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Error while loading shared libraries in CDSDOC on Linux

Status
Not open for further replies.

trofim

Newbie level 5
Newbie level 5
Joined
Feb 26, 2004
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
64
cdsdoc on linux?

I try to run cdsdoc and recieve next message:
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

How to resolve this problem?
 

Re: cdsdoc on linux?

This means that this library is missing or can´t be found...easy..isn´t it? (o;


Check what libdl.so.* you have in your system and make a link to libdl.so.2 and try again...
 

cdsdoc on linux?

I think the linux version is not match the cadence version. Cadence tools should be used in RH7.3 or RH8.
 

cdsdoc on linux?

you can use rpm find in you CDROM,
i rememble is rpm -qpl *.rpm ,and you will
find the lib
 

Re: cdsdoc on linux?

I had no problem using Linux 9 or Fedora Core 1 to run Cadence
tools. Check your settings.
 

Re: cdsdoc on linux?

Please use Fedora Core 1. I have no such problems. Also please check the library path.
 

Re: cdsdoc on linux?

I setup LDV 5.1 and IC5033 in RedHat rhle AS3.0. The tools can start up smoothly, but only with the "Caence Documentation" access on the CIW's help menu or the Library Manager's help menu. Or even simply start up "cdsdoc&" individually in an xterm window. The RESULTS both FAILED me. I did do some environment fixed
up which are collecting from the WEB. Such as "LD_ASSUME_KERNEL", "LD_PRELOAD" fix-ups somebody said they
worked for them. But mine with no such luck to fix this "cdsdoc" problem. I'll list them detailly below. Hope somebody can help me out off this issue!

1. Try to run "cdsdoc&" individually in an xterm with the following fix-up. RESULT=FAILED

[cad]$ printenv | grep ASSUME
LD_ASSUME_KERNEL=2.4.1
[cad]$ cdsdoc &
[1] 4513
[cad]$ Error occurred during initialization of VM
Unable to load native library: /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/
i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.
so.6 with link time reference

[1]+ Exit 1 cdsdoc

2. Through googling the web, find a solution can solve, as somebody said that, the JAVA VM trouble. RESULT=FAILED

I'll quote this solution here for your reference. But to me, I have had no luck of this solution.

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

To deal with this (if you already don't have libcwait.so on your computer), download the file from
ftp://people.redhat.com/drepper/libcwait.c
and compile it with
gcc -shared -o libcwait.so -fpic -O2 libcwait.c
Now, having done that, do the following :
export LD_PRELOAD=<PATHtoFILE>/libcwait.so
export LD_ASSUME_KERNEL=2.4.19
where PATHtoFILE is the FULL directory path of where you put libcwait.so ...

and run the program with "LD_PRELOAD=~/libcwait.so", "LD_ASSUME_KERNEL=2.4.19" in environment.

Here is the "libcwait.c":
---------------------------------------CUT START HERE----------------------------------------
/* Compile with

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

and use it by adding

LD_PRELOAD=/path/to/libcwait.so

in the environment of the application with the bug.

*/
#include <errno.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
pid_t
__libc_wait (int *status)
{
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int $0x80\n\t"
"popl %%ebx"
: "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0),
"S" (0));
return res;
}
---------------------------------------CUT END HERE----------------------------------------




After adapting the above fix-up, I still run this "cdsdoc&" into trouble. My error message is shown below.
I had tried them both on jre1.3.1 and jre1.4.1, because LDV5.1 uses jre1.3.1 and IC5033 uses jre1.4.1. Both FAILED me.

[cad]$ printenv | grep ASSUME
LD_ASSUME_KERNEL=2.4.1

[cad]$ printenv | grep LD_PRELOAD
[cad]$ dir /usr/my_lib
./ ../ libcwait.so*
[cad]$ export LD_PRELOAD=/usr/my_lib/libcwait.so

[cad]$ cdsdoc&
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 8 occurred at PC=0xb772e701
Function name=Java_sun_awt_motif_MFramePeer_pGetIconSize
Library=/home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libawt.so

Current Java thread:
at sun.awt.motif.MFramePeer.pGetIconSize(Native Method)
at sun.awt.motif.MFramePeer.setIconImage(MFramePeer.java:96)
at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:55)
at sun.awt.motif.MToolkit.createFrame(MToolkit.java:138)
at java.awt.Frame.addNotify(Frame.java:353)
at java.awt.Window.show(Window.java:389)
at COM.cadence.cdsdoc.DynamicMenusDriver.main(DynamicMenusDriver.java:61)

Dynamic libraries:
08048000-0804c000 r-xp 00000000 03:02 22790359 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/bin/i386/native_threads/java
0804c000-0804d000 rw-p 00003000 03:02 22790359 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/bin/i386/native_threads/java
add65000-addef000 r-xp 00000000 03:02 18235618 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libfontmanager.so
addef000-addff000 rw-p 00089000 03:02 18235618 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libfontmanager.so
addff000-ade13000 r-xp 00000000 03:02 376857 /usr/X11R6/lib/libICE.so.6.3
ade13000-ade14000 rw-p 00013000 03:02 376857 /usr/X11R6/lib/libICE.so.6.3
ade16000-ade1d000 r-xp 00000000 03:02 376861 /usr/X11R6/lib/libSM.so.6.0
ade1d000-ade1e000 rw-p 00007000 03:02 376861 /usr/X11R6/lib/libSM.so.6.0
ade1e000-adefa000 r-xp 00000000 03:02 376863 /usr/X11R6/lib/libX11.so.6.2
adefa000-adefd000 rw-p 000db000 03:02 376863 /usr/X11R6/lib/libX11.so.6.2
adefd000-adf01000 r-xp 00000000 03:02 376897 /usr/X11R6/lib/libXtst.so.6.1
adf01000-adf02000 rw-p 00004000 03:02 376897 /usr/X11R6/lib/libXtst.so.6.1
adf02000-adf0f000 r-xp 00000000 03:02 376873 /usr/X11R6/lib/libXext.so.6.4
adf0f000-adf10000 rw-p 0000c000 03:02 376873 /usr/X11R6/lib/libXext.so.6.4
adf10000-adf5d000 r-xp 00000000 03:02 376895 /usr/X11R6/lib/libXt.so.6.0
adf5d000-adf61000 rw-p 0004c000 03:02 376895 /usr/X11R6/lib/libXt.so.6.0
b6070000-b6086000 r--s 00000000 03:02 4784343 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/sunrsasign.jar
b6086000-b632b000 r--s 00000000 03:02 4784356 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i18n.jar
b6358000-b7086000 r--s 00000000 03:02 4784355 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/rt.jar
b7086000-b709a000 r-xp 00000000 03:02 18235610 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libzip.so
b709a000-b709d000 rw-p 00013000 03:02 18235610 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libzip.so
b709d000-b70be000 r-xp 00000000 03:02 18235609 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libjava.so
b70be000-b70c0000 rw-p 00020000 03:02 18235609 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libjava.so
b70c2000-b70f6000 r-xp 00000000 03:02 1213427 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
b70f6000-b7102000 rw-p 00033000 03:02 1213427 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
b7104000-b7125000 r-xp 00000000 03:02 524307 /lib/libm-2.3.2.so
b7125000-b7126000 rw-p 00021000 03:02 524307 /lib/libm-2.3.2.so
b7126000-b7138000 r-xp 00000000 03:02 524309 /lib/libnsl-2.3.2.so
b7138000-b7139000 rw-p 00011000 03:02 524309 /lib/libnsl-2.3.2.so
b713b000-b7271000 r-xp 00000000 03:02 524301 /lib/libc-2.3.2.so
b7271000-b7275000 rw-p 00135000 03:02 524301 /lib/libc-2.3.2.so
b7278000-b727a000 r-xp 00000000 03:02 524305 /lib/libdl-2.3.2.so
b727a000-b727b000 rw-p 00001000 03:02 524305 /lib/libdl-2.3.2.so
b727b000-b7468000 r-xp 00000000 03:02 1442007 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/client/libjvm.so
b7468000-b755e000 rw-p 001ec000 03:02 1442007 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/client/libjvm.so
b7575000-b757e000 r-xp 00000000 03:02 9781424 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/native_threads/libhpi.so
b757e000-b757f000 rw-p 00008000 03:02 9781424 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/native_threads/libhpi.so
b757f000-b758f000 r-xp 00000000 03:02 524335 /lib/libpthread-0.10.so
b758f000-b7592000 rw-p 0000f000 03:02 524335 /lib/libpthread-0.10.so
b75d2000-b75e3000 r-xp 00000000 03:02 18235608 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libverify.so
b75e3000-b75e5000 rw-p 00010000 03:02 18235608 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libverify.so
b75e5000-b75e6000 r-xp 00000000 03:02 18251857 /usr/my_lib/libcwait.so
b75e6000-b75e7000 rw-p 00000000 03:02 18251857 /usr/my_lib/libcwait.so
b75e8000-b75fd000 r-xp 00000000 03:02 524292 /lib/ld-2.3.2.so
b75fd000-b75fe000 rw-p 00015000 03:02 524292 /lib/ld-2.3.2.so
b7601000-b761d000 r-xp 00000000 03:02 7503876 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
b761d000-b761f000 rw-p 0001c000 03:02 7503876 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
b761f000-b7626000 r-xp 00000000 03:02 376893 /usr/X11R6/lib/libXrender.so.1.2.2
b7626000-b7627000 rw-p 00006000 03:02 376893 /usr/X11R6/lib/libXrender.so.1.2.2
b7627000-b762f000 r-xp 00000000 03:02 376871 /usr/X11R6/lib/libXcursor.so.1.0
b762f000-b7630000 rw-p 00007000 03:02 376871 /usr/X11R6/lib/libXcursor.so.1.0
b7630000-b7637000 r-xp 00000000 03:02 376887 /usr/X11R6/lib/libXp.so.6.2
b7637000-b7638000 rw-p 00006000 03:02 376887 /usr/X11R6/lib/libXp.so.6.2
b7649000-b764a000 r-xp 00000000 03:02 14123145 /usr/lib/gconv/ISO8859-1.so
b764a000-b764b000 rw-p 00001000 03:02 14123145 /usr/lib/gconv/ISO8859-1.so
b764b000-b767c000 r-xp 00000000 03:02 18235616 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libmlib_image.so
b767c000-b767e000 rw-p 00030000 03:02 18235616 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libmlib_image.so
b767e000-b7a4b000 r-xp 00000000 03:02 18235617 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libawt.so
b7a4b000-b7a5b000 rw-p 003cc000 03:02 18235617 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libawt.so
b7a70000-b7a77000 r--s 00000000 03:02 3801306 /home/cad/Cadence/ldv51/share/java/cdsdocCore.jar
b7a77000-b7a80000 r-xp 00000000 03:02 18235613 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libnet.so
b7a80000-b7a81000 rw-p 00008000 03:02 18235613 /home/cad/Cadence/ldv51/tools.lnx86/jre1.3.1/lib/i386/libnet.so
b7a81000-b7a87000 r-xp 00000000 03:02 12353756 /home/cad/Cadence/ldv51/tools.lnx86/lib/libjcls_sh.so
b7a87000-b7a88000 rw-p 00005000 03:02 12353756 /home/cad/Cadence/ldv51/tools.lnx86/lib/libjcls_sh.so
b7a88000-b7a94000 r-xp 00000000 03:02 12353761 /home/cad/Cadence/ldv51/tools.lnx86/lib/libcls_sh.so
b7a94000-b7a95000 rw-p 0000b000 03:02 12353761 /home/cad/Cadence/ldv51/tools.lnx86/lib/libcls_sh.so
b7a95000-b7aa9000 r-xp 00000000 03:02 12353760 /home/cad/Cadence/ldv51/tools.lnx86/lib/libcla_sh.so
b7aa9000-b7aaa000 rw-p 00013000 03:02 12353760 /home/cad/Cadence/ldv51/tools.lnx86/lib/libcla_sh.so
b7aad000-b7adf000 r-xp 00000000 03:02 12353764 /home/cad/Cadence/ldv51/tools.lnx86/lib/libnmp_sh.so
b7adf000-b7ae2000 rw-p 00031000 03:02 12353764 /home/cad/Cadence/ldv51/tools.lnx86/lib/libnmp_sh.so
b7ae2000-b7ae4000 r-xp 00000000 03:02 12353754 /home/cad/Cadence/ldv51/tools.lnx86/lib/libjcomm_sh.so
b7ae4000-b7ae5000 rw-p 00001000 03:02 12353754 /home/cad/Cadence/ldv51/tools.lnx86/lib/libjcomm_sh.so
b7ae5000-b7ae7000 r-xp 00000000 03:02 12353768 /home/cad/Cadence/ldv51/tools.lnx86/lib/libem_sh.so
b7ae7000-b7ae8000 rw-p 00001000 03:02 12353768 /home/cad/Cadence/ldv51/tools.lnx86/lib/libem_sh.so
b7ae8000-b7aec000 r-xp 00000000 03:02 12353769 /home/cad/Cadence/ldv51/tools.lnx86/lib/libsman_sh.so
b7aec000-b7aed000 rw-p 00003000 03:02 12353769 /home/cad/Cadence/ldv51/tools.lnx86/lib/libsman_sh.so
b7aed000-b7af5000 r-xp 00000000 03:02 12353758 /home/cad/Cadence/ldv51/tools.lnx86/lib/libcdsCommon_sh.so
b7af5000-b7af6000 rw-p 00007000 03:02 12353758 /home/cad/Cadence/ldv51/tools.lnx86/lib/libcdsCommon_sh.so
b7af9000-b7b11000 r-xp 00000000 03:02 12353770 /home/cad/Cadence/ldv51/tools.lnx86/lib/libmpsc_sh.so
b7b11000-b7b12000 rw-p 00017000 03:02 12353770 /home/cad/Cadence/ldv51/tools.lnx86/lib/libmpsc_sh.so
b7b13000-b7b1b000 r-xp 00000000 03:02 12353767 /home/cad/Cadence/ldv51/tools.lnx86/lib/libopenbookJava.so
b7b1b000-b7b1d000 rw-p 00007000 03:02 12353767 /home/cad/Cadence/ldv51/tools.lnx86/lib/libopenbookJava.so
b7b1d000-b7b3f000 r--s 00000000 03:02 3801307 /home/cad/Cadence/ldv51/share/java/cdsdoc.jar
b7bab000-b7bb6000 r-xp 00000000 03:02 524325 /lib/libnss_files-2.3.2.so
b7bb6000-b7bb7000 rw-p 0000a000 03:02 524325 /lib/libnss_files-2.3.2.so
b7bb8000-b7bbe000 r--s 00000000 03:02 14123201 /usr/lib/gconv/gconv-modules.cache
b7bbf000-b7bc1000 r-xp 00000000 03:02 7503877 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
b7bc1000-b7bc2000 rw-p 00001000 03:02 7503877 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
b7bc2000-b7bc7000 r-xp 00000000 03:02 12353751 /home/cad/Cadence/ldv51/tools.lnx86/lib/libfmp_sh.so
b7bc7000-b7bc8000 rw-p 00004000 03:02 12353751 /home/cad/Cadence/ldv51/tools.lnx86/lib/libfmp_sh.so
b7bca000-b7bcb000 r--p 00a12000 03:02 3325956 /usr/lib/locale/locale-archive
b7bcb000-b7bfd000 r--p 009c4000 03:02 3325956 /usr/lib/locale/locale-archive
b7bfd000-b7dfd000 r--p 00000000 03:02 3325956 /usr/lib/locale/locale-archive

Local Time = Sat Feb 12 23:26:25 2005
Elapsed Time = 1
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_01 mixed mode)
#


3. After starting "icfb" or "icms", I can access the "Help" menus and the MOZILLA does pop up the infomations about tools with only one EXCEPTION.
The "Help -> Cadence Documentation" menu fails to pop up both in CIW and Library Manager. It also shows the same ABOVE HUGE error messages in a
hs_err_pidXXXX.log file stored just under the directory where starts the "icfb&" or "icms&". I had tried both step 1). and 2). fix-ups in this case and
found NO HELP.

Do anybody know how to fix this "Cadence Documentation" or "cdsdoc&" problem on RHEL AS 3.0 platform ?

Thanks a lot.
Regards
--eins99
 

cdsdoc on linux?

i too had this problem.only solution i found was to switch to red hat 8.0 from my fedora core 2.but then i could run all tools without any problem.
 

Re: cdsdoc on linux?

I think you did not installed legacy development tool when you were installing linux.

For backward compatibility with Redhat 7.x, the legacy development tools should be installed for RHEL.

Now, I can run cdsdoc but still have a problem; the cdsdoc window freezes other xterms.
 

cdsdoc on linux?

mostly CDSDOC was available in USR , ISR version release search in installed folder is any avaible doc folders is there.otherwise download updates
 

Re: cdsdoc on linux?

cdsdoc 2.1 and 2.1 works well with RHEL AS3.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top