Skip to main content

Re: java.lang.UnsatisfiedLinkError when trying to start Browser Demo on Lin

1 reply [Last post]
Anonymous

> Frederik,
>
> I guess you are using Gnome2.6, right ?
> > cat /usr/share/gnome-about/gnome-version.xml | grep minor
>
> For the liblinc.so link error, this is a known issue with Gnome2.6, but I didn't mention it in the 0.8.4 distribution.
>
> The problem is, libjdic.so depends on some Gnome libraries including liblinc.so for Gnome2.3-: to build libjdic.so requires linking to liblinc.so. But I checked that for Gnome2.6, the Gnome library dependencies change somehow. Seems that liblinc.so is not provided and not required to build libjdic.so.
>
> For the current JDIC 0.8.4 binary release, it's built with Gnome2.3, which linked to liblinc.so. Now you are using Gnome2.6, that's the cause of the problem.
>
> The simple solution for Gnome2.6, is to remove -I$(USR_INCLUDE_DIR)/linc-1.0 and -llinc options in file
> https://jdic.dev.java.net/source/browse/jdic/src/jdic/src/unix/native/jn...
> and rebuilt the libjdic.so library.
>
> I've sent you an updated libjdic.so file built for Gnome2.6 in another email. Hope it works.
>
> I think that's also the reason the demo doesn't work.
>
> -George Zhang

Hi Georg,

thanks for your quick response. I'm indeed using Gnome2.6!

I tried to replace the libjdic.so with the one you attachment me in the
private message. Additionally, I also compiled my own version using
CVS.

I've tested this with both versions, following error occurs:
+++ Ctrace: ./mozembed-linux-gtk2: relocation error: ./mozembed-linux-gtk2: undefined symbol: _Z15CopyUCS2toASCIIRK9nsAStringR10nsACString

If I don't set the LD_LIBRARY_PATH to point to the demo directory, I get
this error:
Can't execute native browser. ErrMsg is null

So, my feeling is that the Gnome2.6 related problem is solved. But now
its an Mozilla problem.

I'm using Gentoo Linux, Mozilla 1.6 found in /usr/lib/mozilla, which uses
the gtk2 extension with all the nifty font stuff.

I tried to compile my own mozembed-linux-gtk2. In the /unix/native/mozilla
directory I just fired "make":
Makefile:42: /config/autoconf.mk: Datei oder Verzeichnis nicht gefunden
Makefile:104: /config/config.mk: Datei oder Verzeichnis nicht gefunden
Makefile:128: /config/rules.mk: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um ?/config/rules.mk? zu erstellen. Schluss.

In English is a "File or Directory not found" and at the end "No rules to
create rules.mk".

Any ideas?

Best regards,
Frederik

---------------------------------------------------------------------
To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
For additional commands, e-mail: jdic-help@jdic.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
georgez
Offline
Joined: 2003-08-19

Yes, that's a Mozilla problem. On the one hand, have you followed exactly the installation instructions ? :
https://jdic.dev.java.net/documentation/README.html#Installation

If it still doesn't work. The released mozembed-linux-gtk2 binary(built with Mozilla 1.4.1) may have different built configuration with your Mozilla 1.6.

Please try to compile the source as below. The built mozembed-linux-gtk2 binary should definitely work with the built Mozilla binary.
>
> So, my feeling is that the Gnome2.6 related problem
> is solved. But now
> its an Mozilla problem.
>
> I'm using Gentoo Linux, Mozilla 1.6 found in
> /usr/lib/mozilla, which uses
> the gtk2 extension with all the nifty font stuff.
>
> I tried to compile my own mozembed-linux-gtk2. In the
> /unix/native/mozilla
> directory I just fired "make":
> Makefile:42: /config/autoconf.mk: Datei oder
> Verzeichnis nicht gefunden
> Makefile:104: /config/config.mk: Datei oder
> Verzeichnis nicht gefunden
> Makefile:128: /config/rules.mk: Datei oder
> Verzeichnis nicht gefunden
> make: *** Keine Regel, um �/config/rules.mk� zu
> erstellen. Schluss.

This is because you didn't set MOZILLA_SRC_HOME to a built Mozilla binary from source according the Build the Source instructions at:
https://jdic.dev.java.net/documentation/README.html#Build%20the%20Source

Please download a Mozilla source, built it and setup the environment variable MOZILLA_SRC_HOME to the top directory of Mozilla source code.

-George Zhang

>
>
> ------------------------------------------------------
> ---------------
> To unsubscribe, e-mail:
> jdic-unsubscribe@jdic.dev.java.net
> For additional commands, e-mail:
> jdic-help@jdic.dev.java.net