This repository was archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 606
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
compilation on Ubuntu 20.04 fails #491
Copy link
Copy link
Closed
Description
Trying to compile nginx 1.18 with naxsi 0.56 on Ubuntu 20.04, but it fails, no probs on Ubuntu 18.04. Is this related to #480?
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 \
-o objs/addon/naxsi_src/naxsi_skeleton.o \
../naxsi-0.56//naxsi_src//naxsi_skeleton.c
In file included from /usr/include/string.h:495,
from src/os/unix/ngx_linux_config.h:27,
from src/core/ngx_config.h:26,
from ../naxsi-0.56//naxsi_src//naxsi.h:38,
from ../naxsi-0.56//naxsi_src//naxsi_skeleton.c:37:
In function ‘strncpy’,
inlined from ‘ngx_http_dummy_init’ at ../naxsi-0.56//naxsi_src//naxsi_skeleton.c:417:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying 17 bytes from a string of the same length [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘ngx_http_dummy_init’ at ../naxsi-0.56//naxsi_src//naxsi_skeleton.c:418:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying 17 bytes from a string of the same length [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1425: objs/addon/naxsi_src/naxsi_skeleton.o] Error 1
petecooper and mhf-irmhf-ir
Metadata
Metadata
Assignees
Labels
No labels