Your problem stems from Sun's jni.h picking up GCC's jni_md.h instead
of the Sun version of the file.

You have a few options. Try them individually or in combination:

1. Add this flag to your platform's CLFAGS in Makefile.common:

  -I/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update12/include/linux

as in:

  Default_CFLAGS := -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -O -fPIC

OR

2. Add the following flag to your platform's CFLAGS in Makefile.common:

  -DJNI_TYPES_ALREADY_DEFINED_IN_JNI_MD_H

OR 

3. Rename these files so they are not picked up by gcc:

  /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include/jni_md.h
  /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include/jni.h

OR 

4. Hack /usr/lib64/jvm/java-1.5.0-sun-1.5.0_update12/include/jni.h
and change:

 #include "jni_md.h"

to

 #include "/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update12/include/linux/jni_md.h"

--- Marc Siegel <[EMAIL PROTECTED]> wrote:
> /usr/lib64/jvm/java-1.5.0-sun-1.5.0_update12/include/linux/jni_md.h
> /usr/lib64/jvm/java-1.5.0-sun-1.5.0_update12/include/jni.h
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include/jni_md.h
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include/jni.h
> 
> On Dec 19 2007, 6:42 pm, Joe Wilson <[EMAIL PROTECTED]> wrote:
> > Can you post the output of:
> >
> >   find /usr/lib64/ -name 'jni*.h' -print
> >
> > --- Marc Siegel <[EMAIL PROTECTED]> wrote:
> >
> > > gcc -I/usr/lib64/jvm/java/include -O -fPIC -Ibuild/sqlite-3.5.4-
> > > Default-x86_64 -Ibuild -c -O -o build/Default-x86_64/NativeDB.o \
> > >                 src/org/sqlite/NativeDB.c
> > > In file included from build/NativeDB.h:2,
> > >                  from src/org/sqlite/NativeDB.c:5:
> > > /usr/lib64/jvm/java/include/jni.h:39: error: conflicting types for
> > > 'jboolean'
> > > /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include/jni_md.h:84: error:
> > > previous declaration of 'jboolean' was here
> > > make: *** [native] Error 1



      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to