Re: mod_backhand.so: please recompile it with -DEAPI -- How?
Theo Schlossnagle <[email protected]> Wed, 10 Sep 2003 13:07:57 -0400
| Newsgroups | gmane.comp.apache.mod-backhand.general |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, Sep 10, 2003, at 12:34 US/Eastern, Thomas Buehren wrote: > Hello, > > after compiling mod_backhand.so (1.2.2) and copying it to > /usr/lib/apache > (1.3.20) I get this message in /var/log/httpd/error_log: > > [warn] Loaded DSO /usr/lib/apache/mod_backhand.so uses plain Apache > 1.3 > API, this module might crash under EAPI! (please recompile it with > -DEAPI) > > And then a lot of segmentation faults for many pids: > > child pid 1969 exit signal Segmentation fault (11) > > So I tried the following: > > export CFLAGS='-DEAPI' > ./precompile (in backhand dir) > ./configure .... (in apache dir) > make (in apache dir) > > The new mod_backhand.so has exactly the same size as the old one and > it does > not change anything. But some files in > apache_1.3.20/src/modules/backhand > contain "EAPI": > > Makefile:EXTRA_CFLAGS=-DEAPI `$(SRCDIR)/apaci` > config.status:s%@CFLAGS@%-DEAPI%g > > Can anyone help? The EAPI only extends the Apache module structure. So, if you use gcc as your compiler, it should not matter. gcc will auto fill any unspecified module elements with NULL. So, the segfaults shouldn't be from that. Try using apxs to compile mod_backhand. Get you Apache ready to go without mod_backhand, compile and install (and test). Then in the backhand dir: ./configure --with-apxs=/path/to/apache/bin/apxs make make install // Theo Schlossnagle // Principal Engineer -- http://www.omniti.com/~jesus/ // Postal Engine -- http://www.postalengine.com/ // Ecelerity: fastest MTA on earth