openresty / openresty/headers-more-nginx-module
Building for RHEL 8 standard nginx (1.14.1)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.8k
- Forks
- 236
- Avg merge
- 1h 34m
- Merged PRs (30d)
- 2
Description
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]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the build using the configuration values from the RHEL 8 nginx -V output, focusing on ngx_stream_script.c at lines 590, 680, 770, and 862. Compare the build with and without --with-compat; done means the dynamic module builds without the four cast errors and remains binary compatible with the standard RHEL 8 nginx 1.14.1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, nginx
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100