error: statement with no effect [-Werror=unused-value]
完整错误如下:
make[1]: 进入目录“/home/quantum6/freeswitch/freeswitch-1.10.3”CC src/libfreeswitch_la-switch_core_cert.lo
In file included from ./src/include/switch_ssl.h:39:0,from src/switch_core_cert.c:33:
src/switch_core_cert.c: In function ‘switch_ssl_init_ssl_locks’:
/home/quantum6/build_libs/include/openssl/crypto.h:235:57: error: statement with no effect [-Werror=unused-value]# define CRYPTO_THREADID_set_callback(threadid_func) (0)^
src/switch_core_cert.c:72:3: note: in expansion of macro ‘CRYPTO_THREADID_set_callback’CRYPTO_THREADID_set_callback(switch_ssl_ssl_thread_id);^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:2269: recipe for target 'src/libfreeswitch_la-switch_core_cert.lo' failed
make[1]: *** [src/libfreeswitch_la-switch_core_cert.lo] Error 1
解决办法,增加 -Wno-error=unused-value:
./configure \--prefix=${BUILD_LIBS} \--disable-core-libedit-support \CFLAGS="-I${BUILD_LIBS}/include -Wno-error=unused-value" \LDFLAGS=-L${BUILD_LIBS}/lib# 这个参数无效。
# --disable-werror
error: statement with no effect [-Werror=unused-value]相关推荐
- 报错解决: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 ...
- 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 - ...
- C warning:statement with no effect [-Wunused-va...
2019独角兽企业重金招聘Python工程师标准>>> 之前做毕设的时候(4.5月份的时候了)初步了解了SLEPc库的使用,准备把一个示例改写为从一个文本文件中获取矩阵的各个元素,然 ...
- warning: statement has no effect [-Wunused-value]
Qt下编程这行代码报错 memcmp(pDest,pSrc,src.cols); 错误: /home/tsx/Qt/imageShow/mainwindow.cpp:92: warning: stat ...
- C++报错:[Warning] statement has no effect [-Wunused-value]
出错代码示例: int a[15]{}; for(int i=1;i<=10;i++) {a==0; } 其中的 a==0; 没有意义. 应改成 a=0; 所以正确源代码应为 int a[15] ...
- 【开发日常】【Makefile】编译时如何将警告(warning)视为错误(error)?
我们有时会遇到内核编译时警告(warning)被视为错误(error)等问题 在内核源码中,移植外部驱动模块,出现报错: error: unused variable 'xxx' [-Werror=u ...
- [安装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 ...
- 安装nginx:src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘curren
错误一:安装nginx报错"src/os/unix/ngx_user.c:26:7: error: 'struct crypt_data' has no member named 'curr ...
- 聚类标准误(cluster standard errors)是什么,什么情况下需要聚类,控制了固定效应(fixed effect)还需要聚类吗?
Cluster standard errors又称 or Liang-Zeger standard errors. 1. Intuition-一个经典的例子 如果想考察一项新的教学方式,如引入课堂投影 ...
- minigui:mips平台交叉编译报错error: include location /usr/include/ is unsafe for cross-compilation
今天在对minigui做交叉编译,下面是编译的部分脚本 ./configure \--host=$host \--with-runmode=ths \--prefix=$_prefix \|| exi ...
最新文章
- Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
- 会说话的狗狗本电脑版_会说话的电脑有点酷!惠普星14帮你解锁“偷懒”新姿势_惠普 星 14 2020(i5 1135G7/16GB/512GB/MX450)_笔记本新闻...
- 一些有用的Linux命令
- tensorflow从入门到精通100讲(一)-如何申明一个tensor,Tensorflow中最重要的基本操作
- python 接雨水
- 综评:5个方面看刚刚发布的Kubernetes 1.12
- java 和_java中的和=是什么意思
- 【Python3】py脚本打包成exe
- VIM总结之一:VIM编辑器常用命令详解
- ajax双子星,荷兰双子星德里赫特和德容哪个厉害
- iPhone12白苹果无法开机,这种情况你有遇到吗?
- 计算机主机前耳机没声音,win7系统电脑前面耳机没声音怎么办
- wince 播放器 最终版本
- VMWare ESXi thin磁盘空间回收,精简置备空间回收
- 云集品以共享经济为幌子因涉及传销被关闭,做社交电商防止误入
- 如何优雅地弄好PCB丝印
- 11张图读懂可口可乐供应链的管理精髓
- 网络--keytool自签名SSL证书(免费)以及私钥签名、公钥验签
- 显示屏播放服务器S3的前身,道可视S3+高端音乐车机略胜一筹
- 手机mysql数据库app下载安装_MySQL数据库的下载安装