A hack I used to compile openoffice with linux-sun-jdk1.4.2 on
FreeBSD 5.3
NAKATA Maho
chat95 at mac.com
Fri Jan 14 20:01:43 PST 2005
In Message-ID: <200412011204.15536.mjpelletier at mjpelletier.com>
"Michael J. Pelletier" <mjpelletier at mjpelletier.com> wrote:
Hello,
> /usr/local/linux-sun-jdk1.4.2/include/jni.h:27:20: jni_md.h: No such file or
> directory
I found solution.. patch is attached.
however I recieved an error at setup2 project. like
setenv CLASSPATH /work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/bin/unoil.jar:/work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/bin/java_uno.jar:/work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/bin/ridl.jar:/work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/bin/sandbox.jar:/work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/bin/jurt.jar:/work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/lib:/usr/local/linux-sun-jdk1.4.2/jre/lib/rt.jar:. && setenv LD_LIBRARY_PATH .:/work/ports/editors/openoffice-1.1/work/solenv/unxfbsd.pro/lib:/usr/local/linux-sun-jdk1.4.2/jre/lib/i386:/usr/local/linux-sun-jdk1.4.2/jre/lib/i386/client:/usr/local/linux-sun-jdk1.4.2/jre/lib/i386/native_threads:../lib:/work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/lib:: && \
regcomp -br ../unxfbsd.pro/bin/regcomp.rdb \
-register \
-r ../unxfbsd.pro/bin/setup_services.tmp \
-l com.sun.star.loader.Java2 \
-env:UNO_JAVA_COMPPATH=file:///work/ports/editors/openoffice-1.1/work/solver/645/unxfbsd.pro/bin \
-c vnd.sun.star.expand:\$UNO_JAVA_COMPPATH/java_uno_accessbridge.jarregister component 'vnd.sun.star.expand:$UNO_JAVA_COMPPATH/java_uno_accessbridge.jar' in registry '../unxfbsd.pro/bin/setup_services.tmp' failed!
error (CannotRegisterImplementationException): Could not create Java implementation loader
dmake: Error code 1, while making '../unxfbsd.pro/bin/setup_services.rdb'
---* TG_SLO.MK *---
ERROR: Error 65280 occurred while making /work/ports/editors/openoffice-1.1/work/setup2/utildmake: Error code 1, while making 'instsetoo/prj/build_all'
*** Error code 255
Stop in /work/ports/editors/openoffice-1.1.
---* TG_SLO.MK *---
Could you please confirm it?
patch---------------
Compile OOo with Linux's JDK
I'm not sure it can safely build OOo with Linux's Java,
so I haven't raized an IZ yet.
Index: config_office/set_soenv.in
===================================================================
RCS file: /cvs/tools/config_office/set_soenv.in,v
retrieving revision 1.10.6.10
diff -u -r1.10.6.10 set_soenv.in
--- config_office/set_soenv.in 27 Aug 2004 10:03:54 -0000 1.10.6.10
+++ config_office/set_soenv.in 13 Jan 2005 13:47:25 -0000
@@ -1258,6 +1258,7 @@
elsif ($platform eq "$FreeBSD")
{
$SOLARINC .=$I.'$JAVA_HOME'.$INCLUDE.$ds."freebsd";
+ $SOLARINC .=$I.'$JAVA_HOME'.$INCLUDE.$ds."linux";
$SOLARINC .=$I.'$JAVA_HOME'.$INCLUDE.$ds."bsd";
}
elsif ($platform eq "$NetBSD")
--- /dev/null Fri Jan 14 23:11:00 2005
+++ berkeleydb/db-4.2.52.NC.patch Fri Jan 14 23:02:50 2005
@@ -0,0 +1,19 @@
+*** misc/db-4.2.52.NC/dist/configure Thu Dec 4 06:10:02 2003
+--- misc/build/db-4.2.52.NC/dist/configure Fri Jan 14 23:02:36 2005
+***************
+*** 20875,20881 ****
+ case "$host_os" in
+ aix*) _JNI_INC_SUBDIRS="aix";;
+ bsdi*) _JNI_INC_SUBDIRS="bsdos";;
+! freebsd*) _JNI_INC_SUBDIRS="freebsd";;
+ hp*) _JNI_INC_SUBDIRS="hp-ux";;
+ linux*) _JNI_INC_SUBDIRS="linux genunix";;
+ osf*) _JNI_INC_SUBDIRS="alpha";;
+--- 20875,20881 ----
+ case "$host_os" in
+ aix*) _JNI_INC_SUBDIRS="aix";;
+ bsdi*) _JNI_INC_SUBDIRS="bsdos";;
+! freebsd*) _JNI_INC_SUBDIRS="freebsd linux";;
+ hp*) _JNI_INC_SUBDIRS="hp-ux";;
+ linux*) _JNI_INC_SUBDIRS="linux genunix";;
+ osf*) _JNI_INC_SUBDIRS="alpha";;
Index: berkeleydb/makefile.mk
===================================================================
RCS file: /cvs/external/berkeleydb/makefile.mk,v
retrieving revision 1.13.12.2
diff -u -r1.13.12.2 makefile.mk
--- berkeleydb/makefile.mk 28 Oct 2004 11:54:48 -0000 1.13.12.2
+++ berkeleydb/makefile.mk 14 Jan 2005 14:13:12 -0000
@@ -65,6 +65,8 @@
PRJNAME=so_berkeleydb
TARGET=so_berkeleydb
+PATCH_FILE_NAME=db-4.2.52.NC.patch
+
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
-- NAKATA, Maho
More information about the freebsd-openoffice
mailing list