编译mosquitto出现的问题
[root@localhost mosquitto-1.3]# make WITH_TLS=no
set -e; for d in lib client src; do make -C ${d}; done
make[1]: Entering directory `/qyl/mosquitto-1.3/lib'
cc -Wall -ggdb -O2 -I. -I.. -I../lib -fPIC -DWITH_THREADING -DWITH_SRV -c mosquitto.c -o mosquitto.o
In file included from mosquitto.c:46:
mosquitto_internal.h:51:20: error: ares.h: No such file or directory
In file included from mosquitto.c:46:
mosquitto_internal.h:238: error: expected specifier-qualifier-list before ?.res_channel?
mosquitto.c: In function ?.osquitto_loop?.
mosquitto.c:834: error: ?.truct mosquitto?.has no member named ?.chan?
mosquitto.c:837: warning: implicit declaration of function ?.res_fds?
mosquitto.c:837: error: ?.truct mosquitto?.has no member named ?.chan?
mosquitto.c:917: error: ?.truct mosquitto?.has no member named ?.chan?
mosquitto.c:918: warning: implicit declaration of function ?.res_process?
mosquitto.c:918: error: ?.truct mosquitto?.has no member named ?.chan?
make[1]: *** [mosquitto.o] Error 1
make[1]: Leaving directory `/qyl/mosquitto-1.3/lib'
make: *** [mosquitto] Error 2
在lib/mosquitto_internal.h里面找到ares.h,发现这个头文件是由宏定义WITH_SRV控制的。
不知道SRV SUPPORT是什么东西,但是查看mosquitto的更新日志,发现SRV support是今年3月16号才添加上的,我说去年源码安装一直没问题,今年怎么就不行了。
解决办法,在config.mk配置文件里面把srv support 关掉。如下图:
[plain] view plaincopy
# Build with SRV lookup support.
WITH_SRV:=no
再执行make,就可以顺利安装了。
最新文章
- 显示转换explicit和隐式转换implicit
- Windows10环境配置nat123端口映射访问mysql
- 中文乱码~Windows 7
- EditorGUILayout.EnumPopup 枚举弹出选择菜单
- iOS10 UI教程视图和子视图的可见性
- [原创]AHA大会回顾
- python 的import机制2
- 问题解决——在结构体中使用set保存结构体数据
- Android 自定义View修炼-自定义加载进度动画XCLoadingImageView
- Eclipse优化集合,Eclipse优化速度,解决Ctrl+C、Ctrl+V卡
- BZOJ 1042: [HAOI2008]硬币购物( 背包dp + 容斥原理 )
- (hdu step 7.1.2)You can Solve a Geometry Problem too(乞讨n条线段,相交两者之间的段数)
- 通过自动回复机器人学Mybatis 笔记:接口式编程
- Go笔记-指针
- jQuery-01:on live bind delegate
- ANOVA-方差分析和单尾方差分析
- less点滴
- MetaMask/metamask-inpage-provider
- Java从零开始学十七(简单工厂)
- Fiddler使用总结(二)
热门文章
- SQLite使用事务更新—by command
- [0.1]Plan of kidsearch
- CSS3实现翻转菜单效果
- Python写的东西在CMD下打印中文
- Codeforces Round #333 (Div. 1) C. Kleofáš and the n-thlon 树状数组优化dp
- delphi 自动滚动到最底端scroll
- Android无法生成R文件的终极解决办法
- range-bar
- Apache Solr采用Java开发、基于Lucene的全文搜索服务器
- OpenStack Magnum 项目简单介绍