Apache headers
Joe Orton
jorton at redhat.com
Tue Nov 11 09:59:35 UTC 2003
On Mon, Nov 10, 2003 at 11:17:06PM +0200, Razvan Corneliu C.R. d3vi1 VILT wrote:
> While building a module for apache I've noticed the following problem
> Out of pages of errors the most important lines are:
> (...)
> /usr/include/httpd/ap_config.h:58:17: apr.h: No such file or directory
> (...)
> There are similar ones for other .h files in /usr/include/apr-0
> The work-around was to move all the file from /usr/include/apr-0 to
> /usr/include
> Someone rearanged the header files in apr but forgot to update the
> apache headers with the new location... ntz...ntz...ntz...
How are you building your module? You should either:
1. use apxs -c directly, in which case the include paths will be
correct, i.e. apxs -c mod_foo.c
or
2. query apxs for the correct include paths, i.e.
add -I`apxs -q includedir` -I`apxs -q APR_INCLUDEDIR` to CFLAGS.
Regards,
joe
More information about the fedora-devel-list
mailing list