[Open Office] JRE register fails when building 2.0.4 on Mandriva 2007 x86_64

Atle Nissestad atle.nissestad at norbit.no
Thu Oct 26 05:07:37 EDT 2006


Caolan McNamara wrote:
> This might be http://qa.openoffice.org/issues/show_bug.cgi?id=68665
> though I would have expected that to be in place in ooo-build.
>   
This is where I got the idea where to look for the error, and yes - this
patch is included in the ooo-build version I'm using, ooo-build-2-0-4
cvs 20061017.
> So my view is that for newer gcj's which provide a libjvm.so to emulate
> java's libjvm.so then they should be used at build-time by OOo through
> java-gcj-compat and OOo configured with...
> --with-jdk-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
> to point OOo to the java-esque hierarchy above that libjvm.so
>   
I'm using gcj 4.1.1. It does not have libjvm.so.
How are the library paths determined when compiling with
--with-java=gij, then ?
(JAVA_HOME is set to /usr inside the ooo build environment).
> I don't know what version of OOo you're building, but I *think* I
> upstreamed everything in this area into current upstream OOo head, so
> that with a gcj that has a separate libgcj and libjvm (and a gcj where
> was itself configured correctly to set java.home to where libjvm was
> installed) I'd expect it to work without pain.
>
>   
OOO_2_0_4 from http://www.go-ooo.org/packages/OOD680, and ooo-build
version as given above.

It seems there are some obstacles when building the openoffice
java-stuff in Mandriva 2007 64bit w/ GNU java:
* Using  --with-jdk-home=/usr/lib/jvm/java-gcj instead of
--with-java=gij i sa no-go, as /usr/lib/jvm/java-gcj/bin/javac points to
ecj, which breaks the build at some point (don't remember where).
* /usr/bin/java points to jamvm, which triggers the 'javaldx failed'
error no mather what I do, so I have to give the bootstrap parameter
UNO_JAVA_JFW_JREHOME=file:///usr/lib/jvm/java-gcj to the Jvmfwk, as that
points java to /usr/bin/gij
* libgjc.so is in /usr/lib64

Maybe I should switch distro ...

Atle



More information about the Openoffice mailing list