ext-async icon indicating copy to clipboard operation
ext-async copied to clipboard

php7.4 make: *** [swoole_async.lo] Error 1(MacOs)

Open wscsq789 opened this issue 4 years ago • 0 comments

kun @ MacBook-Pro in ~/Downloads [16:15:24]

$ git clone https://github.com/swoole/ext-async.git Cloning into 'ext-async'... remote: Enumerating objects: 208, done. remote: Counting objects: 100% (208/208), done. remote: Compressing objects: 100% (147/147), done. remote: Total 646 (delta 97), reused 155 (delta 57), pack-reused 438 Receiving objects: 100% (646/646), 604.01 KiB | 484.00 KiB/s, done. Resolving deltas: 100% (316/316), done.

kun @ MacBook-Pro in ~/Downloads [16:16:01]

$ cd ext-async

kun @ MacBook-Pro in ~/Downloads/ext-async on git:master o [16:18:17]

$ /usr/local/Cellar/php/7.4.2/bin/phpize

kun @ MacBook-Pro in ~/Downloads/ext-async on git:master o [16:21:13] C:2

$ make /bin/sh /Users/kun/Downloads/ext-async/libtool --mode=compile g++ -I. -I/Users/nkun/Downloads/ext-async -DPHP_ATOM_INC -I/Users/kun/Downloads/ext-async/include -I/Users/kun/Downloads/ext-async/main -I/Users/kun/Downloads/ext-async -I/usr/local/Cellar/php/7.4.2/include/php -I/usr/local/Cellar/php/7.4.2/include/php/main -I/usr/local/Cellar/php/7.4.2/include/php/TSRM -I/usr/local/Cellar/php/7.4.2/include/php/Zend -I/usr/local/Cellar/php/7.4.2/include/php/ext -I/usr/local/Cellar/php/7.4.2/include/php/ext/date/lib -I/Users/kun/Downloads/ext-async -I/Users/kun/Downloads/ext-async/include -I/usr/local/Cellar/php/7.4.2/include/php/ext/swoole -I/usr/local/Cellar/php/7.4.2/include/php/ext/swoole/include -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /Users/kun/Downloads/ext-async/swoole_async.cc -o swoole_async.lo g++ -I. -I/Users/kun/Downloads/ext-async -DPHP_ATOM_INC -I/Users/kun/Downloads/ext-async/include -I/Users/kun/Downloads/ext-async/main -I/Users/kun/Downloads/ext-async -I/usr/local/Cellar/php/7.4.2/include/php -I/usr/local/Cellar/php/7.4.2/include/php/main -I/usr/local/Cellar/php/7.4.2/include/php/TSRM -I/usr/local/Cellar/php/7.4.2/include/php/Zend -I/usr/local/Cellar/php/7.4.2/include/php/ext -I/usr/local/Cellar/php/7.4.2/include/php/ext/date/lib -I/Users/kun/Downloads/ext-async -I/Users/kun/Downloads/ext-async/include -I/usr/local/Cellar/php/7.4.2/include/php/ext/swoole -I/usr/local/Cellar/php/7.4.2/include/php/ext/swoole/include -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /Users/kun/Downloads/ext-async/swoole_async.cc -fno-common -DPIC -o .libs/swoole_async.o In file included from /Users/kun/Downloads/ext-async/swoole_async.cc:17: ./php_swoole_async.h:26:10: fatal error: 'ext/swoole/php_swoole.h' file not found #include "ext/swoole/php_swoole.h" ^~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [swoole_async.lo] Error 1

kun @ MacBook-Pro in ~/Downloads/ext-async on git:master o [16:44:08]

$ php --ri swoole|grep Version Version => 4.4.15

=============================================================== I am not sure weather the latest ext-async version does not match the swoole version I installed, and the lastest version of ext-async in released list page is v4.4.14.

wscsq789 avatar Feb 01 '20 08:02 wscsq789