Py_initmodule4 With Djapian/xapian
I am trying to install Djapian on RedHat5 / Python2.6. I have already installed it successfully on my OSX 10.6 machine. I have built and compiled Xapian and Djapian without issue
Solution 1:
In some configurations (i.e. when Py_DEBUG is defined) Py_InitModule4 does not have an implementation because of macro rewriting. It is meant to tell you that the ABI are not compatible. I had this issue when I tried to use the Py_Debug version with a release version of the executable. Make sure you are compiling to the same configurations (debug/release) on all your targets.
From the Python source in modsupport.h (Py_TRACE_REFS is defined in Py_DEBUG):
/* When we are tracing reference counts, rename Py_InitModule4 so
modules compiled with incompatible settings will generate a
link-time error. */
Post a Comment for "Py_initmodule4 With Djapian/xapian"