Created
December 12, 2016 13:02
-
-
Save manjeshpv/c1e39ecf83ad9b6fc478c16d1184d2e5 to your computer and use it in GitHub Desktop.
zebrafishlabs/nginx-statsd.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:36:5: error: unknown type name ‘ngx_resolver_connection_t’ | |
ngx_resolver_connection_t *udp_connection; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:63:27: error: unknown type name ‘ngx_resolver_connection_t’ | |
ngx_int_t ngx_udp_connect(ngx_resolver_connection_t *rec); | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c: In function ‘ngx_statsd_init_endpoint’: | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:303:5: error: unknown type name ‘ngx_resolver_connection_t’ | |
ngx_resolver_connection_t *rec; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:316:29: error: ‘ngx_resolver_connection_t’ undeclared (first use in this function) | |
rec = ngx_calloc(sizeof(ngx_resolver_connection_t), cf->log); | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:316:29: note: each undeclared identifier is reported only once for each function it appears in | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:323:8: error: request for member ‘sockaddr’ in something not a structure or union | |
rec->sockaddr = endpoint->peer_addr.sockaddr; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:324:8: error: request for member ‘socklen’ in something not a structure or union | |
rec->socklen = endpoint->peer_addr.socklen; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:325:8: error: request for member ‘server’ in something not a structure or union | |
rec->server = endpoint->peer_addr.name; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c: In function ‘ngx_statsd_updater_cleanup’: | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:341:29: error: request for member ‘udp’ in something not a structure or union | |
if(e->udp_connection->udp) { | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:342:51: error: request for member ‘udp’ in something not a structure or union | |
ngx_close_connection(e->udp_connection->udp); | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c: In function ‘ngx_http_statsd_udp_send’: | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:357:5: error: unknown type name ‘ngx_resolver_connection_t’ | |
ngx_resolver_connection_t *rec; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:360:12: error: request for member ‘udp’ in something not a structure or union | |
if (rec->udp == NULL) { | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:362:12: error: request for member ‘log’ in something not a structure or union | |
rec->log = *l->log; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:363:12: error: request for member ‘log’ in something not a structure or union | |
rec->log.handler = NULL; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:364:12: error: request for member ‘log’ in something not a structure or union | |
rec->log.data = NULL; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:365:12: error: request for member ‘log’ in something not a structure or union | |
rec->log.action = "logging"; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:367:9: error: implicit declaration of function ‘ngx_udp_connect’ [-Werror=implicit-function-declaration] | |
if(ngx_udp_connect(rec) != NGX_OK) { | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:368:19: error: request for member ‘udp’ in something not a structure or union | |
if(rec->udp != NULL) { | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:369:40: error: request for member ‘udp’ in something not a structure or union | |
ngx_free_connection(rec->udp); | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:370:20: error: request for member ‘udp’ in something not a structure or union | |
rec->udp = NULL; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:376:12: error: request for member ‘udp’ in something not a structure or union | |
rec->udp->data = l; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:377:12: error: request for member ‘udp’ in something not a structure or union | |
rec->udp->read->handler = ngx_http_statsd_udp_dummy_handler; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:378:12: error: request for member ‘udp’ in something not a structure or union | |
rec->udp->read->resolver = 0; | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:381:21: error: request for member ‘udp’ in something not a structure or union | |
n = ngx_send(rec->udp, buf, len); | |
^ | |
In file included from src/core/ngx_core.h:50:0, | |
from /home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:12: | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:389:41: error: request for member ‘log’ in something not a structure or union | |
ngx_log_error(NGX_LOG_CRIT, &rec->log, 0, "send() incomplete"); | |
^ | |
src/core/ngx_log.h:79:10: note: in definition of macro ‘ngx_log_error’ | |
if ((log)->log_level >= level) ngx_log_error_core(level, log, __VA_ARGS__) | |
^ | |
/home/gloryque/custom-nginx/nginx-1.6.2/src/http/modules/nginx-statsd/ngx_http_statsd.c:389:41: error: request for member ‘log’ in something not a structure or union | |
ngx_log_error(NGX_LOG_CRIT, &rec->log, 0, "send() incomplete"); | |
^ | |
src/core/ngx_log.h:79:62: note: in definition of macro ‘ngx_log_error’ | |
if ((log)->log_level >= level) ngx_log_error_core(level, log, __VA_ARGS__) | |
^ | |
cc1: all warnings being treated as errors | |
make[1]: *** [objs/addon/nginx-statsd/ngx_http_statsd.o] Error 1 | |
make[1]: Leaving directory `/home/gloryque/custom-nginx/nginx-1.6.2' | |
make: *** [build] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment