mosquitto
mosquitto copied to clipboard
Arm executable 2.0.12 broken
The mosquitto executable of the packages mosquitto 2.0.12 on raspbian bullseye, as well as on raspbian buster fail to run on a Raspberry Pi Model B Rev 2
I've tried on two boards:
root@raspberrypi:~# mosquitto
Illegal instruction
root@raspberrypi:~#
Package files: mosquitto_2.0.12-0mosquitto1~bullseye1_armhf.deb mosquitto_2.0.12-0mosquitto1~buster_armhf.deb
Version 2.0.11 on buster works fine, but for bullseye that version is not available.
When recompiling from source, using 2.0.14, I have the same issue. When I compile without websockets the executable is functional. So I guess something is wrong in combination with the websockets library.
On a raspberry pi zero w
, updating the buster sytem with sudo apt-get dist-upgrade
caused an update from mosquitto 2.01.11 to 2.0.12.
Mosquitto then failed with
Job for mosquitto.service failed because a fatal signal was delivered to the control process.
I solved it by downgrading to 2.0.11 with
sudo apt-get install mosquitto=2.0.11-0mosquitto1~buster1
Have the same issue, suggested that a malformed conf file could cause the issue (more strict verification in 2.0.12) but a carefully checked conf did the same.. Rollback is the only workaround. I suspect libsocketsv18 is the culprit as added for this version?
same for me. Package from http://repo.mosquitto.org/debian/mosquitto-buster.list : illegal instruction compile 2.0.14 WITH_WEBSOCKETS : illegal instruction compile 2.0.14 without Websockets -> works
links against libwebsockets.so.18 (package: libwebsockets18:armhf 4.2.1-0mosquitto1~buster2) run on Raspberry PI zero
I solved it by downgrading to 2.0.11 with sudo apt-get install mosquitto=2.0.11-0mosquitto1~buster1
compile 2.0.11 WITH_WEBSOCKETS (and using libwebsockets18): illegal instruction
sudo apt-get install mosquitto=2.0.11-0mosquitto1~buster1
: works
the culprit is really libwebsockets here. the binary 2.0.11 package uses libwebsockets12, which was still working.
sudo apt-get install libwebsockets-dev=2.4.2-0mosquitto1~buster1
and compile 2.0.14 WITH_WEBSOCKETS: works
2.0.12 starts/works on buster for Pi Zero if you install the buster1 version of the libwebsockets18 package rather than the (later, obvs) buster2 version...