Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is php8.2 supported? #132

Open
maclechan opened this issue Oct 31, 2024 · 3 comments
Open

Is php8.2 supported? #132

maclechan opened this issue Oct 31, 2024 · 3 comments

Comments

@maclechan
Copy link

/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 1

macos

@ryco-dev
Copy link

ryco-dev commented Nov 1, 2024

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.

@mgdm
Copy link
Owner

mgdm commented Nov 1, 2024

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.

@maclechan
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants