[mod_python] Compilation problem on a Suse 10.2

Michel Sabchuk michelts at gmail.com
Tue Nov 6 11:36:59 EST 2007

Hi guys!

I´m a django user and I have to recompile mod_python to use python
with shared libraries enabled. In a first try I could compile it but
it was compiled over 32 bits libraries and apache seems to be 64 bits.

Then I installed all the devel libraries as 64 bits and try a
recompilation, but now I can´t even compile it. I try the code above:

~root# LDFLAGS='-L/lib64' ./configure
~root# make
make[1]: Entering directory `/usr/local/mod_python-3.3.1/src'

Compiling for DSO.

/usr/sbin/apxs2 -I/usr/local/mod_python-3.3.1/src/include
-I/usr/include/apache2 -I/usr/local/include/python2.4 -c mod_python.c
_apachemodule.c requestobject.c tableobject.c util.c serverobject.c
connobject.c filterobject.c hlist.c hlistobject.c finfoobject.c
-L/lib64 -L/usr/local/lib/python2.4/config  -Xlinker -export-dynamic
   -lm  -lpython2.4   -lpthread -ldl  -lutil   -lm
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic
-O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing
-D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2
-I/usr/include   -I/usr/include/apr-1
-I/usr/local/mod_python-3.3.1/src/include -I/usr/include/apache2
-I/usr/local/include/python2.4  -c -o mod_python.lo mod_python.c &&
touch mod_python.slo
mod_python.c:1: error: CPU you selected does not support x86-64 instruction set
apxs:Error: Command failed with rc=65536
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/usr/local/mod_python-3.3.1/src'
make: *** [do_dso] Error 2


I googled for something but I couldn´t find any usefull information
except that I need to change these libtool paramenters: -march=i586
-mtune=i686. How can I configure these parameters? Do you have any
other suggestion?

I´m not very familiar with x86_64 processor machines, how can I help
you to help me :-P

Thanks for all, best regards!

Michel Thadeu Sabchuk
Curitiba - Brasil

More information about the Mod_python mailing list