openresty / headers-more-nginx-module

Set, add, and clear arbitrary output headers in NGINX http servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building for RHEL 8 standard nginx (1.14.1)

rgacote opened this issue · comments

I'm trying to build a dynamic module for use with the standard RHEL 8 1.14.1 nginx deploy.
When I run ./configure with the values scraped directly from the nginx -V command the compile gets casting errors.

The code compiles when using the --with-compat configuration flag, but is then binary incompatible with the standard RHEL 8 nginx since that was not compiled with the --with-compat flag.

There are four cast errors in ngx_stream_script.c (lines 590, 680, 770, and 862).
Errors are all:
cast between incompatible function types from ‘size_t (*)(ngx_stream_script_engine_t *)’ {aka ‘long unsigned int (*)(struct <anonymous> *)’} to ‘void (*)(ngx_stream_script_engine_t *)’ {aka ‘void (*)(struct <anonymous> *)’} [-Werror=cast-function-type]