您的位置:首页 > 其它

解决Mod_wsgi模块的编译错误

2008-10-07 17:22 183 查看
在编译nginx的mod_wsgi模块时, 会碰到一个错误.

cc1: warnings being treated as errors
../mod_wsgi/src/ngx_http_wsgi_module.c: In function ‘ngx_http_wsgi_handler’:
../mod_wsgi/src/ngx_http_wsgi_module.c:624: warning: implicit declaration of function ‘ngx_http_discard_body’
make[1]: *** [objs/addon/src/ngx_http_wsgi_module.o] Error 1

原因是Nginx在升级的时候, 修改了一个接口的函数名.
修改:
ngx_http_wsgi_module.c

624行:

- rc = ngx_http_discard_body(r);
+rc = ngx_http_discard_request_body(r);
然后可以了.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: