[mod_python] Installing mod_python 3.3.1 on MAC 10.4.11

Graham Dumpleton graham.dumpleton at gmail.com
Wed May 13 19:07:39 EDT 2009


Use mod_python source code from subversion repository.

  svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
mod_python-trunk

If you aren't specifically using mod_python APIs/handlers and just
want to host a WSGI capable application such as Django, Trac or any of
the other major web frameworks/applications, then you should arguably
use mod_wsgi instead.

Graham

2009/5/14 Viktor Sadovnikov <vl_sadovnikov at yahoo.com>:
>
> Hello,
>
> Can anyone advise how to fix a problem with installation of mod_python 3.3.1 on MAC 10.4.11?
>
> I've got Apache 2.2 installed in /usr/local/apache2 and I'm following installation instructions on http://www.modpython.org/live/current/doc-html/installation.html
>
> 1) running configure with the line below succeeds
> localhost:/temp/mod_python-3.3.1 viktor$ ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/Library/Frameworks/Python.framework/Versions/Current/bin/python2.5 --with-max-locks=32
>
> 2) however compilation fails with "connobject.c:142: error: request for member 'next' in something not a structure or union". The complete output is pasted below
>
> Have you met this problem before?
>
> Thank you in advance,
> Viktor Sadovnikov
>
> localhost:/temp/mod_python-3.3.1 viktor$ make
>
> Compiling for DSO.
>
> /usr/local/apache2/bin/apxs -I/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c finfoobject.c -Wl,-framework,Python  -u _PyMac_Error /Versions//   -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g    -lm  -framework  Python    -ldl
> /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/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5  -c -o mod_python.lo mod_python.c && touch mod_python.slo
> mod_python.c: In function 'python_init':
> mod_python.c:826: 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/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5  -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/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5  -c -o requestobject.lo requestobject.c && touch requestobject.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/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5  -c -o tableobject.lo tableobject.c && touch tableobject.slo
> tableobject.c:329: warning: initialization from incompatible pointer type
> tableobject.c:1092: 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/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5  -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/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5  -c -o serverobject.lo serverobject.c && touch serverobject.slo
> serverobject.c:387: 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/temp/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5  -c -o connobject.lo connobject.c && touch connobject.slo
> connobject.c: In function '_conn_read':
> connobject.c:142: error: request for member 'next' in something not a structure or union
> apxs:Error: Command failed with rc=65536
> .
> make[1]: *** [mod_python.so] Error 1
> make: *** [do_dso] Error 2
>
>
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



More information about the Mod_python mailing list