Hi,<br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 11:51 PM, Iqbal Aroussi <span dir="ltr"><<a href="mailto:iqbal@aroussi.name">iqbal@aroussi.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><font face="verdana,sans-serif">Hi, </font><div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">I was able to compile nginx alone without problems. however it doesn't compile when I add </font><font face="verdana, sans-serif"><b>nginx_udplog_module-1.0.0</b> support "<b>--add-module=/root/nginx_udplog_module-1.0.0</b></font><span style="font-family:verdana,sans-serif">"</span></div>
<div><span style="font-family:verdana,sans-serif">any hints ? </span></div><div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif">Best Regards</span></div><div>
<span style="font-family:verdana,sans-serif"><br></span></div><div><div style="font-family:verdana,sans-serif">gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/modules/perl -I src/mail \</div>
<div style="font-family:verdana,sans-serif"><span style="white-space:pre-wrap"> </span>-o objs/addon/nginx_udplog_module-1.0.0/ngx_http_udplog_module.o \</div><div style="font-family:verdana,sans-serif"><span style="white-space:pre-wrap"> </span>/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c</div>
<div style="font-family:verdana,sans-serif">/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c: In function ‘ngx_udplog_init_endpoint’:</div><div style="font-family:verdana,sans-serif">/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c:284: error: incompatible types in assignment</div>
<div style="font-family:verdana,sans-serif">
/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c: In function ‘ngx_http_udplogger_send’:</div><div style="font-family:verdana,sans-serif">/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c:338: error: invalid type argument of ‘->’</div>
<div style="font-family:verdana,sans-serif">/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c:338: error: incompatible type for argument 2 of ‘ngx_log_error_core’</div>
<div style="font-family:verdana,sans-serif">make[1]: *** [objs/addon/nginx_udplog_module-1.0.0/ngx_http_udplog_module.o] Error 1</div><div style="font-family:verdana,sans-serif">make[1]: Leaving directory `/root/nginx-1.0.12'</div>
<div class="im"><div style="font-family:verdana,sans-serif">make: *** [build] Error 2</div></div></div></div></blockquote><div><br></div><div>If you need the syslog feature, maybe you can give Tengine (<a href="http://tengine.taobao.org">http://tengine.taobao.org</a>) a try? It is a nginx distribution with native syslog support: <a href="http://tengine.taobao.org/document/http_log.html">http://tengine.taobao.org/document/http_log.html</a></div>
<div><br></div><div>Regards,</div><div><br></div></div>-- <br>Joshua Zhu<br>Senior Software Engineer<br>Server Platforms Team at Taobao<br>