Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make errors nginx-1.2.1 #7

Closed
spuzirev opened this issue Jun 6, 2012 · 2 comments
Closed

Make errors nginx-1.2.1 #7

spuzirev opened this issue Jun 6, 2012 · 2 comments

Comments

@spuzirev
Copy link

spuzirev commented Jun 6, 2012

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?

@arut arut closed this as completed Jun 6, 2012
@arut
Copy link
Owner

arut commented Jun 6, 2012

Thanks for the report.
I've fixed the problem.

@spuzirev
Copy link
Author

spuzirev commented Jun 6, 2012

Unfortunately no. Now I have another error on nginx-1.2.1

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_receive.o
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_receive.c
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_receive.c: In function 'ngx_rtmp_protocol_message_handler':
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_receive.c:19:29: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_receive.c: In function 'ngx_rtmp_user_message_handler':
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_receive.c:91:29: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_receive.c: In function 'ngx_rtmp_amf_message_basic_handler':
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp_receive.c:176: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_receive.o] Error 1
make[1]: Leaving directory `/root/nginx/nginx-1.2.1'
make: *** [build] Error 2

And following on nginx-1.0.15:

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.o
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp.c
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp.c: In function 'ngx_rtmp_optimize_servers':
/root/nginx/rtmp/nginx-rtmp-module/ngx_rtmp.c:596:15: error: 'ngx_listening_t' has no member named 'keepalive'
make[1]: *** [objs/addon/nginx-rtmp-module/ngx_rtmp.o] Error 1
make[1]: Leaving directory `/root/nginx/nginx-1.0.15'
make: *** [build] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants