[mod_python] [SPAM] please recompile it with -DEAPI..

mario curiel mario at avepublishing.com
Mon Jun 18 12:25:33 EDT 2007


Hello, on another machine I have
MAC OSX server 10.4.9,
PPC,
Server version: Apache/1.3.33 (Darwin)
mod_python-2.7.11


like the server admin only uses apache 1.3.33, (pre-installeted) then  
I installed mod_python-2.7.11

then error in httpd  is:
[Mon Jun 18 10:43:02 2007] [warn] Loaded DSO /usr/libexec/httpd/ 
mod_python.so uses plain Apache 1.3 API, this module might crash  
under EAPI! (please recompile it with -DEAPI)

any idea how to recompile it with -DEAPI?
which program has to be recompiled with -deapi ? the httpd or the  
program mod_python ?

thanks a lot

Alberto


root# httpd
[Mon Jun 18 10:46:59 2007] [warn] Loaded DSO /usr/libexec/httpd/ 
mod_python.so uses plain Apache 1.3 API, this module might crash  
under EAPI! (please recompile it with -DEAPI)
Processing config directory: /etc/httpd/sites/*.conf
Processing config file: /etc/httpd/sites/ 
0000_10.129.0.37_80_www.NN.com.conf
Processing config file: /etc/httpd/sites/ 
0004_10.129.0.37_80_www.YY.com.mx.conf
Processing config file: /etc/httpd/sites/virtual_host_global.conf

root# CFLAGS="-DEAPI" ./configure --with-apxs=/usr/sbin/apxs
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -DEAPI ) works... yes
checking whether the C compiler (gcc -DEAPI ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for ar... (cached) ar
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for main in -lm... (cached) yes
checking for working const... (cached) yes
checking your blood pressure... a bit high, but we can proceed
checking whether apxs is available
checking for --with-apxs... /usr/sbin/apxs executable, good
checking for Apache libexec directory... /usr/libexec/httpd
checking for Apache include directory... -I/usr/include/httpd
checking for --with-apache... no
configure: warning: **** No apache sources specified, static  
compilation will not be available.
configure: warning: **** You can use --with-apache to specify where  
your Apache sources are.
checking for --with-python... no
checking for python... (cached) /Library/Frameworks/Python.framework/ 
Versions/Current/bin/python
checking Python version... 2.5
checking whether Python is compiled with thread support... no  
threads, good
checking Python install prefix... /Library/Frameworks/ 
Python.framework/Versions/2.5
checking what libraries Python was linked with... /Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/config/libpython2.5.a   -ldl
checking linker flags used to link Python...
checking where Python include files are... -I/Library/Frameworks/ 
Python.framework/Versions/2.5/include/python2.5
checking for mkdep... (cached) /usr/bin/mkdep
creating ./config.status
creating Makefile
creating src/Makefile
creating src/libpython.module
creating Doc/Makefile
analyzing dependencies


root# make CFLAGS=-deapi

  root# make install

Performing DSO installation.

/usr/bin/install -c src/mod_python.so /usr/libexec/httpd
/usr/bin/install -c -d /Library/Frameworks/Python.framework/Versions/ 
2.5/lib/python2.5/site-packages/mod_python
python /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/compileall.py /Library/Frameworks/Python.framework/Versions/ 
2.5/lib/python2.5/site-packages/mod_python
Listing /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python ...
Compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python/__init__.py ...
Compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python/apache.py ...
Compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python/cgihandler.py ...
Compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python/httpdapi.py ...
Compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python/publisher.py ...
Compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python/util.py ...
Compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/mod_python/zhandler.py ...

Now don't forget to edit your main config and add
     LoadModule python_module /usr/libexec/httpd/mod_python.so
and if your configuration uses ClearModuleList, then also
     AddModule mod_python.c

root#httpd
[Mon Jun 18 10:52:46 2007] [warn] Loaded DSO /usr/libexec/httpd/ 
mod_python.so uses plain Apache 1.3 API, this module might crash  
under EAPI! (please recompile it with -DEAPI)
Processing config directory: /etc/httpd/sites/*.conf
Processing config file: /etc/httpd/sites/ 
0000_10.129.0.37_80_www.NN.com.conf
Processing config file: /etc/httpd/sites/ 
0004_10.129.0.37_80_www.YY.com.mx.conf
Processing config file: /etc/httpd/sites/virtual_host_global.conf


  root# httpd -V
Server version: Apache/1.3.33 (Darwin)
Server built:   Mar 20 2005 15:08:27
Server's Module Magic Number: 19990320:16
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D USE_MMAP_SCOREBOARD
-D USE_MMAP_FILES
-D HAVE_FCNTL_SERIALIZED_ACCEPT
-D HAVE_FLOCK_SERIALIZED_ACCEPT
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D DYNAMIC_MODULE_LIMIT=64
-D HARD_SERVER_LIMIT=2048
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/run/httpd.lock"
-D DEFAULT_ERRORLOG="/var/log/httpd/error_log"
-D TYPES_CONFIG_FILE="/etc/httpd/mime.types"
-D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf"
-D ACCESS_CONFIG_FILE="/etc/httpd/access.conf"
-D RESOURCE_CONFIG_FILE="/etc/httpd/srm.conf"


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070618/71412f12/attachment.html


More information about the Mod_python mailing list