Welcome! Log In Create A New Profile

Advanced

Re: Compilation error on CentOS-5.7

Iqbal Aroussi
February 27, 2012 10:30AM
Hi Maxim,

Thanks for your reply.
Actually as I was asked to ad support for the *nginx_udplog_module* module
I copied the configuration options from *nginx -V* output.
I really appreciate your advise and I'll give it a try right away.

Best Regards

nginx -V
nginx: nginx version: nginx/1.0.0
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
nginx: TLS SNI support disabled
nginx: configure arguments: --user=nginx --group=nginx
--prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid
--lock-path=/var/lock/subsys/nginx --with-http_ssl_module
--with-http_realip_module --with-http_addition_module
--with-http_xslt_module --with-http_image_filter_module
--with-http_geoip_module --with-http_sub_module --with-http_dav_module
--with-http_flv_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_secure_link_module
--with-http_degradation_module --with-http_stub_status_module
--with-http_perl_module --with-mail --with-file-aio --with-mail_ssl_module
--with-ipv6 --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic' --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic'
*


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





On Mon, Feb 27, 2012 at 15:11, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Mon, Feb 27, 2012 at 02:48:06PM +0000, Iqbal Aroussi wrote:
>
> > Hi,
> >
> > Can you please help me overcome this problem. I'm trying to compile
> > Nginx + nginx_udplog_module
> > from source but I get this error: *cc1: warnings being treated as errors*
> > I tried with *nginx-1.0.0* the version in our production servers and *
> > nginx-1.0.12* the latest stable version.
>
> [...]
>
> > --with-ipv6 --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
> > -mtune=generic' --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
> > -mtune=generic' --add-module=/root/nginx_udplog_module-1.0.0
>
> You shoot yourself in the foot by using --with-cc-opt="... -Wall
> ...". This results in:
>
> > gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter
> > -Wunused-function -Wunused-variable -Wunused-value -Werror -g -O2 -g
> -pipe
> > -Wall -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 \
> > -o objs/src/core/nginx.o \
> > src/core/nginx.c
>
> 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.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Compilation error on CentOS-5.7

Iqbal Aroussi February 27, 2012 09:50AM

Re: Compilation error on CentOS-5.7

Adam Landas February 27, 2012 09:52AM

Re: Compilation error on CentOS-5.7

Iqbal Aroussi February 27, 2012 10:02AM

Re: Compilation error on CentOS-5.7

pradeepmohan September 25, 2013 03:47AM

Re: Compilation error on CentOS-5.7

trojan2748 February 27, 2012 09:53AM

Re: Compilation error on CentOS-5.7

Maxim Dounin February 27, 2012 10:12AM

Re: Compilation error on CentOS-5.7

Edho Arief February 27, 2012 10:18AM

Re: Compilation error on CentOS-5.7

Iqbal Aroussi February 27, 2012 10:30AM

Re: Compilation error on CentOS-5.7

Iqbal Aroussi February 27, 2012 10:42AM

Re: Compilation error on CentOS-5.7

Iqbal Aroussi February 27, 2012 10:52AM

Re: Compilation error on CentOS-5.7

Joshua Zhu February 27, 2012 11:12AM

Re: Compilation error on CentOS-5.7

Maxim Dounin February 27, 2012 11:16AM

Re: Compilation error on CentOS-5.7

Iqbal Aroussi February 27, 2012 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready