hi,

On Sun, Mar 4, 2012 at 5:16 AM, Thorsten Glaser <[email protected]> wrote:
> I suspect a missing dependency. This used to work.
> I believe this affects gcj architectures.

I don't have m68k machine to check this, so I 've read build log...

jni.h is included in packages like:

apt-file search tells me about packages which have jni.h:
gcj-4.4-jdk: /usr/lib/gcc/x86_64-linux-gnu/4.4/include/jni.h
gcj-4.4-jdk: /usr/lib/jvm/java-1.5.0-gcj-4.4/include/jni.h
gcj-4.6-jdk: /usr/lib/gcc/x86_64-linux-gnu/4.6/include/jni.h
gcj-4.6-jdk: /usr/lib/jvm/java-1.5.0-gcj-4.6/include/jni.h

and, build log says its dependency is satisfied by default-jdk:

> The following NEW packages will be installed:
>   autoconf autotools-dev chrpath cpp-4.4 default-jdk default-jre
>   default-jre-headless defoma ecj ecj-gcj fastjar fontconfig fontconfig-config
>   gcc-4.4 gcj-4.4-base gcj-4.4-jdk gcj-4.4-jre gcj-4.4-jre-headless
>   gcj-4.4-jre-lib gcj-jdk gcj-jre gcj-jre-headless java-common libantlr-java
>   libdirectfb-1.2-9 libecj-java libecj-java-gcj libexpat1 libfontconfig1
>   libfreetype6 libgcj-bc libgcj-common libgcj10 libgcj10-awt libgcj10-dev

I suspected that there are some gcj issues, so I've tried to build it with gcj
on amd64 box and succeed to build (generated include args are same).
Therefore gcj seems to make itself to resolve its include paths.

> gcc -I. -I./.. -I/usr/include/qdbm -I/tmp/buildd/qdbm-1.8.78/junkhome/include 
> -I/usr/local/include -I/
> usr/java/include -I/usr/java/include/linux -I/usr/java/Headers 
> -D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURC
> E=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 -D_POSIX_MAPPED_FILES=1 
> -D_POSIX_SYNCHRONIZED_IO=1 -DPIC=1 -D_
> THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG -Wall -fPIC -fsigned-char -O2  -c 
> jdepot.c
> In file included from jdepot.c:17:0:
> qdbm_Depot.h:2:17: fatal error: jni.h: No such file or directory

I guess that compiling jdepot.c will be in success when this statement
have another -I.
(Although these listed should be sufficient:
/usr/java/include
/usr/java/include/linux
/usr/java/Headers)

Could you check these, whether it succeed or not by adding
-I/usr/lib/jvm/java-1.5.0-gcj-4.4/include,
or why gcc can't find gcj's header files (only?) on m68k...?

regards,
-- 
KURASHIKI Satoru



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to