Mod wsgi

Hello Everyone,
Tried add mod wsgi and compilation fail. Any help thank you in advance.

    -o objs/addon/src/ngx_http_wsgi_module.o \
    /home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:184:
error: 'ngx_garbage_collector_temp_handler' undeclared here (not in a
function)
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:184:
warning: missing initializer
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:184:
warning: (near initialization for 'ngx_http_wsgi_commands[12].post')
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:
In function 'ngx_http_wsgi_merge_loc_conf':
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:373:
warning: passing argument 1 of 'ngx_conf_merge_path_value' from 
incompatible
pointer type
src/core/ngx_file.h:142: note: expected 'struct ngx_conf_t *' but 
argument
is of type 'struct ngx_path_t *'
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:373:
warning: passing argument 2 of 'ngx_conf_merge_path_value' from 
incompatible
pointer type
src/core/ngx_file.h:142: note: expected 'struct ngx_path_t **' but 
argument
is of type 'struct ngx_path_t *'
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:373:
warning: passing argument 3 of 'ngx_conf_merge_path_value' from 
incompatible
pointer type
src/core/ngx_file.h:142: note: expected 'struct ngx_path_t *' but 
argument
is of type 'char *'
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:373:
warning: passing argument 4 of 'ngx_conf_merge_path_value' makes pointer
from integer without a cast
src/core/ngx_file.h:142: note: expected 'struct ngx_path_init_t *' but
argument is of type 'int'
/home/volga629/rpmbuild/BUILD/nginx-1.4.4/mod_wsgi/src/ngx_http_wsgi_module.c:373:
error: too many arguments to function 'ngx_conf_merge_path_value'
make[1]: *** [objs/addon/src/ngx_http_wsgi_module.o] Error 1
make[1]: Leaving directory `/home/volga629/rpmbuild/BUILD/nginx-1.4.4'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ajqqDV (%build)

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,245873,245873#msg-245873

On 27/12/2013 10:15, volga629 wrote:

Hello Everyone,
Tried add mod wsgi and compilation fail. Any help thank you in advance.

Hi.

The WSGI module is not compatible with recent Nginx versions.
It is time to update the code. I also plan to convert the repository
from Mercurial to Git and push it on github.

It will take at least one week, however.

Finally, note that the Nginx WSGI module is not for the
“casual web application”. There are some issues, since execution of
Python code will block an entire Nginx worker process. This may be ok
for some applications, but may be a problem with other applications
where a different WSGI implementation (like uWSGI or Apache mod_wsgi)
may be a better solution.

[…]

Regards Manlio P.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs