Maintenance of mod_wsgi

Hello.

I was trying to compile the latest mod_wsgi from site:
http://hg.mperillo.ath.cx/nginx/mod_wsgi/ (as wiki suggest). But while
make I have error:

            /usr/src/mod_wsgi//src/ngx_http_wsgi_module.c

/usr/src/mod_wsgi//src/ngx_http_wsgi_module.c:159: error:
ngx_garbage_collector_temp_handler, undeclared here (not in a function) /usr/src/mod_wsgi//src/ngx_http_wsgi_module.c: in functionngx_http_wsgi_merge_loc_conf,:
/usr/src/mod_wsgi//src/ngx_http_wsgi_module.c:348: warning: passing
argument 1 of ngx_conf_merge_path_value, from incompatible pointer type /usr/src/mod_wsgi//src/ngx_http_wsgi_module.c:348: warning: passing argument 2 ofngx_conf_merge_path_value, from incompatible pointer
type
/usr/src/mod_wsgi//src/ngx_http_wsgi_module.c:348: warning: passing
argument 3 of ngx_conf_merge_path_value, from incompatible pointer type /usr/src/mod_wsgi//src/ngx_http_wsgi_module.c:348: warning: passing argument 4 ofngx_conf_merge_path_value, makes pointer from integer
without a projection
/usr/src/mod_wsgi//src/ngx_http_wsgi_module.c:348: error: to much
argumments for function ngx_conf_merge_path_value, make[1]: *** [objs/addon/src/ngx_http_wsgi_module.o] Error 1 make[1]: Leaving folder/usr/src/nginx-0.8.13’
make: *** [build] Error 2

nginx version: nginx/0.8.13

I don’t know if Manlio P. still maintenance this module. If
anyone could help with this… it would by nice :slight_smile:

Best Regards
Grzegorz
Sieñko

Grzegorz S. ha scritto:

Hello.

I was trying to compile the latest mod_wsgi from site:
http://hg.mperillo.ath.cx/nginx/mod_wsgi/ (as wiki suggest). But while
make I have error:

Yes, mod_wsgi only works with Nginx 0.5.x and (using a patch) with Nginx
0.6.x.

[…]
I don’t know if Manlio P. still maintenance this module. If
anyone could help with this… it would by nice :slight_smile:

It is more than an year since a made some changes to the code.
It works fine for me, using Nginx 0.5.x, so I have no urges to update
the module; I have other projects more important for me.

I also have plans to change some things, like removing support for
asynchronous extensions (API is not very usable) and add support for
greenlet, but I’m still not sure about this (greenlet may be unstable).

If you really need to work with recent versions of Nginx right now,
there is a patch from fredreichbier:
http://lophus.org/~fred/mod_wsgi_patch.dif

It also make some changes to Python specific code:

  1. Add support to Python 2.6
    (I suspect that this patch will only work on Python 2.6)
  2. Fix how SCRIPT_NAME is handled when the location contains a regex
    (I have yet to find a definitive solution to this problem)

Best Regards
Grzegorz Sieñko

Regards Manlio

I tried to complied nginx 0.8.14 with release mod_wsgi
(mod_wsgi-8994b058d2db) on Ubuntu9.04 (python2.6) I got the same error.
I tried to download patch from
http://lophus.org/~fred/mod_wsgi_patch.dif but it was not found.

Regards

Poramet

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

Hello!

Try again with double f as it is a diff file. Like this:
http://lophus.org/~fred/mod_wsgi_patch.diff

Bye,
a

Ok I can complied nginx0.5.35 with mod-wsgi (mod_wsgi-8994b058d2db) but
It need to patch.

Index: src/os/unix/ngx_linux_config.h

— src/os/unix/ngx_linux_config.h (revision 1337)
+++ src/os/unix/ngx_linux_config.h (working copy)
@@ -47,6 +47,7 @@

#include /* tzset() /
#include /
memalign() /
+#include /
IOV_MAX */
#include
#include
#include

reference: http://gcc.gnu.org/ml/gcc-help/2008-05/msg00202.html

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

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