openresty / openresty/headers-more-nginx-module

Building for RHEL 8 standard nginx (1.14.1)

Open
#104 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.