mod_python & "please recompile it with -DEAPI" apache warning

G

ggg

In regards to mod_python, I keep getting this warning when I do
apachectl configtest:

[warn] Loaded DSO libexec/mod_python.so uses plain Apache 1.3 API, this
module might crash under EAPI! (please recompile it with -DEAPI)

So I googled what I can, and have read various responses. Most say you
just need to recompile the module with the DEAPI flag. I was getting the
same message for mod_php, and fixed that. However, with the same config
command, it doesn't fix it for mod_python:

1)
CFLAGS="-DEAPI -fPIC" ./configure --with-apxs=/www/bin/apxs
make
make install

I later read someone trying this to the the MakeFile after configuring:

2) added to MakeFile after config:
EXTRA_CFLAGS=-DEAPI


There was even someone claiming this is a documented bug - implying not
to worry about it? Any help would be much appreciated.

Thanks.
 
G

grahamd

2) added to MakeFile after config:
EXTRA_CFLAGS=-DEAPI

You can do this, but it should be to "src/Makefile" and added
to "CFLAGS" and not "EXTRA_CFLAGS" as the latter doesn't exist.
 
G

ggg

You can do this, but it should be to "src/Makefile" and added
to "CFLAGS" and not "EXTRA_CFLAGS" as the latter doesn't exist.

Thanks I forgot to say I already tried just plain CFLAGS like:
CFLAGS=-DEAPI

...but that still doesn't work.

Here's what I did:
make clean
../configure --with-apxs=/www/bin/apxs
vi MakeFile
added CFLAGS=-DEAPI to MakeFile
make
make install
/etc/init.d/apachectl configtest

...and that still returns:

[Wed Mar 9 00:35:27 2005] [warn] Loaded DSO libexec/mod_python.so uses
plain Apache 1.3 API, this module might crash under EAPI! (please
recompile it with -DEAPI)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top