On Tue, 15 Jan 2008, mario alejandro wrote:

Ok, I do a normal python setup.py build and get this:

running build
running build_py
copying jcc/config.py -> build/lib.solaris-2.11-i86pc-2.4/jcc
running build_ext
building 'jcc._jcc' extension
gcc -fno-strict-aliasing -DNDEBUG -O -I/usr/include -I/opt/local/include/db4
-I/
opt/local/include -fPIC -I/usr/jdk/instances/jdk1.6.0/include
-I/usr/jdk/instanc
es/jdk1.6.0/include/solaris -I_jcc -Ijcc/sources
-I/opt/local/include/python2.4
-c jcc/sources/jcc.cpp -o build/temp.solaris-2.11-i86pc-2.4/jcc/sources/jcc.o
-D
PYTHON -features=iddollar -erroff=badargtypel2w,wbadinitl,wvarhidemem
cc1plus: error: unrecognized command line option "-features=iddollar"
error: command 'gcc' failed with exit status 1

That's because you didn't change the CFLAGS for 'sunos5' in setup.py to match what's needed for using gcc. (look and the 'linux2' entry for an example). The CFLAGS for 'sunos5' (Solaris) are currently set for using Sun Studio C++.

Andi..

ps: Please don't write to me directly but use [email protected]
    instead. That way, you may get the benefit of somebody else having
    solved the same problem were they to see your questions.
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to