Daniel Barclay wrote:
> 
> What exactly does it mean when ldd gives the following error message?:
> 
>   dsb:~# ldd /usr/local/lib/jdk1.3/jre/lib/i386/server/libjvm.so 2>&1
>   /usr/local/lib/jdk1.3/jre/lib/i386/server/libjvm.so: error in loading shared 
>libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or 
>directory
> 
> That's different from ldd's normal indication of a library's not being
> available, for example:
> 
>   /usr/local/lib/jdk1.3/jre/bin/i386/green_threads/policytool
>         libhpi.so => not found
>         libjvm.so => not found
>         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40016000)
>         libdl.so.2 => /lib/libdl.so.2 (0x400b8000)
>         libc.so.6 => /lib/libc.so.6 (0x400bc000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I'd guess that the ld cache is out of date.  Man ldconfig for
update instructions.  Or, you don't have the library it wants...

Here's what I get from my RH 6.2 box:

[joi@joi server]$ ldd libjvm.so
ldd: warning: you do not have execution permission for `./libjvm.so'
        libnsl.so.1 => /lib/libnsl.so.1 (0x405d5000)
        libdl.so.2 => /lib/libdl.so.2 (0x405eb000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x405ef000)
        libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x40602000)
        libm.so.6 => /lib/libm.so.6 (0x40645000)
        libc.so.6 => /lib/libc.so.6 (0x40662000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)                   

[joi@joi server]$ file /usr/lib/libstdc*
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.a:  current ar archive
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so: ELF 32-bit LSB shared object, Intel 80386, 
version 1, not stripped
/usr/lib/libstdc++-libc6.1-1.a.2:        symbolic link to libstdc++-2-libc6.1-1-2.9.0.a
/usr/lib/libstdc++-libc6.1-1.so.2:       symbolic link to 
libstdc++-2-libc6.1-1-2.9.0.so
/usr/lib/libstdc++.so.2.7.2:             symbolic link to libstdc++.so.2.7.2.8
/usr/lib/libstdc++.so.2.7.2.8:           ELF 32-bit LSB shared object, Intel 80386, 
version 1, not stripped
/usr/lib/libstdc++.so.2.8:               symbolic link to libstdc++.so.2.8.0
/usr/lib/libstdc++.so.2.8.0:             ELF 32-bit LSB shared object, Intel 80386, 
version 1, not stripped
/usr/lib/libstdc++.so.2.9:               symbolic link to libstdc++.so.2.9.dummy
/usr/lib/libstdc++.so.2.9.dummy:         ELF 32-bit LSB shared object, Intel 80386, 
version 1, not
stripped                                

--
Joi Ellis                    Software Engineer
Aravox Technologies          [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to