lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: JCC compile error on solaris - JArray.cpp
Date Tue, 10 Feb 2009 19:15:01 GMT

On Tue, 10 Feb 2009, Luc Bastiaenssen wrote:

> I can't compile JCC anymore on Solaris since the introduction of JCC 2.x
>
> Platform: Solaris 10 on Intel with Sun Studio C++ 12, Java 1.6 and Python 
> 2.5.
>
> Command: CC=CC /usr/bin/python2.5 setup.py build
>
> running build
> running build_py
> copying jcc/config.py -> build/lib.solaris-2.10-i86pc-2.5/jcc
> running build_ext
> building 'jcc._jcc' extension
> /usr/lib/python2.5/pycc -DNDEBUG -I/usr/jdk/instances/jdk1.6.0/include 
> -I/usr/jdk/instances/jdk1.6.0/include/solaris -I_jcc -Ijcc/sources 
> -I/usr/include/python2.5 -c jcc/sources/JArray.cpp -o 
> build/temp.solaris-2.10-i86pc-2.5/jcc/sources/JArray.o -DPYTHON 
> -features=iddollar -erroff=badargtypel2w,wbadinitl,wvarhidemem
> "jcc/sources/JArray.cpp", line 1044: Warning: String literal converted to 
> char* in assignment.
> "jcc/sources/JArray.cpp", line 165: Error: Could not find a match for 
> _format<U>(_t_jarray<short>*, extern "C" _object*(_object*)) needed in 
> repr<_t_jarray<short>>(_t_jarray<short>*).
> "jcc/sources/JArray.cpp", line 596:     Where: While instantiating 
> "repr<_t_jarray<short>>(_t_jarray<short>*)".
> "jcc/sources/JArray.cpp", line 596:     Where: Instantiated from non-template 
> code.
> 1 Error(s) and 1 Warning(s) detected.
> error: command '/usr/lib/python2.5/pycc' failed with exit status 1

The Solaris compiler needed an extra cast.
Fixed in rev 743062.

Andi..

Mime
View raw message