-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hello,
I've been trying to install nginx with the required modules to test out Nebula but when compiling I get a warning and compilation stops.
`
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /tmp/install.nginx.sh/pcre2-10.39/src/ -I /tmp/install.nginx.sh/openssl-1.1.1m/.openssl/include -I /tmp/install.nginx.sh/zlib-1.2.11 -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I /tmp/install.nginx.sh/nchan/src
-o objs/addon/memory/groups.o
/tmp/install.nginx.sh/nchan/src/store/memory/groups.c
/tmp/install.nginx.sh/nchan/src/store/memory/ipc.c: In function ‘ipc_worker_slots’:
/tmp/install.nginx.sh/nchan/src/store/memory/ipc.c:64:22: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
64 | *workerslots_array = ipc->worker_slots;
| ^
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1961: objs/addon/memory/ipc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/install.nginx.sh/nginx-1.21.5'
make: *** [Makefile:10: build] Error 2
Installation failed
`

I am using Ubuntu 22.04 LTS with lxde desktop installed. Otherwise its a clean install. Ill try with 20.04 to see if it works there.
Side note: there is a new zlib release, I adjusted the URL in the script to use the previous release.