[pylucene-dev] Re: using JCC

Andi Vajda vajda at osafoundation.org
Wed Feb 20 19:11:17 PST 2008


On Wed, 20 Feb 2008, Bill Janssen wrote:

>>> From the earlier stack trace you sent it seems that jdk 1.6's jni.h is
>> pulling a bogus array.h file. I'd be curious to know what that line of code
>> in jni.h looks like.
>
> Not sure what that line is.  /usr/java/jdk-1.6/include/jni.h doesn't seem to
> reference array.h:
>
> 3 matches for "include" in buffer: jni.h
>     21:#include <stdio.h>
>     22:#include <stdarg.h>
>     27:#include "jni_md.h"
>
> /usr/java/jdk-1.6/include/linux/jni_md.h doesn't #include anything.

The error you sent in says:

> > class __JArray* jarray=1B%G=C2=81=C3=A2=C2=80=C2=99=1B%@
> > /usr/java/jdk-1.6/include/jni.h:68: error:
=1B%G=C2=81=C3=A2=C2=80=C2=98=
> =1B%@jarray=1B%=20
> > G=C2=81=C3=A2=C2=80=C2=99=1B%@ has a previous declaration as =
> =1B%G=C2=81=C3=A2=C2=80=C2=98=1B%@typedef =20
> > class _jarray* jarray=1B%G=C2=81=C3=A2=C2=80=C2=99=1B%@
> > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/=20
> > gcj/array.h:60: error: conflicting declaration

So, line 68 in /usr/java/jdk-1.6/include/jni.h would be interesting.

Andi..


More information about the pylucene-dev mailing list