Compilation error on CentOS-5.7

Iqbal Aroussi iqbal at aroussi.name
Mon Feb 27 15:51:09 UTC 2012


Hi,

I was able to compile nginx alone without problems. however it doesn't
compile when I add *nginx_udplog_module-1.0.0* support "*
--add-module=/root/nginx_udplog_module-1.0.0*"
any hints ?

Best Regards

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 \
 -o objs/addon/nginx_udplog_module-1.0.0/ngx_http_udplog_module.o \
/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c
/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c: In function
‘ngx_udplog_init_endpoint’:
/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c:284: error:
incompatible types in assignment
/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c: In function
‘ngx_http_udplogger_send’:
/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c:338: error:
invalid type argument of ‘->’
/root/nginx_udplog_module-1.0.0/ngx_http_udplog_module.c:338: error:
incompatible type for argument 2 of ‘ngx_log_error_core’
make[1]: ***
[objs/addon/nginx_udplog_module-1.0.0/ngx_http_udplog_module.o] Error 1
make[1]: Leaving directory `/root/nginx-1.0.12'
make: *** [build] Error 2

*


--
*
*Iqbal Aroussi*
 *+212 665 025 032*
 *iqbal at aroussi.name*


On Mon, Feb 27, 2012 at 15:41, Iqbal Aroussi <iqbal at aroussi.name> wrote:

> Hi Maxim,
>
> Thanks a lot  for your expertise. I removed the *-Wall* option and
> everything worked perfectly, without the need to remove *-Werror*
>
> Best Regards.
> Really appreciate your support.
>
> *--*
> *Iqbal Aroussi*
>  *+212 665 025 032*
>  *iqbal at aroussi.name*
>
>
>
>
>
> On Mon, Feb 27, 2012 at 15:11, Maxim Dounin <mdounin at mdounin.ru> wrote:
>
>> I.e. warning options set by nginx (notably "-Wall ...
>> -Wno-unused-parameter") are overriden by your "-Wall" which comes
>> later, and this results in compilation failure due to "-Werror"
>> also set by nginx.
>>
>> Not passing "-Wall" by hand will fix this while still ensure that
>> warnings unexpected in the nginx source code will be fatal.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120227/95802021/attachment-0001.html>


More information about the nginx mailing list