On Mon, 29 May 2006, Bill Janssen wrote:

Almost works, but there are a few 2.4-isms which crept into your code:

1.  There's no Py_RETURN_NONE, Py_RETURN_TRUE, or Py_RETURN_FALSE.  I
   added them to macros.h, and then had to add *that* to a number of
   other include files; perhaps there's a better way?

I added it to macros.h which then also needs to be included by converters.cpp. (added that too).

2.  There's no PyTuple_Pack (used in one place in java.cpp); switch to

   /*
   PyObject *args = PyTuple_Pack(2, name, str);
   */
   PyObject *args = PyTuple_New(2);
   PyTuple_SetItem(args, 0, name);
   PyTuple_SetItem(args, 1, str);

I made that code conditional.

3.  "ld" complains about "-lSystemStubs" on the link line.  Something in
   this Makefile macro needs re-consideration:

   ifeq ($(OS),Darwin)
   ifneq (,$(findstring 10.3,$(shell sw_vers -productVersion)))
   STUBS=
   else
   STUBS=-lSystemStubs
   endif

I don't have this problem and I'm on 10.4.6 as well. Maybe your Apple dev tools are old (this could also explain why you're unable to build gcc). Apple just released XCode 2.3 (almost a 1Gb download) I haven't tried it yet. If you have then maybe my dev tools are old :)

What does your "gcc --version" say ? Mine says:
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5247)

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to