Open
Description
In file included from src/core/ngx_core.h:60,
from /root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:3:
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_send’:
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:351:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function); did you mean ‘NGX_LOG_DEBUG_HTTP’?
351 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, wev->log, 0, "nginx tcp send:%d", n);
| ^~~~~~~~~~~~~~~~~
src/core/ngx_log.h:92:28: note: in definition of macro ‘ngx_log_debug’
92 | if ((log)->log_level & level) \
| ^~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:351:5: note: in expansion of macro ‘ngx_log_debug1’
351 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, wev->log, 0, "nginx tcp send:%d", n);
| ^~~~~~~~~~~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:351:20: note: each undeclared identifier is reported only once for each function it appears in
351 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, wev->log, 0, "nginx tcp send:%d", n);
| ^~~~~~~~~~~~~~~~~
src/core/ngx_log.h:92:28: note: in definition of macro ‘ngx_log_debug’
92 | if ((log)->log_level & level) \
| ^~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:351:5: note: in expansion of macro ‘ngx_log_debug1’
351 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, wev->log, 0, "nginx tcp send:%d", n);
| ^~~~~~~~~~~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_finalize_session’:
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:410:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function); did you mean ‘NGX_LOG_DEBUG_HTTP’?
410 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, c->log, 0,
| ^~~~~~~~~~~~~~~~~
src/core/ngx_log.h:92:28: note: in definition of macro ‘ngx_log_debug’
92 | if ((log)->log_level & level) \
| ^~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:410:5: note: in expansion of macro ‘ngx_log_debug1’
410 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, c->log, 0,
| ^~~~~~~~~~~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_close_connection’:
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:431:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function); did you mean ‘NGX_LOG_DEBUG_HTTP’?
431 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, c->log, 0,
| ^~~~~~~~~~~~~~~~~
src/core/ngx_log.h:92:28: note: in definition of macro ‘ngx_log_debug’
92 | if ((log)->log_level & level) \
| ^~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:431:5: note: in expansion of macro ‘ngx_log_debug1’
431 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, c->log, 0,
| ^~~~~~~~~~~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_cleanup_add’:
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:519:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function); did you mean ‘NGX_LOG_DEBUG_HTTP’?
519 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, s->connection->log, 0,
| ^~~~~~~~~~~~~~~~~
src/core/ngx_log.h:92:28: note: in definition of macro ‘ngx_log_debug’
92 | if ((log)->log_level & level) \
| ^~~~~
/root/sources/nginx_tcp_proxy_module/ngx_tcp_session.c:519:5: note: in expansion of macro ‘ngx_log_debug1’
519 | ngx_log_debug1(NGX_LOG_DEBUG_TCP, s->connection->log, 0,
| ^~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1690: objs/addon/nginx_tcp_proxy_module/ngx_tcp_session.o] Error 1
make[1]: Leaving directory '/root/sources/nginx-1.23.1'
make: *** [Makefile:10: build] Error 2
NGINX VERSION: nginx-1.23.1
Debian GNU/Linux 11 (bullseye)
Metadata
Metadata
Assignees
Labels
No labels