strony www, sklepy internetowe, oprogramowanie

Archiwum z 2011/09

nginx i http_push_module = problem przy metodzie make

Sobota, wrzesień 3rd, 2011

Jeżeli próbujesz wykonać make nginx’a wraz z http_push_module w celu wykorzystania do Comet i trafiłeś na problem typu:

../nginx_http_push_module/src/ngx_http_push_module.c: In function ‘ngx_http_push_clean_timeouted_subscriber’:
../nginx_http_push_module/src/ngx_http_push_module.c:22: error: unused variable ‘chain’
../nginx_http_push_module/src/ngx_http_push_module.c: In function ‘ngx_http_push_handle_subscriber_concurrency’:
../nginx_http_push_module/src/ngx_http_push_module.c:554: error: unused variable ‘rc’
../nginx_http_push_module/src/ngx_http_push_module.c: In function ‘ngx_http_push_clean_timeouted_subscriber’:
../nginx_http_push_module/src/ngx_http_push_module.c:22: error: unused variable ‘chain’
../nginx_http_push_module/src/ngx_http_push_module.c: In function ‘ngx_http_push_handle_subscriber_concurrency’:
../nginx_http_push_module/src/ngx_http_push_module.c:554: error: unused variable ‘rc’
Rozwiązaniem jest zakomentowanie linii 22 i 554 we wskazanym pliku ngx_http_push_module.c poprzez dodanie na ich początku znaku // .
Rozwiązanie choć niejasne – jest skuteczne.