httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garrett Rooney <roo...@electricjellyfish.net>
Subject Re: Recompiling modules for Apache 2.2.0
Date Tue, 14 Feb 2006 19:31:06 GMT
On 2/14/06, System Support <support@microtechniques.com> wrote:
> I am trying to recompile some modules from Apache 2.0 to use under 2.2.0,
> and get the following:
>
> In file included from /usr/local/apache2/include/ap_config.h:25,
>                  from /usr/local/apache2/include/httpd.h:43,
>                  from mod_rexx.h:72,
>                  from mod_rexx.c:25:
> /usr/local/apache2/include/apr.h:270: error: syntax error before 'r_off_t'
> /usr/local/apache2/include/apr.h:270: warning: type defaults to '' in
> declaration of 'apr_off_t'
> /usr/local/apache2/include/apr.h:270: warning: data definition has no type=
>  or storage class
> In file included from /usr/local/apache2/include/apr_file_io.h:29,
>                  from /usr/local/apache2/include/apr_network_io.h:26,
>                  from /usr/local/apache2/include/httpd.h:53,
>                  from mod_rexx.h:72,
>                  from mod_rexx.c:25:
> /usr/local/apache2/include/apr_file_info.h:204: error: syntax error before
> 'apr_off_t'
> /usr/local/apache2/include/apr_file_info.h:204: warning: no semicolon at end
> of struct or union
> /usr/local/apache2/include/apr_file_info.h:206: warning: type defaults to
> '' in declaration
> of 'csize'
>
> .... and so on
>
>
> This appears to be caused by a missing typedef for off64_t and others, but  I
> have run out of ideas on how to fix it.  Any suggestions?

However you are compiling these modules you are most likely not
passing the correct CFLAGS to the compiler.  To use APR (as HTTPD
does) you need to pass APR's CFLAGS, which you can get from
apr-1-config --cflags.  That'll allow off64_t to be correctly picked
up from the system headers.

-garrett

Mime
View raw message