Hello,<br><br>I&#39;m compiling Nginx-0.6.38 + mod_wsgi.<br>I encountered 2 error, and I can&#39;t solve the second one.<br><br>The versions of my software:<br><ul><li>Fedora 11<br></li><li>Nginx 0.6.38</li><li>mod_wsgi (tip version, mod_wsgi-8994b058d2db)</li>
<li>GCC 4.4.1</li><li>Python 2.6<br></li></ul><br>In the middle of my compilation. I first encountered this error:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<span style="font-family: courier new,monospace;">cc1: warnings being treated as errors</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_http_wsgi_handler.c: In function ‘ngx_http_wsgi_handler’:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_http_wsgi_handler.c:74: error: implicit declaration of function ‘ngx_http_discard_body’</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make[1]: *** [objs/addon/src/ngx_http_wsgi_handler.o] Error 1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">make[1]: Leaving directory `/usr/local/src/nginx-0.6.38&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make: *** [build] Error 2</span><br>
</blockquote><div><br>After some Googling, I solved it by changing the line 74 into this:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<span style="font-family: courier new,monospace;">rc = ngx_http_discard_request_body(r);   <span style="color: rgb(102, 102, 102);">// rc = ngx_http_discard_body(r);</span></span><br></blockquote><br>And this is solved. <br>
<br><br><br>However, I encountered a secound error:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><span style="font-family: courier new,monospace;">cc1: warnings being treated as errors</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:291: error: missing initializer</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:291: error: (near initialization for ‘Log_Type.tp_version_tag’)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:455: error: missing initializer</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:455: error: (near initialization for ‘Stream_Type.tp_version_tag’)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:1148: error: missing initializer</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:1148: error: (near initialization for ‘State_Type.tp_version_tag’)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:1250: error: missing initializer</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:1250: error: (near initialization for ‘Queue_Type.tp_version_tag’)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:1407: error: missing initializer</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../mod_wsgi/src/ngx_wsgi.c:1407: error: (near initialization for ‘Connection_Type.tp_version_tag’)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">make[1]: *** [objs/addon/src/ngx_wsgi.o] Error 1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make[1]: Leaving directory `/usr/src/nginx-0.6.38&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">make: *** [build] Error 2</span><br></blockquote><br>Which, I found no solution with Google.<br>Any suggestion? Please help.<br><br><br>Koala Yeung<br></div>