<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">Can you please help me overcome this problem. I'm trying to compile Nginx + </font><font face="verdana, sans-serif">nginx_udplog_module from source but I get this error: <b>cc1: warnings being treated as errors</b></font></div>
<div><font face="verdana, sans-serif">I tried with <b>nginx-1.0.0</b></font><span style="font-family:verdana,sans-serif"> the version in our production servers and </span><b style="font-family:verdana,sans-serif">nginx-1.0.12</b><span style="font-family:verdana,sans-serif"> the latest stable version.</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><span style="font-family:verdana,sans-serif"><b>Compilation env:</b> </span></div>
<div><font face="verdana, sans-serif">CentOS release 5.7 (Final)</font></div><div><div style="font-family:verdana,sans-serif"><b>uname -a</b></div><div style="font-family:verdana,sans-serif">Linux 2.6.18-274.18.1.el5 #1 SMP Thu Feb 9 12:45:44 EST 2012 x86_64 x86_64 x86_64 GNU/Linux</div>
<div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif"><div><b>gcc -v</b></div><div>Using built-in specs.</div><div>Target: x86_64-redhat-linux</div><div>Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux</div>
<div>Thread model: posix</div><div>gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)</div><div><br></div><div><b>Configure options:</b></div></div><div><font face="verdana, sans-serif">./configure --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' --add-module=/root/nginx_udplog_module-1.0.0</font></div>
</div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif"><b>Output:</b></font></div><div><font face="verdana, sans-serif"><div>checking for OS</div><div> + Linux 2.6.18-274.18.1.el5 x86_64</div>
<div>checking for C compiler ... found</div><div> + using GNU C compiler</div><div> + gcc version: 4.1.2 20080704 (Red Hat 4.1.2-51)</div><div>checking for gcc -pipe switch ... found</div><div>checking for gcc builtin atomic operations ... found</div>
<div>checking for C99 variadic macros ... found</div><div>checking for gcc variadic macros ... found</div><div>checking for unistd.h ... found</div><div>checking for inttypes.h ... found</div><div>checking for limits.h ... found</div>
<div>checking for sys/filio.h ... not found</div><div>checking for sys/param.h ... found</div><div>checking for sys/mount.h ... found</div><div>checking for sys/statvfs.h ... found</div><div>checking for crypt.h ... found</div>
<div>checking for Linux specific features</div><div>checking for epoll ... found</div><div>checking for sendfile() ... found</div><div>checking for sendfile64() ... found</div><div>checking for sys/prctl.h ... found</div>
<div>checking for prctl(PR_SET_DUMPABLE) ... found</div><div>checking for sched_setaffinity() ... found</div><div>checking for crypt_r() ... found</div><div>checking for sys/vfs.h ... found</div><div>checking for poll() ... found</div>
<div>checking for /dev/poll ... not found</div><div>checking for kqueue ... not found</div><div>checking for crypt() ... not found</div><div>checking for crypt() in libcrypt ... found</div><div>checking for F_READAHEAD ... not found</div>
<div>checking for posix_fadvise() ... found</div><div>checking for O_DIRECT ... found</div><div>checking for F_NOCACHE ... not found</div><div>checking for directio() ... not found</div><div>checking for statfs() ... found</div>
<div>checking for statvfs() ... found</div><div>checking for dlopen() ... not found</div><div>checking for dlopen() in libdl ... found</div><div>checking for sched_yield() ... found</div><div>checking for SO_SETFIB ... not found</div>
<div>checking for accept4() ... not found</div><div>checking for kqueue AIO support ... not found</div><div>checking for Linux AIO support ... found</div><div>configuring additional modules</div><div>adding module in /root/nginx_udplog_module-1.0.0</div>
<div> + ngx_http_udplog_module was configured</div><div>checking for PCRE library ... found</div><div>checking for OpenSSL library ... found</div><div>checking for zlib library ... found</div><div>checking for libxslt ... found</div>
<div>checking for libexslt ... found</div><div>checking for GD library ... found</div><div>checking for perl</div><div> + perl version: v5.8.8 built for x86_64-linux-thread-multi</div><div> + perl interpreter multiplicity found</div>
<div>checking for GeoIP library ... found</div><div>creating objs/Makefile</div><div>checking for int size ... 4 bytes</div><div>checking for long size ... 8 bytes</div><div>checking for long long size ... 8 bytes</div><div>
checking for void * size ... 8 bytes</div><div>checking for uint64_t ... found</div><div>checking for sig_atomic_t ... found</div><div>checking for sig_atomic_t size ... 4 bytes</div><div>checking for socklen_t ... found</div>
<div>checking for in_addr_t ... found</div><div>checking for in_port_t ... found</div><div>checking for rlim_t ... found</div><div>checking for uintptr_t ... uintptr_t found</div><div>checking for system endianess ... little endianess</div>
<div>checking for size_t size ... 8 bytes</div><div>checking for off_t size ... 8 bytes</div><div>checking for time_t size ... 8 bytes</div><div>checking for AF_INET6 ... found</div><div>checking for setproctitle() ... not found</div>
<div>checking for pread() ... found</div><div>checking for pwrite() ... found</div><div>checking for sys_nerr ... found</div><div>checking for localtime_r() ... found</div><div>checking for posix_memalign() ... found</div>
<div>checking for memalign() ... found</div><div>checking for mmap(MAP_ANON|MAP_SHARED) ... found</div><div>checking for mmap("/dev/zero", MAP_SHARED) ... found</div><div>checking for System V shared memory ... found</div>
<div>checking for struct msghdr.msg_control ... found</div><div>checking for ioctl(FIONBIO) ... found</div><div>checking for struct tm.tm_gmtoff ... found</div><div>checking for struct dirent.d_namlen ... not found</div>
<div>
checking for struct dirent.d_type ... found</div></font></div><div><font face="verdana, sans-serif"><div><br></div><div>Configuration summary</div><div> + using system PCRE library</div><div> + using system OpenSSL library</div>
<div> + md5: using OpenSSL library</div><div> + sha1 library is not used</div><div> + using system zlib library</div><div><br></div><div> nginx path prefix: "/usr/share/nginx"</div><div> nginx binary file: "/usr/sbin/nginx"</div>
<div> nginx configuration prefix: "/etc/nginx"</div><div> nginx configuration file: "/etc/nginx/nginx.conf"</div><div> nginx pid file: "/var/run/nginx.pid"</div><div> nginx error log file: "/var/log/nginx/error.log"</div>
<div> nginx http access log file: "/var/log/nginx/access.log"</div><div> nginx http client request body temporary files: "/var/lib/nginx/tmp/client_body"</div><div> nginx http proxy temporary files: "/var/lib/nginx/tmp/proxy"</div>
<div> nginx http fastcgi temporary files: "/var/lib/nginx/tmp/fastcgi"</div><div> nginx http uwsgi temporary files: "/var/lib/nginx/tmp/uwsgi"</div><div> nginx http scgi temporary files: "/var/lib/nginx/tmp/scgi"</div>
<div><br></div><div><b>Make:</b></div><div><div>make -f objs/Makefile</div><div>make[1]: Entering directory `/root/nginx-1.0.0'</div><div>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 \</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>-o objs/src/core/nginx.o \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>src/core/nginx.c</div><div>cc1: warnings being treated as errors</div>
<div>src/core/nginx.c: In function ‘ngx_set_user’:</div><div>src/core/nginx.c:1105: warning: unused parameter ‘cmd’</div><div>src/core/nginx.c: In function ‘ngx_set_env’:</div><div>src/core/nginx.c:1168: warning: unused parameter ‘cmd’</div>
<div>src/core/nginx.c: In function ‘ngx_set_priority’:</div><div>src/core/nginx.c:1198: warning: unused parameter ‘cmd’</div><div>src/core/nginx.c: In function ‘ngx_set_cpu_affinity’:</div><div>src/core/nginx.c:1238: warning: unused parameter ‘cmd’</div>
<div>make[1]: *** [objs/src/core/nginx.o] Error 1</div><div>make[1]: Leaving directory `/root/nginx-1.0.0'</div><div>make: *** [build] Error 2</div><div><br></div></div></font></div><div><div dir="ltr"><font face="tahoma, sans-serif"><font color="#666666"><div>
<font face="tahoma, sans-serif"><font color="#666666"><br></font></font></div><div><font face="tahoma, sans-serif"><font color="#666666"><b>Sincerely yours</b></font></font></div><div style="font-weight:bold"><span style="font-weight:normal"><b>--</b></span></div>
</font></font><div><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div><font face="tahoma, sans-serif"><b><font color="#666666">Iqbal Aroussi</font></b></font></div>
<div><span style="font-family:tahoma,sans-serif"><font color="#666666"><img src="http://lh4.ggpht.com/_0SCBOAjaUfo/TEoHScgM6zI/AAAAAAAAAB0/z8CPiweu0Wk/s800/BB12.jpg"> <b>+212 665 025 032</b></font></span></div><div><div style="color:rgb(0,0,0);font-family:arial;font-size:small">
<span style="font-family:tahoma,sans-serif"><font color="#666666"><img src="http://lh5.ggpht.com/_0SCBOAjaUfo/TFNZty8G-NI/AAAAAAAAACI/A0KkIfLPg4Q/s800/gmail-12.jpg"> <b><a href="mailto:iqbal@aroussi.name" target="_blank">iqbal@aroussi.name</a></b></font></span></div>
<div style="color:rgb(0,0,0);font-family:arial;font-size:small"><span style="font-family:tahoma,sans-serif;color:rgb(153,153,153)"><br></span></div><div style="color:rgb(0,0,0);font-family:arial;font-size:small"><div><div>
<span style="font-family:tahoma,sans-serif;color:rgb(153,153,153)"> </span></div></div></div></div></span></div></div><br>
</div></div>