You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Max Bowsher <ma...@ukf.net> on 2004/06/22 18:03:26 UTC

[Patch 29740] Small patch to fix --with-apr=/usr

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29740

Configuring with --with-apr=/usr usually fails. This is because:

The generated exports.c #includes all *.h files found in <apr-prefix>/include
If <apr-prefix> == /usr , then this means /usr/include/*.h !!!

On most systems, it's quite likely that some of these are C++ headers, or have
conflicting definitions, so breaking the build.

The solution is to only include apr and apr-util headers from the apr and
apr-util include directories. This is easy to do, as apr and apr-util headers
follow a consistent naming scheme.

I have placed a patch, to include only apr.h, apu.h, apr_*.h, and apu_*.h from the apr
and apr-util include directories, into the bug.


This is my first apache patch, so I'd appreciate being told if I've misunderstood any of the patch submission procedure.

Max.