Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error.
updated php from 7.1.x to 7.2.10 and rebuilt and reinstalled php-swoole AUR package
What did you expect to see?
swoole ext loaded with php properly
What did you see instead?
PHP Warning: PHP Startup: Unable to load dynamic library 'swoole' (tried: /usr/lib/php/modules/swoole (/usr/lib/php/modules/swoole: cannot open shared object file: No such file or directory), /usr/lib/php/modules/swoole.so (/usr/lib/php/modules/swoole.so: undefined symbol: strpprintf)) in Unknown on line 0
What version of Swoole are you using (php --ri swoole)?
4.2.1
What is your machine environment used (including version of kernel & php & gcc) ?
Arch Linux
4.17.14.a-1-hardened x86_64
php 7.2.10
gcc 8.2.1+20180831-1
openssl 1.1.1-1NOTE: /usr/lib/php/modules/swoole.so does exist in filesystem.
swoole ext won't load whether i have .so in php.ini or not.
Thanks
if you make clean and rerun the right(new version's) phpize then ./configure xxx && make && sudo make install?
check your phpize version, it may shows these:
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
check your version num is PHP72
@twose just running "make clean" in the src directory of the previous build then re-running "makepkg" did the trick. thanks for the help.
Most helpful comment
if you
make cleanand rerun the right(new version's)phpizethen./configure xxx && make && sudo make install?check your phpize version, it may shows these:
check your version num is PHP72