pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

openoffice3 build problem with java



Hi,

I'm trying to build openoffice with java, but it fails like this
after 45 minutes of building:

---------------------------------------------------
making .dpslo
Running processes: 0
deliver -- version: 1.130
Module 'regexp' delivered successfully. 3 files copied, 1 files unchanged

3 module(s): 
        jurt
        jvmaccess
        jvmfwk
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making 
/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/jvmfwk/source
ERROR: error 65280 occurred while making 
/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/jurt/source/pipe
ERROR: error 65280 occurred while making 
/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/jvmaccess/source

Attention: if you build and deliver the above module(s) you may prolongue your 
the build issuing command "build --from jurt jvmaccess jvmfwk"

rmdir /tmp/11199
*** Error code 1
---------------------------------------------------

Thats with the native jdk15 from wip (with some modifications from me).

I found the real errror when I looked further up in the log:
---------------------------------------------------
Making: ../unxbsdi3.pro/slo/framework.obj
c++  -fmessage-length=0 -c -O1   -DSYSTEM_LIBXML -I/usr/pkg/include/libxml2   
-I.  -I../unxbsdi3.pro/inc -I../inc -I../inc/pch -I../inc -I../unx/inc 
-I../unxbsdi3.pro/inc -I. 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/stl
 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/external
 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc
 -I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solenv/unxbsdi3/inc 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solenv/inc 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/res 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/stl
 -I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solenv/inc/Xp31 
-I/usr/pkg/java/jdk-1.5.0/include -I/usr/pkg/java/jdk-1.5.0/include/netbsd 
-I/usr/pkg/java/jdk-1.5.0/include/native_threads/include -I/usr/X11R7/include 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/offuh
 -I. -I../res -I. -pipe  -fvisibility-inlines-hidden  -Wno-ctor-dtor-privacy   
-fpic -DNETBSD -DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -DX86 -pthread 
-D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450 
-DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 
-DGXX_INCLUDE_PATH=/usr/include/g++ -DSUPD=300 -DPRODUCT -DNDEBUG 
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA   -DSHAREDLIB 
-D_DLL_   -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON  -o 
../unxbsdi3.pro/slo/framework.o 
/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/jvmfwk/source/framework.cxx
In file included from 
/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/jvmfwk/source/framework.cxx:38:
../inc/jvmfwk/framework.h:39:17: error: jni.h: No such file or directory
../inc/jvmfwk/framework.h:552: error: 'JavaVMOption' was not declared in this 
scope
../inc/jvmfwk/framework.h:552: error: 'arOptions' was not declared in this scope
../inc/jvmfwk/framework.h:553: error: expected primary-expression before 'nSize'
../inc/jvmfwk/framework.h:553: error: 'JavaVM' was not declared in this scope
../inc/jvmfwk/framework.h:553: error: 'ppVM' was not declared in this scope
../inc/jvmfwk/framework.h:554: error: 'JNIEnv' was not declared in this scope
../inc/jvmfwk/framework.h:554: error: 'ppEnv' was not declared in this scope
../inc/jvmfwk/framework.h:554: error: initializer expression list treated as 
compound expression
../inc/jvmfwk/vendorplugin.h:237: error: expected ',' or '...' before '*' token

---------------------------------------------------

/usr/pkg/java/jdk-1.5.0/include/jni.h does exists and so the 
-I/usr/pkg/java/jdk-1.5.0/include
should work, maybe some pkgsrc framework which removes that option from the 
compiller.
But the .work.log still shows -I/usr/pkg/java/jdk-1.5.0/include

---------------------------------------------------
[*] /home/source/pkgsrc/misc/openoffice3/work.i386/.wrapper/bin/c++ 
/home/source/pkgsrc/misc/openoffice3/work.i386/.wrapper/bin/c++ 
-fmessage-length=0 -c -O1 -DSYSTEM_LIBXML -I/usr/pkg/include/libxml2 -I. 
-I../unxbsdi3.pro/inc -I../inc -I../inc/pch -I../inc -I../unx/inc 
-I../unxbsdi3.pro/inc -I. 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/stl
 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/external
 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc
 -I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solenv/unxbsdi3/inc 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solenv/inc 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/res 
-I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/stl
 -I/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/solenv/inc/Xp31 
-I/usr/pkg/java/jdk-1.5.0/include -I/usr/pkg/java/jdk-1.5.0/include/netbsd 
-I/usr/pkg/java/jdk-1.5.0/include/native_threads/include -I/usr/X11R7/include 
-I/home/source/pkg 
src/misc/openoffice3/work.i386/OOO300_m9/solver/300/unxbsdi3.pro/inc/offuh -I. 
-I../res -I. -pipe -fvisibility-inlines-hidden -Wno-ctor-dtor-privacy -fpic 
-DNETBSD -DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -DX86 -pthread 
-D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450 
-DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 
-DGXX_INCLUDE_PATH=/usr/include/g++ -DSUPD=300 -DPRODUCT -DNDEBUG 
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSHAREDLIB 
-D_DLL_ -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o 
../unxbsdi3.pro/slo/framework.o 
/home/source/pkgsrc/misc/openoffice3/work.i386/OOO300_m9/jvmfwk/source/framework.cxx
---------------------------------------------------

Reinoud has a smiliar problem when he tried to build it with sun-15jre or 
sun-6jre:
/usr/pkg/java/sun-1.5/include/jni.h:27:20: error: jni_md.h: No such file or 
directory

Where jni_md.h for sun-15jre is placed in 
/usr/pkg/java/sun-1.5/include/linux/jni_md.h

And his compile options included:
 -I/usr/pkg/java/sun-1.5/include -I/usr/pkg/java/sun-1.5/include/netbsd
 -I/usr/pkg/java/sun-1.5/include/native_threads/include
So that can't work with the linux java on NetBSD.

Bernd



Home | Main Index | Thread Index | Old Index