Recently I tried to add 1.5.x support, but I'm facingÂundefined functions when trying to build:
/tmp/go-build392224134/b001/_x003.o: In function `mosquitto_auth_acl_check':
./auth-plugin.c:86: undefined reference to `mosquitto_client_id'
./auth-plugin.c:87: undefined reference to `mosquitto_client_username'
As you can see at https://github.com/iegomez/mosquitto-go-auth/blob/new-mosquitto/auth-plugin.c, mosquitto_broker.h is included. I thought an older version of libmosquitto could be the problem, so I ranÂ
rm /usr/local/lib/libmosquitto*and rebuilt mosquitto 1.5.3. All the headers,Â
mosquitto_broker.hÂare present atÂ
/usr/local/include, which is shown when printingÂ
g++'sÂinclude paths withÂ
gcc -xc -E -v - (same for g++), but I still have the problem. I tried this at my personal machine and on a fresh docker instance, still no luck.
Am I missing something when building mosquitto?