You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Luc Bastiaenssen <lu...@ua.ac.be> on 2009/04/06 15:25:58 UTC

JCC compile error PyLucene 2.4.1-1 on solaris 10

Hi Andi,


JCC compile eror with last revision 762325 on solaris 10 x86.
It worked fine with PyLucene 2.4.0

Command used: export CC=CC; export JCC_JDK=/usr/java; /usr/bin/python2.5 
setup.py build

CC -DNDEBUG -O -Kpic -I/usr/java/include -I/usr/java/include/solaris 
-I_jcc -Ijcc/sources -I/usr/include/python2.5 -c 
jcc/sources/functions.cpp -o 
build/temp.solaris-2.10-i86pc-2.5/jcc/sources/functions.o -DPYTHON 
-features=iddollar -erroff=badargtypel2w,wbadinitl,wvarhidemem
"jcc/sources/functions.cpp", line 154: Error: Operand expected instead 
of ")".
"jcc/sources/functions.cpp", line 500: Error: Operand expected instead 
of ")".
2 Error(s) detected.


Regards

Luc
--


Re: JCC compile error PyLucene 2.4.1-1 on solaris 10

Posted by Andi Vajda <va...@apache.org>.
On Mon, 6 Apr 2009, Luc Bastiaenssen wrote:

> JCC compile eror with last revision 762325 on solaris 10 x86.
> It worked fine with PyLucene 2.4.0
>
> Command used: export CC=CC; export JCC_JDK=/usr/java; /usr/bin/python2.5 
> setup.py build
>
> CC -DNDEBUG -O -Kpic -I/usr/java/include -I/usr/java/include/solaris -I_jcc 
> -Ijcc/sources -I/usr/include/python2.5 -c jcc/sources/functions.cpp -o 
> build/temp.solaris-2.10-i86pc-2.5/jcc/sources/functions.o -DPYTHON 
> -features=iddollar -erroff=badargtypel2w,wbadinitl,wvarhidemem
> "jcc/sources/functions.cpp", line 154: Error: Operand expected instead of 
> ")".
> "jcc/sources/functions.cpp", line 500: Error: Operand expected instead of 
> ")".
> 2 Error(s) detected.

It looks like the Solaris compiler doesn't handle va_arg() with function 
pointer types. Fixed by hiding it in a typedef.
The fix is available in both svn trunk and on the pylucene_2_4 branch.

Thanks !

Andi..