yaoweibin / nginx_tcp_proxy_module

add the feature of tcp proxy with nginx, with health check and status monitor
http://yaoweibin.github.com/nginx_tcp_proxy_module
1.64k stars 365 forks source link

Tengine 2.2.2 编译报错 #164

Open jy00278439 opened 6 years ago

jy00278439 commented 6 years ago
-o objs/addon/nginx_tcp_proxy_module/ngx_tcp_session.o \
/data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c

In file included from src/core/ngx_core.h:62:0, from /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:3: /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_send’: /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:351:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function) 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’ if ((log)->log_level & level) \ ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:351:5: note: in expansion of macro ‘ngx_log_debug1’ ngx_log_debug1(NGX_LOG_DEBUG_TCP, wev->log, 0, "nginx tcp send:%d", n); ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:351:20: note: each undeclared identifier is reported only once for each function it appears in 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’ if ((log)->log_level & level) \ ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:351:5: note: in expansion of macro ‘ngx_log_debug1’ ngx_log_debug1(NGX_LOG_DEBUG_TCP, wev->log, 0, "nginx tcp send:%d", n); ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_finalize_session’: /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:410:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function) 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’ if ((log)->log_level & level) \ ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:410:5: note: in expansion of macro ‘ngx_log_debug1’ ngx_log_debug1(NGX_LOG_DEBUG_TCP, c->log, 0, ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_close_connection’: /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:431:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function) 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’ if ((log)->log_level & level) \ ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:431:5: note: in expansion of macro ‘ngx_log_debug1’ ngx_log_debug1(NGX_LOG_DEBUG_TCP, c->log, 0, ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c: In function ‘ngx_tcp_cleanup_add’: /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:519:20: error: ‘NGX_LOG_DEBUG_TCP’ undeclared (first use in this function) 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’ if ((log)->log_level & level) \ ^ /data/tools/nginx_tcp_proxy_module/ngx_tcp_session.c:519:5: note: in expansion of macro ‘ngx_log_debug1’ ngx_log_debug1(NGX_LOG_DEBUG_TCP, s->connection->log, 0, ^ make[1]: [objs/addon/nginx_tcp_proxy_module/ngx_tcp_session.o] Error 1 make[1]: Waiting for unfinished jobs.... make[1]: Leaving directory `/data/tools/tengine-2.2.2' make: *** [build] Error 2