I’m building up a system to monitor my central heating heat battery, with an Eastron SDM230 energy meter, and Sharky 774 heat meter. I want a local dashboard so I’ve put together a RPi5 with a Touch Display 2, a M.2 HAT and a NVMe SSD. As I don’t want to run emon from an SD card I have gone the EmonScripts route. I’ve imaged the SSD with the full desktop environment version of Raspberry Pi OS, and then pulled the build scripts from the stable branch on GitHub. As I’m working with an SSD I’ve not tried to implement the SD card preparation steps on the SSD.
The EmonScripts mostly appears to work, apart from looking like it can’t compile mosquitto.c:
/bin/bash /opt/openenergymonitor/EmonScripts/install/Mosquitto-PHP/libtool --tag=CC --mode=compile cc -I. -I/opt/openenergymonitor/EmonScripts/install/Mosquitto-PHP -I/usr/include/php/2024092>
libtool: compile: cc -I. -I/opt/openenergymonitor/EmonScripts/install/Mosquitto-PHP -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/inclu>
/opt/openenergymonitor/EmonScripts/install/Mosquitto-PHP/mosquitto.c: In function ‘php_mosquitto_strerror_wrapper’:
/opt/openenergymonitor/EmonScripts/install/Mosquitto-PHP/mosquitto.c:892:19: error: initialization of ‘int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
892 | int ret = strerror_r(err, buf, 256);
| ^~~~~~~~~~
make: *** [Makefile:208: mosquitto.lo] Error 1
I’ve taken a look at the Issues in GitHub and can see that 201 looks like a different compile error with mosquitto.c.
Suggestions for next steps?


