개발자의 노트
반응형

Mosquitto 1.3.1 버전을 설치하는데 make 에서 에러가 발생..


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


 

# make

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

make[1]: Entering directory `/usr/local/mosquitto/lib'

cc -Wall -ggdb -O2  -I. -I.. -I../lib -fPIC -DWITH_TLS -DWITH_TLS_PSK -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 'ares_channel'

mosquitto.c: In function 'mosquitto_loop':

mosquitto.c:841: error: 'struct mosquitto' has no member named 'achan'

mosquitto.c:844: warning: implicit declaration of function 'ares_fds'

mosquitto.c:844: error: 'struct mosquitto' has no member named 'achan'

mosquitto.c:924: error: 'struct mosquitto' has no member named 'achan'

mosquitto.c:925: warning: implicit declaration of function 'ares_process'

mosquitto.c:925: error: 'struct mosquitto' has no member named 'achan'

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

make[1]: Leaving directory `/usr/local/mosquitto/lib'

make: *** [mosquitto] Error 2


검색을 해보니 SRV 관련 설정을 변경해주면 되는 듯 하다. (http://blog.csdn.net/Netown_Ethereal/article/details/22653125)

DNS 레코드 관련된 거 같은데.. 자세한 건 패스 -.-;;


mosquitto 폴더의 config.mk 를 열어서 WITH_SRV:=yes 를 WITH_SRV:=no 로 변경하고 make 해보자.


# vi config.mk

# Build with SRV lookup support.  

WITH_SRV:=no



profile

개발자의 노트

@곽코딩

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!