Skip to content

PHP 8.3 fails to build #536

@sjinks

Description

@sjinks
# pecl install timezonedb
downloading timezonedb-2023.3.tgz ...
Starting to download timezonedb-2023.3.tgz (638,795 bytes)
................................................................................................................................done: 638,795 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20230831
Zend Module Api No:      20230831
Zend Extension Api No:   420230831
cp: cannot stat 'shtool': No such file or directory
cp: cannot stat 'config.guess': No such file or directory
cp: cannot stat 'config.sub': No such file or directory
cp: cannot stat 'ltmain.sh': No such file or directory
chmod: cannot access '/tmp/pear/temp/timezonedb/build/shtool': No such file or directory
shtool at '/tmp/pear/temp/timezonedb/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.

ERROR: `phpize' failed

This is what phpize8.3 does:

+ cd /usr/lib/php/20230831/build
+ cp php.m4 shtool ax_check_compile_flag.m4 ax_gcc_func_attribute.m4 php_cxx_compile_stdcxx.m4 config.guess config.sub ltmain.sh Makefile.global gen_stub.php /tmp/pear/temp/apcu/build

It looks like the following files are missing from /usr/lib/php/20230831/build:

  • shtool
  • config.guess
  • config.sub
  • ltmain.sh

However, those files are not there even with PHP 8.2.

phpize8.2 does this:

+ cd /usr/lib/php/20220829/build
+ cp php.m4 /usr/bin/shtool ax_check_compile_flag.m4 ax_gcc_func_attribute.m4 php_cxx_compile_stdcxx.m4 Makefile.global gen_stub.php /tmp/xxx/timezonedb-2023.3/build
+ cd /usr/share/aclocal
+ cp pkg.m4 libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4 /tmp/xxx/timezonedb-2023.3/build
+ cd /usr/share/libtool/build-aux
+ cp config.sub config.guess ltmain.sh /tmp/xxx/timezonedb-2023.3/build
+ cd /usr/lib/php/20220829/build
+ cp run-tests.php /tmp/xxx/timezonedb-2023.3

It looks like something is badly broken in phpize :-(

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions