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

cant compile with nginx 1.21.4 #5

Open
Vladislavik opened this issue Dec 2, 2021 · 0 comments
Open

cant compile with nginx 1.21.4 #5

Vladislavik opened this issue Dec 2, 2021 · 0 comments

Comments

@Vladislavik
Copy link

Hi, i am trying to compile with nginx 1.21.4 with this configure:
./configure (...) --add-module=./ngx_http_websocket_stat_module
configure runs normal, but 'make' return error:
make ....... -o objs/addon/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.o \ /opt/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.c In file included from /usr/include/string.h:494, from src/os/unix/ngx_linux_config.h:27, from src/core/ngx_config.h:26, from src/core/ngx_core.h:12, from /opt/ngx_http_websocket_stat_module/ngx_http_websocket_stat_format.h:18, from /opt/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.c:1: In function ‘memcpy’, inlined from ‘send_close_packet’ at /opt/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.c:674:5, inlined from ‘check_ws_age.isra.1.part.2’ at /opt/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.c:302:9, inlined from ‘check_ws_age.isra.1’ at /opt/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.c:296:1, inlined from ‘my_send’ at /opt/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.c:320:9: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: error: ‘__builtin_memcpy’ forming offset 20 is out of the bounds [0, 19] [-Werror=array-bounds] return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [objs/Makefile:2079: objs/addon/ngx_http_websocket_stat_module/ngx_http_websocket_stat_module.o] Error 1 make[1]: Leaving directory '/opt/nginx-1.21.4' make: *** [Makefile:10: build] Error 2
How to fix this error?

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