mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

Arm executable 2.0.12 broken

Open joshuisken opened this issue 3 years ago • 6 comments

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.

joshuisken avatar Dec 03 '21 19:12 joshuisken

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.

joshuisken avatar Dec 04 '21 08:12 joshuisken

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

sanderkob avatar Dec 05 '21 22:12 sanderkob

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?

RobLeighton67 avatar Dec 08 '21 13:12 RobLeighton67

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

theHolgi avatar Feb 20 '22 20:02 theHolgi

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

theHolgi avatar Feb 20 '22 21:02 theHolgi

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

RobLeighton67 avatar Jul 05 '22 10:07 RobLeighton67