src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’:

src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]

         h ^= data[2] << 16;

         ~~^~~~~~~~~~~~~~~~

src/core/ngx_murmurhash.c:38:5: note: here

     case 2:

     ^~~~

src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]

         h ^= data[1] << 8;

         ~~^~~~~~~~~~~~~~~

src/core/ngx_murmurhash.c:40:5: note: here

     case 1:

     ^~~~

cc1: all warnings being treated as errors

make[1]: *** [objs/Makefile:470: objs/src/core/ngx_murmurhash.o] Error 1

make[1]: Leaving directory '/home/software/nginx-1.10.3'

make: *** [Makefile:8: build] Error 2

前期已经安装了相应的包了

yum -y install gcc gcc-c++ make automake autoconf 
pcre pcre-devel zlib zlib-devel openssl openssl-devel libtool


./configure  --prefix=/usr/local/nginx  
--sbin-path=/usr/local/nginx/sbin/nginx 
--conf-path=/usr/local/nginx/conf/nginx.conf 
--error-log-path=/var/log/nginx/error.log  
--http-log-path=/home/log/nginx/access.log  
--pid-path=/var/run/nginx/nginx.pid 
--lock-path=/var/lock/nginx.lock  
--user=nginx --group=nginx 
--with-http_ssl_module 
--with-http_stub_status_module 
--with-http_gzip_static_module 
--http-client-body-temp-path=/var/tmp/nginx/client/ 
--http-proxy-temp-path=/var/tmp/nginx/proxy/ 
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ 
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi 
--http-scgi-temp-path=/var/tmp/nginx/scgi 
--with-pcre

make & make install 出错

结果发现是1.10.3版本的问题,换成稳定版1.18.0就没有错误了。