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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ggg@gg.com

    #1

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

    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.
  • grahamd@dscpl.com.au

    #2
    Re: mod_python & "please recompile it with -DEAPI" apache warning

    ggg@gg.com wrote:[color=blue]
    > 2) added to MakeFile after config:
    > EXTRA_CFLAGS=-DEAPI[/color]

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

    Comment

    • ggg@gg.com

      #3
      Re: mod_python & "please recompile it with -DEAPI" apache warning

      In article <1110239295.586 156.58180@f14g2 000cwb.googlegr oups.com>,
      grahamd@dscpl.c om.au says...[color=blue]
      > ggg@gg.com wrote:[color=green]
      > > 2) added to MakeFile after config:
      > > EXTRA_CFLAGS=-DEAPI[/color]
      >
      > You can do this, but it should be to "src/Makefile" and added
      > to "CFLAGS" and not "EXTRA_CFLA GS" as the latter doesn't exist.
      >
      >[/color]

      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)

      Comment

      Working...