Skip to content

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

@eperez1351

Description

@eperez1351

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions