There was an error upgrading PHP7.3 with CB2.0

bibiugly

Verified User
Joined
Apr 9, 2019
Messages
73
Location
Vietnam
Hello,
Currently I get an error when upgrading PHP version 7.3.20> 7.3.21, below is my error log:
Code:
ext/intl/breakiterator/.libs/rulebasedbreakiterator_methods.o: In function `zif_rbbi_get_rule_status_vec':
/usr/local/directadmin/custombuild/php-7.3.21/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp:173: undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
make: *** Waiting for unfinished jobs....
ext/intl/breakiterator/.libs/rulebasedbreakiterator_methods.o: In function `zif_rbbi_get_rule_status_vec':
/usr/local/directadmin/custombuild/php-7.3.21/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp:173: undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
ext/intl/breakiterator/.libs/rulebasedbreakiterator_methods.o: In function `zif_rbbi_get_rule_status_vec':
/usr/local/directadmin/custombuild/php-7.3.21/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp:173: undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [sapi/phpdbg/phpdbg] Error 1
ext/intl/breakiterator/.libs/rulebasedbreakiterator_methods.o: In function `zif_rbbi_get_rule_status_vec':
/usr/local/directadmin/custombuild/php-7.3.21/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp:173: undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
Hope you guys can help me. Many thanks.
 

Attachments

  • 1.png
    1.png
    51 KB · Views: 194
Try this from Cmd Line

Code:
cd /usr/local/directadmin/custombuild
./build set_fastest
./build clean
./build update
./build php
./build rewrite_confs

If that doesn't work
post output of

Code:
cd /usr/local/directadmin/custombuild/
grep php options.conf
 
Try this from Cmd Line
Code:
cd /usr/local/directadmin/custombuild/
grep php options.conf
This is my option:
Code:
php1_release=5.6
php1_mode=php-fpm
php2_release=7.2
php2_mode=php-fpm
secure_php=no
php_ini=no
php_timezone=Asia/Ho_Chi_Minh
php_ini_type=production
phpmyadmin=yes
phpmyadmin_ver=4
suhosin_php_uploadscan=no
php3_release=7.3
php4_release=7.4
php3_mode=php-fpm
php4_mode=php-fpm
phpmyadmin_public=yes

I have tried yumupdate but it didn't work. I don't dare to run the command "./build php" because there are a lot of websites running on this server. Sorry my english is very bad.
 
Don't worry.
You can use the "./build php n" command. It will either fix things or throw the same error.

Yum update has nothing to do with php. Use the list of commands that Brent gave you, it gives the most chance of fixing things.
 
I don't dare to run the command "./build php" because there are a lot of websites running on this server.
Đừng bao giờ nói chẳng bao giờ

Don't be scared. Make a plan. You have to keep the system updated. So eventually you can get rid of PHP 5.6...;)

My Vietnamese is bad too..
 
This is my option:
Code:
php1_release=5.6
php1_mode=php-fpm
php2_release=7.2
php2_mode=php-fpm
secure_php=no
php_ini=no
php_timezone=Asia/Ho_Chi_Minh
php_ini_type=production
phpmyadmin=yes
phpmyadmin_ver=4
suhosin_php_uploadscan=no
php3_release=7.3
php4_release=7.4
php3_mode=php-fpm
php4_mode=php-fpm
phpmyadmin_public=yes

I have tried yumupdate but it didn't work. I don't dare to run the command "./build php" because there are a lot of websites running on this server. Sorry my english is very bad.

Where is the error you posted coming from if you haven't used the ./build php n command yet? You can just update PHP through Custombuild, it's not necessary to compile anything manually.
 
If this thread is not closed, I am getting the same error when attempting to update 7.4.13 to 7.4.14, with the exception of the last logged error line being
Code: make: *** Waiting for unfinished jobs....
./build clean command removes the ./php*/ files from custombuild, but reinstating the ./build PHP does not update and throws the same error.
 
Please post more of your error along with your os and version.

Is the system all updated both DA and os?
 
If this thread is not closed, I am getting the same error when attempting to update 7.4.13 to 7.4.14, with the exception of the last logged error line being

./build clean command removes the ./php*/ files from custombuild, but reinstating the ./build PHP does not update and throws the same error.
Additional info, after rebooting and ./build clean command

This is a CloudLinux Centos 6 DirectAdmin server, fully updated. Except PHP 7.4.14
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lzstd


collect2: error: ld returned 1 exit status


make: *** [Makefile:294: sapi/cli/php] Error 1


make: *** Waiting for unfinished jobs....


/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lzstd


collect2: error: ld returned 1 exit status


make: *** [Makefile:306: sapi/fpm/php-fpm] Error 1

The installed PHP version is 7.4.13
 
In file included from /usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:53:0
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lscriu.c:
In function 'LSCRIU_try_checkpoint':
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lscriu.c:501:9: warning: variable 'iRet' set but not used [-Wunused-but-set-variable]
int iRet;
^~~~
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:
In function 'lsapi_clean_shutdown':
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:691:9: warning: variable 'sa_rc' set but not used [-Wunused-but-set-variable]
int sa_rc;
^~~~~
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:
In function 'lsapi_module_main':
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:753:9: warning: variable 'sa_rc' set but not used [-Wunused-but-set-variable]
int sa_rc;
^~~~~
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:
In function 'zif_litespeed_finish_request':
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:1790:5: warning: implicit declaration of function 'php_header'; did you mean 'php_verror'? [-Wimplicit-function-declaration]
php_header();
^~~~~~~~~
php_verror
In file included from /usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lsapi_main.c:53:0:

At top level:
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lscriu.c:314:14: warning: 'LSCRIU_Error_File_Name' defined but not used [-Wunused-function]
static char *LSCRIU_Error_File_Name(char *pchFile, int max_len)
^~~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/php-7.4.14/sapi/litespeed/lscriu.c:104:12:
warning: 's_criu_debug' defined but not used [-Wunused-variable]
static int s_criu_debug = 0;

Found additional info in the package. These seem innocuous, but the install script stopped shortly afterward.
 
Back
Top