libawt.so unsatisfied link in java5

Bug #162232 reported by arthomps
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sun-java5 (Debian)
Fix Released
Unknown
sun-java5 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

going from feisty to gutsy, i started running into java errors for some applications that i do development on. the primary one was installation of opencms stopped working with upgrade. the error that gets reported is

java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre/lib/i386/libawt.so: Can't load IA 32-bit .so on a IA 32-bit platform

which is confusing to me since i work on a 386 desktop so shouldn't really have dependencies on anything ia32. the problem goes away when i use java6, but for development - i can't just upgrade major version of my jdk. a similar bug is located at https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/131212

what i've done in the meantime so that i can continue development is to revert from gutsy back to feisty. which is fine. it's just that you folks have made some wonder upgrades elsewhere that i would like to take advantage of (tomcat5.5 isn't fubared for example).

Revision history for this message
Matti Lindell (mlind) wrote :

Hi, do you still have this issue in Gutsy or Hardy ?

Changed in sun-java5:
status: New → Incomplete
Revision history for this message
arthomps (arthomps) wrote : Re: [Bug 162232] Re: libawt.so unsatisfied link in java5

Hello Matti,

I upgraded from gutsy to hardy literally last weekend. so i can't test
there easily. I can only say that about 3 weeks ago - it didn't work in
gutsy.

That said, the issue definitely still exists in hardy.

debian seems to have similar issues.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446827

On Wed, Mar 26, 2008 at 6:18 PM, Matti Lindell <email address hidden> wrote:

> Hi, do you still have this issue in Gutsy or Hardy ?
>
> ** Changed in: sun-java5 (Ubuntu)
> Status: New => Incomplete
>
> --
> libawt.so unsatisfied link in java5
> https://bugs.launchpad.net/bugs/162232
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Andrew R. Thompson
Currently in N.Y *not* Consulting

Revision history for this message
Matti Lindell (mlind) wrote :

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6515362 suggest the real underlying error message is suppressed and you're left with cryptic "Can't load IA 32-bit .so on a IA 32-bit platform". It's not related to problem, but might give a better hint about the root cause. Message issue is fixed in 1.5 jre in Hardy.

Are you setting custom LD_LIBRARY_PATH by a chance ?

Revision history for this message
arthomps (arthomps) wrote :

i apologize, the error is different in hardy. i am not settings
LD_LIBRARY_PATH unless there's some automatic configuration that I'm
not aware of. the error is still related to libawt.so, but there's no
reference to IA32.

java.lang.UnsatisfiedLinkError:
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/libawt.so:
libmlib_image.so: cannot open shared object file: No such file or
directory

andyt@andyt-laptop:/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386$ ldd -d
libawt.so
undefined symbol: j2d_mlib_ImageCreate, version VER_1.1 (./libawt.so)
undefined symbol: j2d_mlib_ImageCreateStruct, version VER_1.1
(./libawt.so)
undefined symbol: j2d_mlib_ImageConvMxN, version VER_1.1
(./libawt.so)
undefined symbol: j2d_mlib_ImageAffine, version VER_1.1 (./libawt.so)
undefined symbol: j2d_mlib_ImageLookUp, version VER_1.1 (./libawt.so)
undefined symbol: j2d_mlib_ImageConvKernelConvert, version VER_1.1
(./libawt.so)
        linux-gate.so.1 => (0xb7f5f000)
        libmlib_image.so => not found
        libjvm.so => not found
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e9e000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e9a000)
        libjava.so => not found
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d4b000)
        /lib/ld-linux.so.2 (0xb7f60000)

On Wed, Mar 26, 2008 at 9:17 PM, Matti Lindell <email address hidden> wrote:

> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6515362 suggest the
> real underlying error message is suppressed and you're left with cryptic
> "Can't load IA 32-bit .so on a IA 32-bit platform". It's not related to
> problem, but might give a better hint about the root cause. Message
> issue is fixed in 1.5 jre in Hardy.
>
> Are you setting custom LD_LIBRARY_PATH by a chance ?
>
> --
> libawt.so unsatisfied link in java5
> https://bugs.launchpad.net/bugs/162232
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Andrew R. Thompson
Currently in N.Y *not* Consulting

Changed in sun-java5:
status: Unknown → New
Revision history for this message
Dmitry Pankratov (dremon) wrote :

I have the same issue, solved with the following command:
sudo ln -s /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386/libmlib_image.so /usr/lib
sudo ldconfig

Under AMD64 system this can be solved by creating the /etc/ld.so.conf.d/java.conf with the following contents:
/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386

Under x86 this doesn't work so the "ln -s" trick is needed.

Revision history for this message
annrandr (ann-randrinc) wrote :

We love you dremon!! thanks for the solution.

Revision history for this message
Joan Fisbein (joan-fisbein) wrote :

Thank you dremon, it worked for me!!! (after restarting the computer)

Revision history for this message
Javier Arturo Rodriguez (codehead) wrote :

It looks like this bug is still present in Debian 5.0. I ran into it last night and applied dmitry's fix successfully -- no need to reboot. Thank you!

Changed in sun-java5 (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.