Graham Dumpleton
graham.dumpleton at gmail.com
Thu Jun 19 21:35:17 EDT 2008
See: http://www.modpython.org/FAQ/faqw.py?req=show&file=faq04.001.htp That may help. Graham 2008/6/16 Josef Eisl <zapster at gmx.at>: > Hello! > > I am trying to compile mod_python 3.3.1 for Apache 2.2.6. I am using Python > 2.5.2. By any reason the mod_python.so is not produced. > > (Note that Python 2.5 is not the systems default version but that should not > be an issue.) > > I configured the installation with the following commandline: > > $ ./configure --with-apxs=/usr/sbin/apxs > --with-python=/usr/local/bin/python2.5 > > No warnings, beside the flex version thing... > > `make' only throws few warnings like `warning: "_POSIX_C_SOURCE" redefined', > (no error messages), but mod_python.so is still not created. > > `make install_dso' fails: > > /usr/bin/install -c -d /usr/local/apache2/2.2.6/modules > /usr/bin/install -c src/mod_python.so /usr/local/apache2/2.2.6/modules > /usr/bin/install: cannot stat `src/mod_python.so': No such file or directory > make[1]: *** [install_dso] Error 1 > > > Any ideas what might be the problem? > > Many thanks in advance! > > best regards, > Josef > > > output of `make': > > make[1]: Entering directory `/usr/src/mod_python-3.3.1' > make[2]: Entering directory `/usr/src/mod_python-3.3.1/src' > > Compiling for DSO. > > /usr/sbin/apxs -I/usr/src/mod_python-3.3.1/src/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/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 -L/usr/local/lib/python2.5/config -Xlinker -export-dynamic > -lm -lpython2.5 -lpthread -ldl -lutil -lm > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o mod_python.lo mod_python.c && touch > mod_python.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from mod_python.c:28: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from mod_python.c:28: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > mod_python.c: In function `python_init': > mod_python.c:826: warning: initialization from incompatible pointer type > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o _apachemodule.lo _apachemodule.c && > touch _apachemodule.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from _apachemodule.c:25: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from _apachemodule.c:25: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o requestobject.lo requestobject.c && > touch requestobject.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from requestobject.c:25: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from requestobject.c:25: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o tableobject.lo tableobject.c && touch > tableobject.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from tableobject.c:25: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from tableobject.c:25: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > tableobject.c:1092: warning: initialization from incompatible pointer type > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o util.lo util.c && touch util.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from util.c:28: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from util.c:28: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o serverobject.lo serverobject.c && > touch serverobject.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from serverobject.c:25: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from serverobject.c:25: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > serverobject.c:387: warning: initialization from incompatible pointer type > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o connobject.lo connobject.c && touch > connobject.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from connobject.c:30: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from connobject.c:30: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o filterobject.lo filterobject.c && > touch filterobject.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from filterobject.c:28: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from filterobject.c:28: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o hlist.lo hlist.c && touch hlist.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from hlist.c:28: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from hlist.c:28: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o hlistobject.lo hlistobject.c && touch > hlistobject.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from hlistobject.c:28: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from hlistobject.c:28: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > /usr/local/apache2/2.2.6/build/libtool --silent --mode=compile gcc > -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g > -O2 -pthread -I/usr/local/apache2/2.2.6/include > -I/usr/local/apache2/2.2.6/include -I/usr/local/apache2/2.2.6/include > -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/apache2/2.2.6/include > -I/usr/local/include/python2.5 -c -o finfoobject.lo finfoobject.c && touch > finfoobject.slo > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:80, > from finfoobject.c:25: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/sys/types.h:27, > from /usr/local/apache2/2.2.6/include/apr.h:116, > from /usr/local/apache2/2.2.6/include/ap_config.h:25, > from /usr/local/apache2/2.2.6/include/httpd.h:43, > from /usr/src/mod_python-3.3.1/src/include/mod_python.h:42, > from finfoobject.c:25: > /usr/include/features.h:131:1: warning: this is the location of the previous > definition > finfoobject.c:278: warning: `intargfunc' is deprecated (declared at > /usr/local/include/python2.5/object.h:133) > /usr/local/apache2/2.2.6/build/libtool --silent --mode=link gcc -o > mod_python.la -rpath /usr/local/apache2/2.2.6/modules -module > -avoid-version finfoobject.lo hlistobject.lo hlist.lo filterobject.lo > connobject.lo serverobject.lo util.lo tableobject.lo requestobject.lo > _apachemodule.lo mod_python.lo -L/usr/local/lib/python2.5/config -Xlinker > -export-dynamic -lm -lpython2.5 -lpthread -ldl -lutil -lm > make[2]: Leaving directory `/usr/src/mod_python-3.3.1/src' > make[2]: Entering directory `/usr/src/mod_python-3.3.1/dist' > ln -s ../lib/python/mod_python mod_python > make[3]: Entering directory `/usr/src/mod_python-3.3.1/src' > make[3]: `psp_parser.c' is up to date. > make[3]: Leaving directory `/usr/src/mod_python-3.3.1/src' > /usr/local/bin/python2.5 setup.py build > running build > running build_py > creating build > creating build/lib.linux-i686-2.5 > creating build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/testhandler.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/Cookie.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/publisher.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/__init__.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/util.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/cgihandler.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/apache.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/importer.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/psp.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/Session.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/cache.py -> > build/lib.linux-i686-2.5/mod_python > copying /usr/src/mod_python-3.3.1/lib/python/mod_python/python22.py -> > build/lib.linux-i686-2.5/mod_python > running build_ext > building 'mod_python._psp' extension > creating build/temp.linux-i686-2.5 > creating build/temp.linux-i686-2.5/usr > creating build/temp.linux-i686-2.5/usr/src > creating build/temp.linux-i686-2.5/usr/src/SSL_LAMP > creating build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1 > creating build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1/src > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes > -fPIC -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/include/python2.5 > -c /usr/src/mod_python-3.3.1/src/psp_string.c -o > build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1/src/psp_string.o > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes > -fPIC -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/include/python2.5 > -c /usr/src/mod_python-3.3.1/src/psp_parser.c -o > build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1/src/psp_parser.o > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/psp_parser.h:23, > from psp_parser.l:29: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/stdio.h:28, > from psp_parser.c:20: > /usr/include/features.h:171:1: warning: this is the location of the previous > definition > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes > -fPIC -I/usr/src/mod_python-3.3.1/src/include -I/usr/local/include/python2.5 > -c /usr/src/mod_python-3.3.1/src/_pspmodule.c -o > build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1/src/_pspmodule.o > In file included from /usr/local/include/python2.5/Python.h:8, > from /usr/src/mod_python-3.3.1/src/include/psp_parser.h:23, > from /usr/src/mod_python-3.3.1/src/_pspmodule.c:26: > /usr/local/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/stdio.h:28, > from include/psp_flex.h:24, > from /usr/src/mod_python-3.3.1/src/_pspmodule.c:25: > /usr/include/features.h:171:1: warning: this is the location of the previous > definition > gcc -pthread -shared > build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1/src/psp_string.o > build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1/src/psp_parser.o > build/temp.linux-i686-2.5/usr/src/mod_python-3.3.1/src/_pspmodule.o -o > build/lib.linux-i686-2.5/mod_python/_psp.so > make[2]: Leaving directory `/usr/src/mod_python-3.3.1/dist' > > Now su and make install > (or, if you only want to perform a partial install, > you can use make install_dso and make install_py_lib) > > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|