headers-more-nginx-module icon indicating copy to clipboard operation
headers-more-nginx-module copied to clipboard

Building for RHEL 8 standard nginx (1.14.1)

Open rgacote opened this issue 5 years ago • 0 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]

rgacote avatar Nov 27 '19 18:11 rgacote