报错:

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相关推荐

  1. [安装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 ...

  2. 报错解决: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 ...

  3. 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 ...

  4. linux升级 nginx报错,Linux下升级nginx,编译安装nginx-sticky-module

    添加一个nginx-sticky-module模块,可以防止session丢失,使用nginx sticky模块实现基于cookie的负载均衡. 注:建议去官网下载安装包 ${0}:安装包所在目录:$ ...

  5. nginx 报错 99: Cannot assign requested address

    为什么80%的码农都做不了架构师?>>>    nginx 报错 99: Cannot assign requested address net.ipv4.ip_local_port ...

  6. 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 ...

  7. [nginx报错]---unknown directive chunkin in /XXXXX/XXXXXX:XX的几种解决方式

    问题: nginx报错:unknown directive "chunkin" in /XXXXX/XXXXXX:XX 解决: 当出现unknown directive,一般有个反 ...

  8. 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) ...

  9. nginx 报错 upstream timed out (110: Connection timed out)解决方案

    nginx 报错 upstream timed out (110: Connection timed out)解决方案 参考文章: (1)nginx 报错 upstream timed out (11 ...

最新文章

  1. ADO与ADO.NET的区别与介绍
  2. CASS 7.1 和 AutoCAD 2006的安装使用
  3. [导入]注意!玩具也能成危险
  4. vue2.0 项目搭建 和vue 2.0 electron 项目搭建
  5. HiveSQL运行优化参数配置
  6. 简单三步,用 Python 发邮件
  7. 烟台大学计算机学院老师,王鹏-烟台大学计算机与控制工程学院
  8. python机器学习入门(Day1:Numpy)
  9. KM 最优匹配 讲解
  10. 【软件开发底层知识修炼】十七 快速学习GDB调试四 使用GDB进行函数调用栈的查看
  11. [Perl] Python 与 Perl 合并,打造史上最牛语言 Parrot
  12. python函数使用两个小括号
  13. java对类数组进行排序_Java比较器类对数组进行排序
  14. 股票收市前三分钟下单有效吗?
  15. [转载]C# Socket编程 同步以及异步通信
  16. 手把手教你做视频播放器(二)-获取视频信息
  17. ASO积分墙优化,差点毁了我家产品
  18. Vue 事件修饰符(stop、prevent、self、capture、once、passive)
  19. win10专业版激活方法
  20. 各种转码(bytes、string、base64、numpy array、io、BufferedReader )

热门文章

  1. Python-IO编程和异常
  2. linux 环境安装 webdav 服务
  3. iOS游戏开发之使用 Spritekit 框架和 Swift 的 iOS 2D 太空射击游戏(教程含源码)
  4. 斐波那契数列求和——C语言(小白版)
  5. JAVA Swing + Jdbc 实现宿舍管理系统
  6. Office与visio的快速下载与安装
  7. 视频目标检测与轨迹跟踪代码案例
  8. java截取视频空间的中间段
  9. Springboot2+hibernate5 sessionFactory配置
  10. ALBB 二叉树中相差最大节点的绝对差值