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..