[php-src] Issue #8434: phpize builds of ext/tokenizer fail

From: Date: Tue, 26 Apr 2022 09:28:37 +0000
Subject: [php-src] Issue #8434: phpize builds of ext/tokenizer fail
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241248@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8434 Comment Author: evrinoma Hi The solution still doesn't help me to solve building problem tried to build with next configuration Configure Command => './configure' '--build=x86_64' '--with-config-file-path=/usr/local/etc/php' '--with-config-file-scan-dir=/usr/local/etc/php/conf.d' '--enable-option-checking=fatal' '--with-mhash' '--disable-all' '--with-pic' '--with-password-argon2' '--with-zlib' '--enable-xml' '--with-libxml' '--disable-phpdbg' '--with-pear' '--disable-cgi' '--enable-fpm' '--enable-mysqlnd' **'--enable-tokenizer=shared'** '--with-fpm-user=www-data' '--with-fpm-group=www-data' 'build_alias=x86_64' and I have faced with broken tests ``` [root@31c7b768cb31 php]# make test Build complete. Don't forget to run 'make test'. ===================================================================== PHP : /usr/src/php/sapi/cli/php Warning: PHP Startup: Unable to load dynamic library '' (tried: /usr/src/php/modules/ (/usr/src/php/modules/: cannot read file data: Is a directory), /usr/src/php/modules/.so (/usr/src/php/modules/.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP_SAPI : cli PHP_VERSION : 8.1.5 ZEND_VERSION: 4.1.5 PHP_OS : Linux - Linux 31c7b768cb31 5.16.14-1-default #1 SMP PREEMPT Fri Mar 11 12:33:34 UTC 2022 (80acc65) x86_64 INI actual : /usr/src/php/tmp-php.ini More .INIs : CWD : /usr/src/php Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2022-04-26 09:12:45 ===================================================================== PHP Warning: PHP Startup: Unable to load dynamic library '' (tried: /usr/src/php/modules/ (/usr/src/php/modules/: cannot read file data: Is a directory), /usr/src/php/modules/.so (/usr/src/php/modules/.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '' (tried: /usr/src/php/modules/ (/usr/src/php/modules/: cannot read file data: Is a directory), /usr/src/php/modules/.so (/usr/src/php/modules/.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 SKIP phpt EXTENSIONS directive - shared module [tests/run-test/extensions-shared.phpt] reason: Required extension missing: openssl FAIL phpt EXTENSIONS directive - static extension is present [tests/run-test/extensions-static.phpt] FAIL EXPECT [tests/run-test/test001.phpt] FAIL EXPECTF [tests/run-test/test002.phpt] FAIL EXPECTREGEX [tests/run-test/test003.phpt] FAIL INI section allows '=' [tests/run-test/test004.phpt] PASS Error messages are shown [tests/run-test/test006.phpt] FAIL dirname test [tests/run-test/test007.phpt] FAIL print_r(Object) [tests/run-test/test009.phpt] FAIL STDIN input [tests/run-test/test010.phpt] FAIL EXPECT_EXTERNAL [tests/run-test/test011.phpt] FAIL EXPECTF_EXTERNAL [tests/run-test/test012.phpt] FAIL EXPECTREGEX_EXTERNAL [tests/run-test/test013.phpt] FAIL Trivial "Hello World" test [tests/basic/001.phpt] Warning: Undefined variable $php_cgi in /usr/src/php/run-tests.php on line 1950 SKIP Simple POST Method test [tests/basic/002.phpt] reason: CGI not available .... ``` try to load some extension and can't **PHP Warning: PHP Startup: Unable to load dynamic library '' (tried: /usr/src/php/modules/ (/usr/src/php/modules/: cannot read file data: Is a directory), /usr/src/php/modules/.so (/usr/src/php/modules/.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '' (tried: /usr/src/php/modules/ (/usr/src/php/modules/: cannot read file data: Is a directory), /usr/src/php/modules/.so (/usr/src/php/modules/.so: cannot open shared object file: No such file or directory)) in Unknown on line 0** Also I tried to build with next configuration Configure Command => './configure' '--build=x86_64' '--with-config-file-path=/usr/local/etc/php' '--with-config-file-scan-dir=/usr/local/etc/php/conf.d' '--enable-option-checking=fatal' '--with-mhash' '--disable-all' '--with-pic' '--with-password-argon2' '--with-zlib' '--enable-xml' '--with-libxml' '--disable-phpdbg' '--with-pear' '--disable-cgi' '--enable-fpm' '--enable-mysqlnd' **'--enable-tokenizer'** '--with-fpm-user=www-data' '--with-fpm-group=www-data' 'build_alias=x86_64' and I have faced with broken tests ``` Finally all tests were fine and php -i show me that tokenize is enabled

« previous php.bugs (#241248) next »