Lax/traffic-accounting-nginx-module

compile fails with nginx 1.0.3

lbrigman124 opened this issue · 1 comments

Looks like the code needs to be updated to match the latest sources.
Build log below.
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/modules/perl -I src/mail
-o objs/addon/ngx_http_accounting_module/ngx_http_accounting_status_code.o
ngx_http_accounting_module/ngx_http_accounting_status_code.c
ngx_http_accounting_module/ngx_http_accounting_module.c: In function 'ngx_http_accounting_init_main_conf':
ngx_http_accounting_module/ngx_http_accounting_module.c:127: warning: unused parameter 'cf'
ngx_http_accounting_module/ngx_http_accounting_module.c: In function 'ngx_http_accounting_merge_loc_conf':
ngx_http_accounting_module/ngx_http_accounting_module.c:154: warning: unused parameter 'cf'
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/modules/perl -I src/mail
-o objs/addon/ngx_http_accounting_module/ngx_http_accounting_worker_process.o
ngx_http_accounting_module/ngx_http_accounting_worker_process.c
ngx_http_accounting_module/ngx_http_accounting_status_code.c: In function 'init_http_status_code_map':
ngx_http_accounting_module/ngx_http_accounting_status_code.c:99: error: 'NGX_HTTP_OWN_CODES' undeclared (first use in this function)
ngx_http_accounting_module/ngx_http_accounting_status_code.c:99: error: (Each undeclared identifier is reported only once
ngx_http_accounting_module/ngx_http_accounting_status_code.c:99: error: for each function it appears in.)
make[1]: *** [objs/addon/ngx_http_accounting_module/ngx_http_accounting_status_code.o] Error 1
make[1]: *** Waiting for unfinished jobs....
ngx_http_accounting_module/ngx_http_accounting_worker_process.c: In function 'worker_process_write_out_stats':
ngx_http_accounting_module/ngx_http_accounting_worker_process.c:130: warning: unused parameter 'len'
ngx_http_accounting_module/ngx_http_accounting_worker_process.c:130: warning: unused parameter 'para1'
ngx_http_accounting_module/ngx_http_accounting_worker_process.c:130: warning: unused parameter 'para2'
make[1]: Leaving directory `/builddir/build/BUILD/nginx-1.0.3'

Lax commented

NGX_HTTP_OWN_CODES was removed in nginx-0.9.4. so this should happen with nginx-0.9.4 and above.