denji / homebrew-nginx

:fire_engine: Community NGINX tap for custom modules
https://denji.github.io/homebrew-nginx/
Other
617 stars 199 forks source link

Build error with nginx-vod-module #414

Closed viaregio closed 2 years ago

viaregio commented 2 years ago

Indicate troubleshooting steps taken

Bug reports / build errors:

Last 15 lines from /Users/uli/Library/Logs/Homebrew/nginx-full/02.make:
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/opt/homebrew/share/vod-nginx-module/ngx_http_vod_utils.c:485:47: error: member reference type 'ngx_table_elt_t *' (aka 'struct ngx_table_elt_s *') is a pointer; did you mean to use '->'?
                for (i = 1; i < r->headers_out.cache_control.nelts; i++) {
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                                                            ->
/opt/homebrew/share/vod-nginx-module/ngx_http_vod_utils.c:485:48: error: no member named 'nelts' in 'struct ngx_table_elt_s'
                for (i = 1; i < r->headers_out.cache_control.nelts; i++) {
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
4 errors generated.
clang -c -pipe  -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Wno-deprecated-declarations -Werror -g -I/opt/homebrew/include -I/opt/homebrew/opt/pcre/include -I/opt/homebrew/opt/openssl@1.1/include -D_LARGEFILE_SOURCE -DBUILDING_NGINX -I/opt/homebrew/share/rtmp-nginx-module  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I /opt/homebrew/share/rtmp-nginx-module -I /usr/include/libxml2 -I src/stream \
        -o objs/addon/vod/buffer_pool.o \
        /opt/homebrew/share/vod-nginx-module/vod/buffer_pool.c
make[1]: *** [objs/addon/vod-nginx-module/ngx_http_vod_utils.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install] Error 2

Brief summary of issue:

nginx 1.23.1 is incompatible with the provided version of nginx-vod-module

The complete command that you issued:

brew upgrade

Gist with output of brew doctor:

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  php@7.4

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/uli/.pyenv/shims/python3.10-config
  /Users/uli/.pyenv/shims/powerline-config
  /Users/uli/.pyenv/shims/python-config
  /Users/uli/.pyenv/shims/python3-config
  /Users/uli/.pyenv/shims/pylint-config
  /Users/uli/.pyenv/shims/ansible-config

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  nginx-full

Link output by brew gist-logs <formula>:

Error: `brew gist-logs` requires HOMEBREW_GITHUB_API_TOKEN to be set!

Output of brew config:

HOMEBREW_VERSION: 3.6.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 978a452ea7ccdff1ed7377f88add3ff0513ba2b7
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c459a9204c823f8a13b9619295b63c515157352f
Core tap last commit: 21 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.37.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.0.0.0.1.1661618636
Xcode: 14.0
Rosetta 2: false

Formula Requests:

The quickest way to get a new formula into Homebrew is to file a Pull Request.

We will consider your request but it may be closed if it's something we're not actively planning to work on.

viaregio commented 2 years ago

As stated in https://github.com/kaltura/nginx-vod-module/issues/1363 nginx 1.23.0 needs at least version 1.30 of nginx-vod-module.

This is the output I got today with nginx 1.23.1 and the provided version of nginx-vod-module:

Last 15 lines from /Users/uli/Library/Logs/Homebrew/nginx-full/02.make:
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/opt/homebrew/share/vod-nginx-module/ngx_http_vod_utils.c:485:47: error: member reference type 'ngx_table_elt_t *' (aka 'struct ngx_table_elt_s *') is a pointer; did you mean to use '->'?
                for (i = 1; i < r->headers_out.cache_control.nelts; i++) {
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                                                            ->
/opt/homebrew/share/vod-nginx-module/ngx_http_vod_utils.c:485:48: error: no member named 'nelts' in 'struct ngx_table_elt_s'
                for (i = 1; i < r->headers_out.cache_control.nelts; i++) {
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
4 errors generated.
clang -c -pipe  -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Wno-deprecated-declarations -Werror -g -I/opt/homebrew/include -I/opt/homebrew/opt/pcre/include -I/opt/homebrew/opt/openssl@1.1/include -D_LARGEFILE_SOURCE -DBUILDING_NGINX -I/opt/homebrew/share/rtmp-nginx-module  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I /opt/homebrew/share/rtmp-nginx-module -I /usr/include/libxml2 -I src/stream \
        -o objs/addon/vod/buffer_pool.o \
        /opt/homebrew/share/vod-nginx-module/vod/buffer_pool.c
make[1]: *** [objs/addon/vod-nginx-module/ngx_http_vod_utils.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install] Error 2