yangzi129 / nginx-upstream-jvm-route

Automatically exported from code.google.com/p/nginx-upstream-jvm-route
0 stars 0 forks source link

error: variable ‘cookie’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd ~/Desktop/nginx-1.2.1
2. #:~/Desktop/nginx-1.2.1$ patch -p0 < 
/home/emad/Desktop/nginx_upstream_jvm_route/jvm_route.patch
3. #:~/Desktop/nginx-1.2.1$ ./configure 
--add-module=/home/emad/Desktop/nginx_upstream_jvm_route
4. make

the result below :

/home/emad/Desktop/nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c
/home/emad/Desktop/nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c
: In function ‘ngx_http_upstream_get_jvm_route_peer’:
/home/emad/Desktop/nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c
:321:35: error: variable ‘cookie’ set but not used 
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** 
[objs/addon/nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.o] 
Error 1
make[1]: Leaving directory `/home/emad/Desktop/nginx-1.2.1'
make: *** [build] Error 2

OS : Ubuntu Server 12.04 LTS

Original issue reported on code.google.com by emad.alb...@gmail.com on 14 Jun 2012 at 6:42

GoogleCodeExporter commented 9 years ago
I have fixed the error by downloading the latest source from svn

Thank you 

Original comment by emad.alb...@gmail.com on 14 Jun 2012 at 7:07

GoogleCodeExporter commented 9 years ago
“Comment 1 by emad.alb...@gmail.com, Jun 14, 2012
I have fixed the error by downloading the latest source from svn

Thank you ”

 Excuse me.it's means download lasted.tar.gz(nginx) or the newest nginx_upstream_jvm_route package? I encountered the same problem, but yet to be resolved.

Original comment by sebastia...@gmail.com on 6 Jul 2012 at 9:30

GoogleCodeExporter commented 9 years ago
You can use the source code from the svn repository: 

svn checkout http://nginx-upstream-jvm-route.googlecode.com/svn/trunk/ 
nginx-upstream-jvm-route-read-only

Original comment by nbubi...@gmail.com on 6 Jul 2012 at 9:49

GoogleCodeExporter commented 9 years ago
great~ 
it's ok,thanks! 

Original comment by sebastia...@gmail.com on 6 Jul 2012 at 12:55