解决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);
然后可以了.
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);
然后可以了.
相关文章推荐
- 交叉编译dbus模块到Qt 遇到的错误及解决
- 交叉编译dbus模块到Qt 遇到的错误及解决
- VS2012 Release编译时出现 “error LNK2026: 模块对于 SAFESEH 映像是不安全的。” 错误提示的解决方法
- 为Apache编译添加mod_expires模块出错的解决笔记[原创]
- android 编译STL模块相关错误解决
- apache python 模块mod_wsgi的编译安装
- Lua cjson模块编译笔记及错误解决方法
- 交叉编译dbus模块到Qt 遇到的错误及解决
- 解决编译内核模块helloworld.c:1: 错误:代码模式‘kernel’在 32 位模式下不受支持问题,未编译对64位的支持
- VS2012 Release编译时出现 “error LNK2026: 模块对于 SAFESEH 映像是不安全的。” 错误提示的解决方法
- android 编译STL模块相关错误解决
- opencv3.2.0+opencv_contrib扩展模块+VS2015+CMake 编译opencv(完美解决编译错误)
- Python在windows下安装模块出现编译错误解决方法
- 交叉编译dbus模块到Qt 遇到的错误及解决
- MAC OS上编译mod_wsgi不成功问题的解决办法
- 编译Android系统AIDL模块出现couldn't find import for class错误的解决办法
- Android系统编译错误Note: Some input files use or override a deprecated API. 解决办法
- VS2010出现FileTracker : error FTK1011编译错误的解决办法
- openwrt编译Build dependency: Please do not compile as root.错误解决