pmmp / PHP-Binaries

PHP binaries for PocketMine-MP and the scripts used to compile them
117 stars 171 forks source link

cURL v8.10.0 and onwards fail during 'configuring' stage (linux, macos) #198

Open Muqsit opened 2 weeks ago

Muqsit commented 2 weeks ago

Relevant GitHub Actions workflow logs:

PM5 / Linux:

Run # Used "set -ex" instead of hashbang since script isn't executed with hashbang
+ trap 'exit 1' ERR
+ ./compile.sh -t linux64 -j 4 -g -P 5 -c ./download_cache -D
[PocketMine] PHP compiler for Linux, MacOS and Android
[INFO] Checking dependencies
[opt] Set target to linux64
[opt] Set make threads to 4
[opt] Will enable GD2
[opt] Caching downloaded files in /home/runner/work/PHP-Binaries/PHP-Binaries/download_cache and reusing if available
[opt] Compiling with separated debugging symbols, but leaving optimizations enabled
[opt] Compiling with configuration for PocketMine-MP 5
[INFO] Compiling for Linux x86_64
[PHP 8.2.25] downloading... done!
[zlib 1.3.1] downloading... configuring... compiling... installing... done!
[gmp 6.3.0] downloading... configuring... compiling... installing... done!
[openssl 3.4.0] downloading... configuring... compiling... installing... done!
++ exit 1
[curl curl-8_11_0] downloading... configuring...
Error: Process completed with exit code 1.

PM5 / MacOS arm64:

Run export PATH="/usr/local/opt/bison/bin:$PATH"
+ trap 'exit 1' ERR
+ ./compile.sh -t mac-arm64 -j4 -g -P 5 -c ./download_cache -D
[PocketMine] PHP compiler for Linux, MacOS and Android
[INFO] Checking dependencies
[opt] Set target to mac-arm64
[opt] Set make threads to 4
[opt] Will enable GD2
[opt] Caching downloaded files in /Users/runner/work/PHP-Binaries/PHP-Binaries/download_cache and reusing if available
[opt] Compiling with separated debugging symbols, but leaving optimizations enabled
[opt] Compiling with configuration for PocketMine-MP 5
[INFO] Compiling for MacOS M1
[PHP 8.2.25] downloading... done!
[zlib 1.3.1] downloading... configuring... compiling... installing... done!
[gmp 6.3.0] downloading... configuring... compiling... installing... done!
[openssl 3.4.0] downloading... configuring... compiling... installing... done!
++ exit 1
[curl curl-8_11_0] downloading... configuring...
Error: Process completed with exit code 1.
Muqsit commented 3 days ago

Upon further discussion, this failure arises from the new libpsl requirement starting with cURL v8.10.0 (install.log):

checking for libpsl options with pkg-config... no
checking for psl_builtin in -lpsl... no
configure: error: libpsl libs and/or directories were not found where specified!

Building cURL with --without-libpsl solves the issue.