nginx报错:src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fa
报错:
make -f objs/Makefile install
make[1]: Entering directory '/usr/local/nginx/nginx-1.7.7'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/ngx_murmurhash.o \
src/core/ngx_murmurhash.c
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
objs/Makefile:439: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
make[1]: *** [objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/usr/local/nginx/nginx-1.7.7'
Makefile:12: recipe for target 'install' failed
make: *** [install] Error 2
解决:
原因:将警告当成错误处理
解决错误1:进入到nginx-1.6.3目录下(解压的目录)
找到当前目录下找到objs文件夹,并进入,打开文件Makefile,找到有一下内容的这行:
CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
-Werror: gcc将所有的警告当成错误进行处理把这行内容中的 “-Werror”去掉
nginx报错:src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fa相关推荐
- [安装fastfds中的nginx执行make命令报错]src/core/ngx_murmurhash.c:37:11: error
问题 在nginx文件夹里执行make命令报错 src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-We ...
- 报错解决:error: this statement may fall through [-Werror=implicit-fallthrough=]
下午在编译 grpc时报错如下: utilities/blob_db/blob_log_reader.cc:74:18: error: this statement may fall through ...
- make[1]: *** [objs/Makefile:445: objs/src/core/ngx_murmurhash.o] Error
执行完make以后报错 make[1]: *** [objs/Makefile:445: objs/src/core/ngx_murmurhash.o] Error 1 make[1]: Leavin ...
- linux升级 nginx报错,Linux下升级nginx,编译安装nginx-sticky-module
添加一个nginx-sticky-module模块,可以防止session丢失,使用nginx sticky模块实现基于cookie的负载均衡. 注:建议去官网下载安装包 ${0}:安装包所在目录:$ ...
- nginx 报错 99: Cannot assign requested address
为什么80%的码农都做不了架构师?>>> nginx 报错 99: Cannot assign requested address net.ipv4.ip_local_port ...
- Nginx报错:nginx: [emerg] CreateFile() nginx.conf“ failed (3: The system cannot find the path specified
windows下启动nginx报错: nginx: [emerg] CreateFile() "D:\桌面\nginx-1.12.0/conf/nginx.conf" failed ...
- [nginx报错]---unknown directive chunkin in /XXXXX/XXXXXX:XX的几种解决方式
问题: nginx报错:unknown directive "chunkin" in /XXXXX/XXXXXX:XX 解决: 当出现unknown directive,一般有个反 ...
- Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】...
nginx日志报错 2018/01/26 16:36:49 [error] 23327#0: *54953 upstream timed out (110: Connection timed out) ...
- nginx 报错 upstream timed out (110: Connection timed out)解决方案
nginx 报错 upstream timed out (110: Connection timed out)解决方案 参考文章: (1)nginx 报错 upstream timed out (11 ...
最新文章
- ADO与ADO.NET的区别与介绍
- CASS 7.1 和 AutoCAD 2006的安装使用
- [导入]注意!玩具也能成危险
- vue2.0 项目搭建 和vue 2.0 electron 项目搭建
- HiveSQL运行优化参数配置
- 简单三步,用 Python 发邮件
- 烟台大学计算机学院老师,王鹏-烟台大学计算机与控制工程学院
- python机器学习入门(Day1:Numpy)
- KM 最优匹配 讲解
- 【软件开发底层知识修炼】十七 快速学习GDB调试四 使用GDB进行函数调用栈的查看
- [Perl] Python 与 Perl 合并,打造史上最牛语言 Parrot
- python函数使用两个小括号
- java对类数组进行排序_Java比较器类对数组进行排序
- 股票收市前三分钟下单有效吗?
- [转载]C# Socket编程 同步以及异步通信
- 手把手教你做视频播放器(二)-获取视频信息
- ASO积分墙优化,差点毁了我家产品
- Vue 事件修饰符(stop、prevent、self、capture、once、passive)
- win10专业版激活方法
- 各种转码(bytes、string、base64、numpy array、io、BufferedReader )