Description
I cannot compile project on any nginx version. On 1.1.14 (I've found that nginx-rtmp-module is compiled successfully) I have following output:
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I/root/nginx/rtmp/nginx-rtmp-module -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail
-o objs/addon/nginx-rtmp-module/ngx_rtmp_handler.o
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_handler.c
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_handler.c: In function 'ngx_rtmp_cycle':
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_handler.c:82:33: error: variable 'cscf' set but not used [-Werror=unused-but-set-variable]
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_handler.c: In function 'ngx_rtmp_receive_message':
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_handler.c:739:33: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/nginx-rtmp-module/ngx_rtmp_handler.o] Error 1
make[1]: Leaving directory `/root/nginx/nginx-1.1.14/release-1.1.14'
make: *** [build] Error 2
On 1.2.1 (now stable) I have same output.
System: Ubuntu 12.04 amd64.
How can I solve this problem?