Open maclechan opened 2 weeks ago
Are you using the php8 branch to build? In my Linux environment, I've successfully built it with PHP versions 8.1, 8.2, 8.3, and 8.4.
I intend to move the copy the master branch to another one for older PHPs and merge that php8 branch, but I haven't quite got around to it yet. Then I'll remove anything that's different for PHP 5 and 7. Maybe I'll get into doing that this weekend.
Are you using the php8 branch to build? In my Linux environment, I've successfully built it with PHP versions 8.1, 8.2, 8.3, and 8.4.
Yes. In my Macos(14.6) environment,I can't compile Mosquitto-php,and php verison is PHP 8.2.25.
/bin/sh /Users/maclechan/website/Mosquitto-PHP/libtool --tag=CC --mode=compile cc -I. -I/Users/maclechan/website/Mosquitto-PHP -I/Users/maclechan/website/Mosquitto-PHP/include -I/Users/maclechan/website/Mosquitto-PHP/main -I/Users/maclechan/website/Mosquitto-PHP -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/main -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/TSRM -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/Zend -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /Users/maclechan/website/Mosquitto-PHP/mosquitto.c -o mosquitto.lo -MMD -MF mosquitto.dep -MT mosquitto.lo mkdir .libs cc -I. -I/Users/maclechan/website/Mosquitto-PHP -I/Users/maclechan/website/Mosquitto-PHP/include -I/Users/maclechan/website/Mosquitto-PHP/main -I/Users/maclechan/website/Mosquitto-PHP -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/main -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/TSRM -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/Zend -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /Users/maclechan/website/Mosquitto-PHP/mosquitto.c -MMD -MF mosquitto.dep -MT mosquitto.lo -fno-common -DPIC -o .libs/mosquitto.o /Users/maclechan/website/Mosquitto-PHP/mosquitto.c:892:6: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] ret = strerror_r(err, buf, 256); ^
~~~~~1 error generated. make: *** [mosquitto.lo] Error 1macos