j_bias writes

Versions I have tried.

recoll-1.19.11p1 RECOLL_1_19_11 RECOLL_1_19_10 They all fail with the same error. building rclextract extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -DUNAC_VERSION="1.0.7" -DRECOLL_DATADIR="/usr/local/share/recoll" -I/usr/local/include -I../../utils -I../../common -I../../internfile -I../../rcldb -I/usr/include/python2.6 -c pyrclextract.cpp -o build/temp.linux-x86_64-2.6/pyrclextract.o pyrclextract.cpp: In function ‘void initrclextract()’: pyrclextract.cpp:347: error: redeclaration of ‘PyObject* module’ pyrclextract.cpp:323: error: ‘PyObject* module’ previously declared here error: command gcc failed with exit status 1 make[1]: * [all] Error 1 make[1]: Leaving directory ‘/home/user/medoc-recoll-c5c77e3cb7c8/src/python/recoll’ make: * [all] Error 2

But I was able to get RECOLL_1_19_1 to compile with no problems. this is the configure line. ./configure --disable-qtgui --disable-x11mon --disable-webkit I also am running rhel6. Any ideas?

medoc writes


Sorry about this, I just tried, and it seems to be a Python 2.6 compatibility issue. I think that you can just disable the python module if you don’t need it:

----` configure --disable-python-module


Or you can apply the attached patch which should fix the problem and let the python module work with Python 2.6



medoc writes

python 2.6 compat patch