[pylucene-dev] PyLucene 2.1 on Debian Etch

Andi Vajda vajda at osafoundation.org
Mon Mar 5 09:04:44 PST 2007


On Mon, 5 Mar 2007, Jarek Zgoda wrote:

> Jarek Zgoda napisa?(a):
>
>> I tried to build PyLucene 2.1 on Debian Etch, but I ended with dynamically 
>> linked binary, as there's no libgcj.la in this distribution and the version 
>> of GCJ is not listed as supported. Has anyone any success with this version 
>> on Etch?
>
> Well, at least I got some success. I was able to compile statically linked 
> _PyLucene.so using my own-baked gcc-4.2.0 following (mostly) the instructions 
> found Andi Vajda's recipe for Ubuntu64 
> (http://lists.osafoundation.org/pipermail/pylucene-dev/2006-November/001404.html) 
> with some additions. Building gcj required manual intervention in Makefile to 
> disable checks for native libraries (Cairo, GTK et al). This resulted in 20MB 
> binary that was unable to perform tests due to lacking librt support. After 
> intervention to PyLucene's Makefile and adding "-lrt" to the LDFLAGS the 
> error vanished. The library still crashes when performing tests:
>
>> Ran 3 tests in 0.001s
>> 
>> OK
>> WARNING: Error loading security provider gnu.javax.crypto.jce.GnuCrypto: 
>> java.lang.ClassNotFoundException: gnu.javax.crypto.jce.GnuCrypto
>> WARNING: Error loading security provider gnu.javax.crypto.jce.GnuSasl: 
>> java.lang.ClassNotFoundException: gnu.javax.crypto.jce.GnuSasl
>> WARNING: Error loading security provider gnu.javax.net.ssl.provider.Jessie: 
>> java.lang.ClassNotFoundException: gnu.javax.net.ssl.provider.Jessie
>> WARNING: Error loading security provider 
>> gnu.javax.security.auth.callback.GnuCallbacks: 
>> java.lang.ClassNotFoundException: 
>> gnu.javax.security.auth.callback.GnuCallbacks
>> xargs: /usr/bin/python: exited on signal 6

At least, it tells you which are the classes it wants, that's progress. You 
can see the list of such classes that had to be hardcoded in in PyLucene's 
java.cpp file under the #ifdef GCJ_STATIC sections.

Note that under gcj 4.x we've not been successful at building such a 
statically linked _PyLucene.so yet. If you get it to work (and "make test" to 
pass), let us know what you did.

Thanks !

Andi..



More information about the pylucene-dev mailing list