Installation Issue using master branch
fakharksa opened this issue · comments
- What did you do? If possible, provide a simple script for reproducing the error.
cd /tmp/openswoole && git clone https://github.com/openswoole/swoole-src && \
cd swoole-src && \
git checkout master && \
phpize8.1 clean && \
phpize8.1 && \
./configure --enable-openssl \
--enable-mysqlnd \
--enable-sockets \
--enable-http2 \
--enable-swoole-curl \
--enable-swoole-json \
--with-postgres \
--enable-debug \
--enable-debug-log \
--enable-trace-log \
--enable-thread-context \
--enable-cares \
--with-php-config=/usr/bin/php-config8.1 && \
sudo make && sudo make install
- What did you expect to see?
succesfull installation
- What did you see instead?
/bin/bash /tmp/openswoole/swoole-src/libtool --mode=compile g++ -I. -I/tmp/openswoole/swoole-src -I/tmp/openswoole/swoole-src/include -I/tmp/openswoole/swoole-src/main -I/tmp/openswoole/swoole-src -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/usr/include/postgresql -I/tmp/openswoole/swoole-src -I/tmp/openswoole/swoole-src/include -I/tmp/openswoole/swoole-src/ext-src -I/tmp/openswoole/swoole-src/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/openswoole/swoole-src/ext-src/php_swoole.cc -o ext-src/php_swoole.lo -MMD -MF ext-src/php_swoole.dep -MT ext-src/php_swoole.lo
libtool: compile: g++ -I. -I/tmp/openswoole/swoole-src -I/tmp/openswoole/swoole-src/include -I/tmp/openswoole/swoole-src/main -I/tmp/openswoole/swoole-src -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/usr/include/postgresql -I/tmp/openswoole/swoole-src -I/tmp/openswoole/swoole-src/include -I/tmp/openswoole/swoole-src/ext-src -I/tmp/openswoole/swoole-src/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/openswoole/swoole-src/ext-src/php_swoole.cc -MMD -MF ext-src/php_swoole.dep -MT ext-src/php_swoole.lo -fPIC -DPIC -o ext-src/.libs/php_swoole.o
In file included from /tmp/openswoole/swoole-src/include/swoole_coroutine.h:27,
from /tmp/openswoole/swoole-src/ext-src/php_swoole_coroutine.h:22,
from /tmp/openswoole/swoole-src/ext-src/php_swoole_cxx.h:20,
from /tmp/openswoole/swoole-src/ext-src/php_swoole.cc:16:
/tmp/openswoole/swoole-src/include/swoole_coroutine_context.h:84:33: error: ‘transfer_t’ has not been declared
84 | static void context_func_v2(transfer_t transfer);
| ^~~~~~~~~~
make: *** [Makefile:220: ext-src/php_swoole.lo] Error 1
- What version of OpenSwoole are you using (show your
php --ri openswoole
)?
I am trying to isntall the latest version of openswoole using masetr branch
- What is your machine environment used (show your
uname -a
&php -v
&gcc -v
) ?
**OS version:**
Linux fakhar-HP-Laptop 5.17.5-76051705-generic #202204271406~1651504840~20.04~63e51bd-Ubuntu SMP PREEMPT Wed Ma x86_64 x86_64 x86_64 GNU/Linux
**PHP Version**
PHP 8.1.14 (cli) (built: Jan 6 2023 15:23:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.14, Copyright (c) Zend Technologies
with Zend OPcache v8.1.14, Copyright (c), by Zend Technologies
**GCC Version**
gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)
You can also try the following OpenSwoole support channels:
- Documentation - Documentation for Open Swoole
- Slack - Slack channel of Open Swoole
- Discord - Discord server of Open Swoole
Please install according to the guide at: https://openswoole.com/docs/get-started/installation