[mod_python] Building Problems on OS X (intel macbook core2duo)

michael starke starke.m at gmx.de
Sun Jan 7 21:18:45 EST 2007


Hello there,

i have a big problem and since i'm not to experinced witht the whole  
built from source way i want to ask you, if you know where the  
problem lies.

I have apache2 installed (built and running) in  /usr/local/apache2/...
I have python2.4 installed and running smoothly
I downloaded mod_python 3.2.10 and configured it with

	--with-apxs=/usr/local/apache2/bin/apxs
	--with-python=/usr/local/bin/python2.4

so the configure seems to work, but when i run make/make install at  
the end i get the error, that the build mod_python.so is not found,  
there is a symlink in the /src/ folder and it points to a .built/  
directory, but that is not there...

Having no clue what to do i'm asking for your help. The same routine  
(with apache 2.0.x) and differnent install locations worked fine on  
my powermac a year before but the installation on the macbook is not  
working the way it should be..obviously.

I can give you a logpart form make install, but i guess it's not  
really helping.

----------make install output------------

/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o mod_python.lo  
mod_python.c && touch mod_python.slo
mod_python.c: In function 'python_cleanup':
mod_python.c:313: warning: passing argument 1 of 'free' discards  
qualifiers from pointer target type
mod_python.c: In function 'init_mutexes':
mod_python.c:427: warning: assignment discards qualifiers from  
pointer target type
mod_python.c:458: warning: assignment discards qualifiers from  
pointer target type
mod_python.c: In function 'reinit_mutexes':
mod_python.c:540: warning: assignment discards qualifiers from  
pointer target type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o  
_apachemodule.lo _apachemodule.c && touch _apachemodule.slo
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o  
requestobject.lo requestobject.c && touch requestobject.slo
requestobject.c: In function 'req_get_options':
requestobject.c:426: warning: initialization discards qualifiers from  
pointer target type
requestobject.c:427: warning: initialization from incompatible  
pointer type
requestobject.c: In function 'getmakeobj':
requestobject.c:1447: warning: assignment from incompatible pointer type
requestobject.c:1454: warning: assignment from incompatible pointer type
requestobject.c: In function 'request_tp_clear':
requestobject.c:1569: warning: assignment from incompatible pointer type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o tableobject.lo  
tableobject.c && touch tableobject.slo
tableobject.c:1057: warning: initialization from incompatible pointer  
type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o util.lo util.c  
&& touch util.slo
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o  
serverobject.lo serverobject.c && touch serverobject.slo
serverobject.c:351: warning: initialization from incompatible pointer  
type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o connobject.lo  
connobject.c && touch connobject.slo
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o  
filterobject.lo filterobject.c && touch filterobject.slo
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o hlist.lo  
hlist.c && touch hlist.slo
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer- 
pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 - 
I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/ 
local/apache2/include  -I/Users/michael/Desktop/mod_python-3.2.10/src/ 
include -I/usr/local/apache2/include -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4  -c -o hlistobject.lo  
hlistobject.c && touch hlistobject.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o  
mod_python.la  -rpath /usr/local/apache2/modules -module -avoid- 
version    hlistobject.lo hlist.lo filterobject.lo connobject.lo  
serverobject.lo util.lo tableobject.lo requestobject.lo  
_apachemodule.lo mod_python.lo -Wl,-framework,Python -u _PyMac_Error / 
Versions// -arch i386 -arch ppc -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -g -lm -framework Python -ldl
install: src/mod_python.so: No such file or directory
make[1]: *** [install_dso] Error 71

---------------end make install output-------------------


More information about the Mod_python mailing list