[Buildroot] [PATCH v2, 1/1] package/nginx-naxsi: fix build with pcre2

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Feb 20 20:57:24 UTC 2023


On Sun, 19 Feb 2023 18:35:36 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure raised since bump of nginx to version
> 1.22.1 in commit 722b84eafa5e3d9540e0a80bae0c971a3a778358:
> 
> /home/buildroot/autobuild/run/instance-2/output-1/build/nginx-naxsi-1.3/naxsi_src/naxsi_runtime.c: In function 'ngx_http_process_basic_rule_buffer':
> /home/buildroot/autobuild/run/instance-2/output-1/build/nginx-naxsi-1.3/naxsi_src/naxsi_runtime.c:205:61: error: invalid use of incomplete typedef 'ngx_regex_t' {aka 'struct pcre2_real_code_8'}
>   205 |       (tmp_idx < len && (match = pcre_exec(rl->br->rx->regex->code,
>       |                                                             ^~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/7fff888bd36710e2d2f5bb39a38597e8c04305ce
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> Changes v1 -> v2:
>  - Fix patch number

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list