You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Yann Ylavic <yl...@gmail.com> on 2014/11/01 23:03:34 UTC

APR_INT32_MAX used by mod_delate-2.2.29

mod_deflate in httpd-2.2.29 is using APR_INT32_MAX which is only
available since APR-1.3.

However httpd-2.x seems to require APR-1.2 only
(http://httpd.apache.org/docs/2.2/install.html#requirements).

Should we apply something like :

Index: modules/filters/mod_deflate.c
===================================================================
--- modules/filters/mod_deflate.c    (revision 1635743)
+++ modules/filters/mod_deflate.c    (working copy)
@@ -47,6 +47,10 @@
 #define APR_WANT_STRFUNC
 #include "apr_want.h"

+#ifndef APR_INT32_MAX
+#define APR_INT32_MAX 0x7fffffff
+#endif
+
 #include "zlib.h"

 static const char deflateFilterName[] = "DEFLATE";
?

Regards,
Yann.

Re: APR_INT32_MAX used by mod_delate-2.2.29

Posted by Yann Ylavic <yl...@gmail.com>.
On Thu, Nov 6, 2014 at 2:26 PM, Jeff Trawick <tr...@gmail.com> wrote:
> On Sat, Nov 1, 2014 at 6:03 PM, Yann Ylavic <yl...@gmail.com> wrote:
>>
>> mod_deflate in httpd-2.2.29 is using APR_INT32_MAX which is only
>> available since APR-1.3.
>>
>> However httpd-2.x seems to require APR-1.2 only
>> (http://httpd.apache.org/docs/2.2/install.html#requirements).
>>
>> Should we apply something like :
>>
>> Index: modules/filters/mod_deflate.c
>> ===================================================================
>> --- modules/filters/mod_deflate.c    (revision 1635743)
>> +++ modules/filters/mod_deflate.c    (working copy)
>> @@ -47,6 +47,10 @@
>>  #define APR_WANT_STRFUNC
>>  #include "apr_want.h"
>>
>> +#ifndef APR_INT32_MAX
>> +#define APR_INT32_MAX 0x7fffffff
>> +#endif
>> +
>>  #include "zlib.h"
>>
>>  static const char deflateFilterName[] = "DEFLATE";
>> ?
>>
>> Regards,
>> Yann.
>
>
> +1 here
>
> (babbling about generic concerns with using a level of APR that we haven't
> used in years has been removed)

OK, patch against 2.2.x (only) proposed by r1637104.

Re: APR_INT32_MAX used by mod_delate-2.2.29

Posted by Jeff Trawick <tr...@gmail.com>.
On Sat, Nov 1, 2014 at 6:03 PM, Yann Ylavic <yl...@gmail.com> wrote:

> mod_deflate in httpd-2.2.29 is using APR_INT32_MAX which is only
> available since APR-1.3.
>
> However httpd-2.x seems to require APR-1.2 only
> (http://httpd.apache.org/docs/2.2/install.html#requirements).
>
> Should we apply something like :
>
> Index: modules/filters/mod_deflate.c
> ===================================================================
> --- modules/filters/mod_deflate.c    (revision 1635743)
> +++ modules/filters/mod_deflate.c    (working copy)
> @@ -47,6 +47,10 @@
>  #define APR_WANT_STRFUNC
>  #include "apr_want.h"
>
> +#ifndef APR_INT32_MAX
> +#define APR_INT32_MAX 0x7fffffff
> +#endif
> +
>  #include "zlib.h"
>
>  static const char deflateFilterName[] = "DEFLATE";
> ?
>
> Regards,
> Yann.
>

+1 here

(babbling about generic concerns with using a level of APR that we haven't
used in years has been removed)

-- 
Born in Roswell... married an alien...
http://emptyhammock.com/