Closed huangdijia closed 1 year ago
Please specify the libraries, without them, it fails to compile and fallbacks to use the extension from the ubuntu package.
- name: Setup PHP
uses: shivammathur/setup-php@verbose
with:
php-version: 8.1
extensions: redis, pdo, pdo_mysql, bcmath, swoole-5.0.3
tools: phpize
coverage: none
ini-values: swoole.use_shortname=Off
env:
SWOOLE_LIBS: libc-ares-dev libcurl4-openssl-dev libpq-dev libbrotli-dev
SWOOLE_CONFIGURE_OPTS: --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql --enable-brotli
Thanks!
https://github.com/friendsofhyperf/components/actions/runs/5208821156/jobs/9397868165
downloading swoole-5.0.3.tgz ...
Starting to download swoole-5.0.3.tgz (2,066,852 bytes)
......................................................................................................................................................................................................................................................................................................................................................................................................................done: 2,066,852 bytes
471 source files, building
running: phpize
Configuring for:
PHP Api Version: 20210902
Zend Module Api No: 20210902
Zend Extension Api No: 420210902
configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
build/php.m4:2111: PHP_CONFIG_NICE is expanded from...
configure.ac:22: the top level
config.m4:334: warning: The macro `AC_PROG_CC_C99' is obsolete.
config.m4:334: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
config.m4:334: the top level
configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:165: You should run autoupdate.
build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:165: the top level
enable sockets supports? [no] : enable mysqlnd support? [no] : building in /tmp/pear/temp/pear-build-rootvB62Qw/swoole-5.0.3
running: /tmp/pear/temp/swoole/configure --with-php-config=/usr/bin/php-config --enable-sockets=no --enable-openssl=yes --enable-mysqlnd=no --enable-swoole-curl=yes --enable-cares=yes --enable-brotli=yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
env:
SWOOLE_LIBS: libc-ares-dev libcurl4-openssl-dev libpq-dev libbrotli-dev
SWOOLE_CONFIGURE_OPTS: --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql --enable-brotli
--enable-swoole-pgsql
is lost。
@huangdijia
swoole does not have support for that parameter in its package.xml, so PECL does not add it. Please ask upstream to add support for it. https://github.com/swoole/swoole-src/blob/master/package.xml#L2411
Describe the bug
Version
v1
orv2
.v2
v1
Runners
Operating systems Ubuntu
PHP versions PHP 8.1
To Reproduce
Screenshots/Logs