1. [root@localhost mosquitto-1.3]# make WITH_TLS=no

  2. set -e; for d in lib client src; do make -C ${d}; done

  3. make[1]: Entering directory `/qyl/mosquitto-1.3/lib'

  4. cc -Wall -ggdb -O2  -I. -I.. -I../lib -fPIC -DWITH_THREADING -DWITH_SRV -c mosquitto.c -o mosquitto.o

  5. In file included from mosquitto.c:46:

  6. mosquitto_internal.h:51:20: error: ares.h: No such file or directory

  7. In file included from mosquitto.c:46:

  8. mosquitto_internal.h:238: error: expected specifier-qualifier-list before ?.res_channel?

  9. mosquitto.c: In function ?.osquitto_loop?.

  10. mosquitto.c:834: error: ?.truct mosquitto?.has no member named ?.chan?

  11. mosquitto.c:837: warning: implicit declaration of function ?.res_fds?

  12. mosquitto.c:837: error: ?.truct mosquitto?.has no member named ?.chan?

  13. mosquitto.c:917: error: ?.truct mosquitto?.has no member named ?.chan?

  14. mosquitto.c:918: warning: implicit declaration of function ?.res_process?

  15. mosquitto.c:918: error: ?.truct mosquitto?.has no member named ?.chan?

  16. make[1]: *** [mosquitto.o] Error 1

  17. make[1]: Leaving directory `/qyl/mosquitto-1.3/lib'

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

  1. # Build with SRV lookup support.

  2. WITH_SRV:=no

再执行make,就可以顺利安装了。

最新文章

  1. 显示转换explicit和隐式转换implicit
  2. Windows10环境配置nat123端口映射访问mysql
  3. 中文乱码~Windows 7
  4. EditorGUILayout.EnumPopup 枚举弹出选择菜单
  5. iOS10 UI教程视图和子视图的可见性
  6. [原创]AHA大会回顾
  7. python 的import机制2
  8. 问题解决——在结构体中使用set保存结构体数据
  9. Android 自定义View修炼-自定义加载进度动画XCLoadingImageView
  10. Eclipse优化集合,Eclipse优化速度,解决Ctrl+C、Ctrl+V卡
  11. BZOJ 1042: [HAOI2008]硬币购物( 背包dp + 容斥原理 )
  12. (hdu step 7.1.2)You can Solve a Geometry Problem too(乞讨n条线段,相交两者之间的段数)
  13. 通过自动回复机器人学Mybatis 笔记:接口式编程
  14. Go笔记-指针
  15. jQuery-01:on live bind delegate
  16. ANOVA-方差分析和单尾方差分析
  17. less点滴
  18. MetaMask/metamask-inpage-provider
  19. Java从零开始学十七(简单工厂)
  20. Fiddler使用总结(二)

热门文章

  1. SQLite使用事务更新—by command
  2. [0.1]Plan of kidsearch
  3. CSS3实现翻转菜单效果
  4. Python写的东西在CMD下打印中文
  5. Codeforces Round #333 (Div. 1) C. Kleofáš and the n-thlon 树状数组优化dp
  6. delphi 自动滚动到最底端scroll
  7. Android无法生成R文件的终极解决办法
  8. range-bar
  9. Apache Solr采用Java开发、基于Lucene的全文搜索服务器
  10. OpenStack Magnum 项目简单介绍