[mod_python] Compiling mod_python on Linux/apache with LFS

Peter Poeml poeml at suse.de
Fri Oct 8 12:54:52 EDT 2004


On Tue, Oct 05, 2004 at 02:11:53AM +0200, Damjan wrote:
> I've recenlty been compiling mod_python on Slackware Linux against an
> Apache2 (2.0.52) compiled with large file support (LFS).
> 
> Apache2 was compiled with these flags:
> CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
> 
> unfortunately mod_python's build system doesn't honor this environment
> variable, so I had to hack it directly in src/Makefile, 
> after ./configure finished.
> 
> If anyone had a problem when apache would segfault for any request
> (even for static files) after mod_python was installed whis is most
> probably the reason.


./configure --with-apxs=`which %{apxs}` --libdir=%{_libdir}
make OPT="$(%{apxs} -q CFLAGS)"

works fine here -- mod_python picks up the right flags.

Peter

-- 
Thought is limitation. Free your mind.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://modpython.org/pipermail/mod_python/attachments/20041008/dfdb047a/attachment.bin


More information about the Mod_python mailing list