Re: [dev] Could not open include file jni.h. @ OOo 3.0 M28 @ OpenSolaris svn 95

2008-08-20 Thread Ulf Wendel

tora - Takamichi Akiyama schrieb:

Ulf Wendel wrote:
  after solving my little ant issue I ran into could not open jni.h.

How about use of --with-jdk-home=/usr/j2se or like that?

find /usr/j* -name jni.h
/usr/j2se/include/jni.h
/usr/jdk/instances/jdk1.5.0/include/jni.h
/usr/jdk/instances/jdk1.6.0/include/jni.h


I do use --with-jdk-home =  ...

CC=cc CXX=CC ./configure CPPFLAGS=-I/usr/jdk/latest/include/ 
-I/usr/jdk/latest/include/solaris --disable-build-mozilla 
--disable-mediawiki --with-use-shell=bash 
--with-jdk-home=/usr/jdk/latest/ --with-system-curl --without-java 
--with-epm=internal --with-system-libxml  --with-system-python 
--with-ant-home=/usr/bin



... and both jni.h and jni_md.h (a follow-up requirement) are available 
in /usr/jdk/latest/. /usr/jdk/latest is a softlink pointing to the 
latest installed version of the JDK:


-bash-3.2$ ls -la /usr/jdk/latest/include/jni.h
-rw-r--r--   1 root bin67831 Aug 15 20:31 
/usr/jdk/latest/include/jni.h

-bash-3.2$ ls -la /usr/jdk/latest/include/solaris/jni_md.h
-rw-r--r--   1 root bin  453 Aug 15 20:31 
/usr/jdk/latest/include/solaris/jni_md.h


Its OK that I might have to set additional CPPFLAGS. I'd be fine if it 
would work. Using the OpenSolaris Java packages, which is my intention, 
I'll find jni.h in:


-bash-3.2$ pfexec pkg search -r jni.h
INDEX  ACTIONVALUE PACKAGE
[...]
basename   file  usr/jdk/instances/jdk1.6.0/include/jni.h 
pkg:/[EMAIL PROTECTED]


-bash-3.2$ locate jni.h
/export/home/nixnutz/oo.org-m28/moz/unxsoli4.pro/inc/java/jni.h
/export/home/nixnutz/oo.org-m28/solver/300/unxsoli4.pro/inc/mozilla/java/jni.h
/usr/include/firefox/java/jni.h
/usr/jdk/instances/jdk1.6.0/include/jni.h

Christian asked me earier why I am using --with-jdk-home together with 
--without-java. Several modules look out for jni.h. I was hoping that 
--without-java means no need for a JDK but that seems to be a false 
assumption.


Only way out of the issue which I found so far is copying the required 
JDK include header into the module directories, but of course that's no 
solution.


Ulf

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Could not open include file jni.h. @ OOo 3.0 M28 @ OpenSolaris svn 95

2008-08-19 Thread Ulf Wendel

Hi,

after solving my little ant issue I ran into could not open jni.h. 
Google told me that I should set additional include directories through 
CPPFLAGS. That did not work out :(. The compiler call show 
-INO_JAVA_HOME/include/solaris. Is that because of --without-java, do I 
have to set NO_JAVA_HOME?



CC=cc CXX=CC ./configure CPPFLAGS=-I/usr/jdk/latest/include/ 
-I/usr/jdk/latest/include/solaris --disable-build-mozilla 
--disable-mediawiki --with-use-shell=bash 
--with-jdk-home=/usr/jdk/latest/ --with-system-curl --without-java 
--with-epm=internal --with-system-libxml  --with-system-python 
--with-ant-home=/usr/bin


[...]

Making: ../unxsoli4.pro/slo/classpath.obj
CC   -c -temp=/tmp -xarch=generic -xO3 -xspace   -I. 
-I../unxsoli4.pro/inc/jvmaccess -I../inc -I../inc/pch -I../inc 
-I../unx/inc -I../unxsoli4.pro/inc -I. 
-I/export/home/nixnutz/oo.org-m28/solver/300/unxsoli4.pro/inc/stl 
-I/export/home/nixnutz/oo.org-m28/solver/300/unxsoli4.pro/inc/external 
-I/export/home/nixnutz/oo.org-m28/solver/300/unxsoli4.pro/inc 
-I/export/home/nixnutz/oo.org-m28/solenv/unxsoli4/inc 
-I/export/home/nixnutz/oo.org-m28/solenv/inc 
-I/export/home/nixnutz/oo.org-m28/res 
-I/export/home/nixnutz/oo.org-m28/solver/300/unxsoli4.pro/inc/stl 
-I/include -I/export/home/nixnutz/oo.org-m28/solenv/inc/Xp31 
-INO_JAVA_HOME/include -INO_JAVA_HOME/include/solaris 
-INO_JAVA_HOME/include/native_threads/include 
-I/export/home/nixnutz/oo.org-m28/solver/300/unxsoli4.pro/inc/offuh -I. 
-I../res -I. -features=no%altspell -library=no%Cstd  +w2 
-erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn 
  -KPIC -mt -DSOLARIS -DUNX -DVCL -DC52 -DC52 -DINTEL -DCVER=C52 
-D_PTHREADS -DSYSV -DSUN -DSUN4 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 
-DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=sunpro5 -DSUPD=300 
-DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI 
-DSOLAR_JAVA   -DSHAREDLIB -D_DLL_-DEXCEPTIONS_ON  -o 
../unxsoli4.pro/slo/classpath.o 
/export/home/nixnutz/oo.org-m28/jvmaccess/source/classpath.cxx
../inc/jvmaccess/classpath.hxx, line 38: Error: Could not open include 
file jni.h.
../inc/jvmaccess/classpath.hxx, line 82: Error: jobjectArray is not 
defined.
../inc/jvmaccess/classpath.hxx, line 83: Error: inline is not 
allowed here.
../inc/jvmaccess/classpath.hxx, line 83: Error: , expected instead 
of (.
../inc/jvmaccess/classpath.hxx, line 119: Error: Use ; to terminate 
declarations.

../inc/jvmaccess/classpath.hxx, line 119: Error: jclass is not defined.
../inc/jvmaccess/classpath.hxx, line 119: Error: inline is not 
allowed here.
../inc/jvmaccess/classpath.hxx, line 119: Error: , expected instead 
of (.
../inc/jvmaccess/classpath.hxx, line 130: Error: Use ; to terminate 
declarations.
/export/home/nixnutz/oo.org-m28/jvmaccess/source/classpath.cxx, line 
52: Error: Could not open include file jni.h.


Thanks!
Ulf

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Could not open include file jni.h. @ OOo 3.0 M28 @ OpenSolaris svn 95

2008-08-19 Thread Christian Lohmaier
Hi *,

On Tue, Aug 19, 2008 at 10:05 PM, tora - Takamichi Akiyama
[EMAIL PROTECTED] wrote:
 [...]
 I recommend JDK 1.4.1_03 since it has been absolutely used
 by the release engineer of OpenOffice.org for years.

No, use JDK 1.5, the baseline will be raised shortly. 1.4 will no longer work.

ciao
Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Could not open include file jni.h. @ OOo 3.0 M28 @ OpenSolaris svn 95

2008-08-19 Thread tora - Takamichi Akiyama

Christian Lohmaier wrote:

No, use JDK 1.5, the baseline will be raised shortly. 1.4 will no longer work.


Thank you for the invaluable information!
I will follow that.

Tora

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]