[Pkg-db-devel] Bug#430043: Bug#430043: db4.5: FTBFS with gcc-4.2: Cannot find jni.h

Daniel Schepler schepler at math.unipd.it
Fri Jun 22 00:29:26 UTC 2007


On Thursday 21 June 2007 19:10:02 pm you wrote:
> On Thu, Jun 21, 2007 at 06:26:51PM -0400, Daniel Schepler wrote:
> > ...
> > /bin/sh ./libtool --mode=compile gcc -c -I. -I../dist/..
> > -I/usr/include/tcl8.4 -D_GNU_SOURCE -D_REENTRANT -Wall -g -O2 
> > -fno-strict-aliasing ../dist/../libdb_java/db_java_wrap.c gcc -c -I.
> > -I../dist/.. -I/usr/include/tcl8.4 -D_GNU_SOURCE -D_REENTRANT -Wall -g
> > -O2 -fno-strict-aliasing ../dist/../libdb_java/db_java_wrap.c  -fPIC
> > -DPIC -o .libs/db_java_wrap.o
> > ../dist/../libdb_java/db_java_wrap.c:123:17: error: jni.h: No such file
> > or directory ../dist/../libdb_java/db_java_wrap.c:147: error: expected
> > ')' before '*' token ../dist/../libdb_java/db_java_wrap.c:196: error:
> > expected ')' before '*' token ...
> > ../dist/../libdb_java/db_java_wrap.c:9582: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before 'void' make[1]: *** [db_java_wrap.lo]
> > Error 1
> > make[1]: Leaving directory `/tmp/buildd/db4.5-4.5.20/obj'
> > make: *** [build] Error 2
> >
> > All the other db4.* packages use -I/usr/lib/jvm/java-gcj/include, and
> > they compile fine in the same chroot.
>
> Wanna test and send a patch?

OK, with the attached patch, the package builds and the testsuite succeeds
(except for the messages about
FAIL: Problem reported killing process ####: child process exited abnormally
and
FAIL:23:47:02 (00:00:00) r: mutex: unknown command
which also appear building with gcc-4.1).
-- 
Daniel Schepler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db4.5-gcc4.2.diff
Type: text/x-diff
Size: 551 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-db-devel/attachments/20070621/2cee703c/attachment.diff 


More information about the Pkg-db-devel mailing list