Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.nginx.sh: nchan fails to compile #9

Open
eperez1351 opened this issue Jul 15, 2022 · 0 comments
Open

install.nginx.sh: nchan fails to compile #9

eperez1351 opened this issue Jul 15, 2022 · 0 comments

Comments

@eperez1351
Copy link

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
`
Screenshot from 2022-07-15 01-04-20
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant