make -f objs/Makefile
make[1]: Entering directory '/home/darkxoa/Downloads/nginx-1.16.1'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I../nginx-rtmp-module-dev -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
-o objs/src/event/ngx_event_openssl.o \
src/event/ngx_event_openssl.c
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_client_certificate’:
src/event/ngx_event_openssl.c:883:5: error: ‘SSL_CTX_load_verify_locations’ is deprecated [-Werror=deprecated-declarations]
if (SSL_CTX_load_verify_locations(ssl->ctx, (char *) cert->data, NULL)
^~
In file included from /usr/local/include/openssl/opensslv.h:109:0,
from /usr/local/include/openssl/macros.h:11,
from /usr/local/include/openssl/opensslconf.h:14,
from /usr/local/include/openssl/macros.h:10,
from /usr/local/include/openssl/ssl.h:16,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:83,
from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/ssl.h:2023:1: note: declared here
DEPRECATEDIN_3_0(__owur int SSL_CTX_load_verify_locations(SSL_CTX *ctx,
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_trusted_certificate’:
src/event/ngx_event_openssl.c:934:5: error: ‘SSL_CTX_load_verify_locations’ is deprecated [-Werror=deprecated-declarations]
if (SSL_CTX_load_verify_locations(ssl->ctx, (char *) cert->data, NULL)
^~
In file included from /usr/local/include/openssl/opensslv.h:109:0,
from /usr/local/include/openssl/macros.h:11,
from /usr/local/include/openssl/opensslconf.h:14,
from /usr/local/include/openssl/macros.h:10,
from /usr/local/include/openssl/ssl.h:16,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:83,
from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/ssl.h:2023:1: note: declared here
DEPRECATEDIN_3_0(__owur int SSL_CTX_load_verify_locations(SSL_CTX *ctx,
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_error’:
src/event/ngx_event_openssl.c:3002:13: error: ‘ERR_peek_error_line_data’ is deprecated [-Werror=deprecated-declarations]
n = ERR_peek_error_line_data(NULL, NULL, &data, &flags);
^
In file included from /usr/local/include/openssl/opensslv.h:109:0,
from /usr/local/include/openssl/macros.h:11,
from /usr/local/include/openssl/opensslconf.h:14,
from /usr/local/include/openssl/macros.h:10,
from /usr/local/include/openssl/ssl.h:16,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:83,
from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/err.h:301:1: note: declared here
DEPRECATEDIN_3_0(unsigned long ERR_peek_error_line_data(const char **file,
^
cc1: all warnings being treated as errors
objs/Makefile:917: recipe for target 'objs/src/event/ngx_event_openssl.o' failed
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
make[1]: Leaving directory '/home/darkxoa/Downloads/nginx-1.16.1'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2