Author Topic: PHP Rebuild/Update Problem  (Read 1598 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP Rebuild/Update Problem
« on: April 30, 2020, 01:14:32 AM »
Hello,

I'm using CWPPro.
I need help with PHP rebuilding or updating.

Rebuilding doesn't complete successfully.

Code: [Select]
2020-04-30 03:01:57 (5.60 MB/s) - 'libzip-1.5.1.tar.gz.1' saved [1189827/1189827]

tar (child): libzip-1.5.1: Cannot read: Is a directory
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mkdir: cannot create directory 'build': File exists
-- Could NOT find NETTLE (missing: NETTLE_LIBRARY NETTLE_INCLUDE_DIR)
-- Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/libzip-1.5.1/build
[ 46%] Built target zip
[ 85%] Built target man
[ 85%] Linking C executable ziptool
../lib/libzip.so.5.0: undefined reference to `HMAC_CTX_free'
../lib/libzip.so.5.0: undefined reference to `HMAC_CTX_new'
collect2: error: ld returned 1 exit status
make[2]: *** [src/ziptool] Error 1
make[1]: *** [src/CMakeFiles/ziptool.dir/all] Error 2
make: *** [all] Error 2

Code: [Select]
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:2346: undefined reference to `X509_get_version'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:2373: undefined reference to `X509_getm_notBefore'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:2374: undefined reference to `X509_getm_notAfter'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:2376: undefined reference to `X509_getm_notBefore'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:2377: undefined reference to `X509_getm_notAfter'
ext/openssl/.libs/openssl.o: In function `sk_GENERAL_NAME_pop_free':
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
ext/openssl/.libs/openssl.o: In function `sk_GENERAL_NAME_num':
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_GENERAL_NAME_value':
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `openssl_x509v3_subjectAltName':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:2276: undefined reference to `ASN1_STRING_get0_data'
ext/openssl/.libs/openssl.o: In function `sk_X509_new_null':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_new_null'
ext/openssl/.libs/openssl.o: In function `sk_X509_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
ext/openssl/.libs/openssl.o: In function `sk_X509_INFO_free':
/usr/include/openssl/x509.h:254: undefined reference to `OPENSSL_sk_free'
ext/openssl/.libs/openssl.o: In function `sk_X509_INFO_shift':
/usr/include/openssl/x509.h:254: undefined reference to `OPENSSL_sk_shift'
ext/openssl/.libs/openssl.o: In function `sk_X509_push':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_push'
ext/openssl/.libs/openssl.o: In function `sk_X509_INFO_num':
/usr/include/openssl/x509.h:254: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_X509_num':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_X509_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
ext/openssl/.libs/openssl.o: In function `sk_X509_pop_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_pop_free'
ext/openssl/.libs/openssl.o: In function `sk_X509_new_null':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_new_null'
ext/openssl/.libs/openssl.o: In function `sk_X509_push':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_push'
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_push'
ext/openssl/.libs/openssl.o: In function `sk_X509_num':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_X509_pop':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_pop'
ext/openssl/.libs/openssl.o: In function `sk_X509_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
ext/openssl/.libs/openssl.o: In function `zif_openssl_csr_get_subject':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:3628: undefined reference to `X509_REQ_get_subject_name'
ext/openssl/.libs/openssl.o: In function `zif_openssl_pkey_get_details':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4825: undefined reference to `EVP_PKEY_get0_DH'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4832: undefined reference to `DH_get0_pqg'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4833: undefined reference to `DH_get0_key'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4847: undefined reference to `EVP_PKEY_get0_EC_KEY'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4856: undefined reference to `EVP_PKEY_get0_EC_KEY'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4803: undefined reference to `EVP_PKEY_get0_DSA'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4810: undefined reference to `DSA_get0_pqg'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4811: undefined reference to `DSA_get0_key'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4774: undefined reference to `EVP_PKEY_get0_RSA'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4781: undefined reference to `RSA_get0_key'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4782: undefined reference to `RSA_get0_factors'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4783: undefined reference to `RSA_get0_crt_params'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4892: undefined reference to `EVP_PKEY_get0_EC_KEY'
ext/openssl/.libs/openssl.o: In function `zif_openssl_dh_compute_key':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4935: undefined reference to `EVP_PKEY_get0_DH'
ext/openssl/.libs/openssl.o: In function `sk_X509_value':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `sk_X509_num':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_X509_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
ext/openssl/.libs/openssl.o: In function `sk_X509_pop_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_pop_free'
ext/openssl/.libs/openssl.o: In function `sk_X509_new_null':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_new_null'
ext/openssl/.libs/openssl.o: In function `sk_X509_push':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_push'
ext/openssl/.libs/openssl.o: In function `sk_X509_pop_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_pop_free'
ext/openssl/.libs/openssl.o: In function `sk_X509_push':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_push'
ext/openssl/.libs/openssl.o: In function `sk_X509_num':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_X509_value':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `sk_X509_CRL_num':
/usr/include/openssl/x509.h:228: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_X509_CRL_value':
/usr/include/openssl/x509.h:228: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `sk_X509_pop_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_pop_free'
ext/openssl/.libs/openssl.o: In function `zif_openssl_private_encrypt':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:5683: undefined reference to `EVP_PKEY_get0_RSA'
ext/openssl/.libs/openssl.o: In function `zif_openssl_private_decrypt':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:5745: undefined reference to `EVP_PKEY_get0_RSA'
ext/openssl/.libs/openssl.o: In function `zif_openssl_public_encrypt':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:5813: undefined reference to `EVP_PKEY_get0_RSA'
ext/openssl/.libs/openssl.o: In function `zif_openssl_public_decrypt':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:5876: undefined reference to `EVP_PKEY_get0_RSA'
ext/openssl/.libs/openssl.o: In function `zif_openssl_sign':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:5984: undefined reference to `EVP_MD_CTX_new'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:5999: undefined reference to `EVP_MD_CTX_free'
ext/openssl/.libs/openssl.o: In function `zif_openssl_verify':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:6051: undefined reference to `EVP_MD_CTX_new'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:6058: undefined reference to `EVP_MD_CTX_free'
ext/openssl/.libs/openssl.o: In function `zif_openssl_seal':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:6145: undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/.libs/openssl.o: In function `zif_openssl_digest':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:6376: undefined reference to `EVP_MD_CTX_new'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:6399: undefined reference to `EVP_MD_CTX_free'
ext/openssl/.libs/openssl.o: In function `zif_openssl_encrypt':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:6698: undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/.libs/openssl.o: In function `zif_openssl_decrypt':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:6785: undefined reference to `EVP_CIPHER_CTX_reset'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
/usr/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
/usr/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `zif_openssl_csr_sign':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:3459: undefined reference to `X509_REQ_get_subject_name'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:3468: undefined reference to `X509_getm_notBefore'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:3469: undefined reference to `X509_getm_notAfter'
ext/openssl/.libs/openssl.o: In function `php_openssl_make_REQ':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:3096: undefined reference to `X509_REQ_get_subject_name'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
/usr/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
/usr/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
/usr/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_num'
/usr/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
/usr/include/openssl/conf.h:30: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_and_assign_rsa':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4156: undefined reference to `RSA_set0_key'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4162: undefined reference to `RSA_set0_factors'
ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dsa':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4190: undefined reference to `DSA_set0_pqg'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4197: undefined reference to `DSA_set0_key'
ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dh':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4267: undefined reference to `DH_set0_pqg'
ext/openssl/.libs/openssl.o: In function `php_openssl_dh_pub_from_priv':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4244: undefined reference to `BN_with_flags'
ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dh':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4281: undefined reference to `DH_set0_key'
ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dsa':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4209: undefined reference to `DSA_get0_key'
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4210: undefined reference to `BN_is_zero'
ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_and_assign_rsa':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4169: undefined reference to `RSA_set0_crt_params'
ext/openssl/.libs/openssl.o: In function `php_openssl_pkey_init_dh':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4274: undefined reference to `DH_set0_key'
ext/openssl/.libs/openssl.o: In function `zif_openssl_pkey_export_to_file':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4564: undefined reference to `EVP_PKEY_get0_EC_KEY'
ext/openssl/.libs/openssl.o: In function `zif_openssl_pkey_export':
/usr/local/src/php-build/php-7.3.17/ext/openssl/openssl.c:4641: undefined reference to `EVP_PKEY_get0_EC_KEY'
ext/openssl/.libs/openssl.o: In function `sk_X509_free':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_free'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_create_sni_server_ctx':
/usr/local/src/php-build/php-7.3.17/ext/openssl/xp_ssl.c:1377: undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_value':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/usr/local/src/php-build/php-7.3.17/ext/openssl/xp_ssl.c:1621: undefined reference to `TLS_server_method'
/usr/local/src/php-build/php-7.3.17/ext/openssl/xp_ssl.c:1678: undefined reference to `SSL_CTX_set_security_level'
/usr/local/src/php-build/php-7.3.17/ext/openssl/xp_ssl.c:1621: undefined reference to `TLS_client_method'
/usr/local/src/php-build/php-7.3.17/ext/openssl/xp_ssl.c:1719: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_set_server_specific_opts':
/usr/local/src/php-build/php-7.3.17/ext/openssl/xp_ssl.c:1308: undefined reference to `SSL_CTX_get_options'
/usr/local/src/php-build/php-7.3.17/ext/openssl/xp_ssl.c:1335: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_pop_free':
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
ext/ftp/.libs/php_ftp.o: In function `zm_startup_ftp':
/usr/local/src/php-build/php-7.3.17/ext/ftp/php_ftp.c:321: undefined reference to `OPENSSL_init_ssl'
/usr/local/src/php-build/php-7.3.17/ext/ftp/php_ftp.c:322: undefined reference to `OPENSSL_init_crypto'
/usr/local/src/php-build/php-7.3.17/ext/ftp/php_ftp.c:323: undefined reference to `OPENSSL_init_crypto'
/usr/local/src/php-build/php-7.3.17/ext/ftp/php_ftp.c:324: undefined reference to `OPENSSL_init_crypto'
/usr/local/src/php-build/php-7.3.17/ext/ftp/php_ftp.c:326: undefined reference to `OPENSSL_init_ssl'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/usr/local/src/php-build/php-7.3.17/ext/ftp/ftp.c:275: undefined reference to `TLS_client_method'
/usr/local/src/php-build/php-7.3.17/ext/ftp/ftp.c:284: undefined reference to `SSL_CTX_set_options'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/usr/local/src/php-build/php-7.3.17/ext/phar/util.c:1561: undefined reference to `EVP_MD_CTX_new'
/usr/local/src/php-build/php-7.3.17/ext/phar/util.c:1593: undefined reference to `EVP_MD_CTX_free'
/usr/local/src/php-build/php-7.3.17/ext/phar/util.c:1584: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/usr/local/src/php-build/php-7.3.17/ext/phar/util.c:1858: undefined reference to `EVP_MD_CTX_new'
/usr/local/src/php-build/php-7.3.17/ext/phar/util.c:1890: undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 98: /opt/alt/php-fpm73/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 99: /opt/alt/php-fpm73/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 101: /opt/alt/php-fpm73/usr/etc/php-fpm.d/cwpsvc.conf: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
exe:/opt/alt/php-fpm73/usr/sbin/php-fpm
Redirecting to /bin/systemctl restart httpd.service

Build Completed
###################

Error:Can't add notification!


PHP 7.2 or 7.3, same errors.
Current PHP version is 7.2.26

Can you help me?
Thanks.

Offline
*
Re: PHP Rebuild/Update Problem
« Reply #1 on: April 30, 2020, 06:00:29 PM »
PHP Version Switcher, PHP Selector 2 or PHP-FPM Selector
None of them work.
I need help.

Offline
*
Re: PHP Rebuild/Update Problem
« Reply #2 on: April 30, 2020, 06:14:39 PM »
I tried installing it manually.
https://www.mysterydata.com/how-to-install-build-php-7-3-manually-on-cwp-centos-web-panel/

It gives error when trying to install "libzip"
Code: [Select]
[ 82%] Preparing zip_source_write.3
[ 82%] Preparing zip_source_zip.3
[ 83%] Preparing zip_stat.3
[ 83%] Preparing zip_stat_init.3
[ 83%] Preparing zip_unchange.3
[ 83%] Preparing zip_unchange_all.3
[ 85%] Preparing zip_unchange_archive.3
[ 85%] Preparing zipcmp.1
[ 85%] Preparing zipmerge.1
[ 85%] Preparing ziptool.1
[ 85%] Built target man
Scanning dependencies of target ziptool
[ 87%] Building C object src/CMakeFiles/ziptool.dir/ziptool.c.o
[ 87%] Linking C executable ziptool
../lib/libzip.so.5.0: undefined reference to `HMAC_CTX_free'
../lib/libzip.so.5.0: undefined reference to `HMAC_CTX_new'
collect2: error: ld returned 1 exit status
make[2]: *** [src/ziptool] Error 1
make[1]: *** [src/CMakeFiles/ziptool.dir/all] Error 2
make: *** [all] Error 2

--
My system is up to date.
CentOS Linux release 7.8.2003 (Core)
CWPpro version: 0.9.8.966
Apache version: Apache/2.4.39


--
PHP-FPM isn't installed but still running in the background.
https://prnt.sc/s8t0fq
https://prnt.sc/s8szlp
https://prnt.sc/s8t11m
« Last Edit: April 30, 2020, 06:24:34 PM by brack »

Offline
*
Re: PHP Rebuild/Update Problem
« Reply #3 on: May 08, 2020, 06:14:43 AM »
I can't find any solution.
I tried to update openssl but it didn't happen because of nginx.
What else can I do? I didn't touch anything until this problem.

Offline
***
Re: PHP Rebuild/Update Problem
« Reply #4 on: May 08, 2020, 06:21:38 AM »
Try replace "make" with "cmake" and see what happens.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP Rebuild/Update Problem
« Reply #5 on: May 08, 2020, 06:45:06 AM »
Try replace "make" with "cmake" and see what happens.
I think I can't do that with "CWP Version Switcher"
I tried to do it manually according to the guide, but "cmake" doesn't work on "libzip" stage.
https://www.mysterydata.com/how-to-install-build-php-7-3-manually-on-cwp-centos-web-panel/
What exactly should I type?
« Last Edit: May 08, 2020, 06:50:18 AM by brack »

Offline
***
Re: PHP Rebuild/Update Problem
« Reply #6 on: May 08, 2020, 07:47:14 AM »
because it failed once, it may be causing more harm than good.

You should try
cd /usr/local/src/php-build/php-7.3.17
\rm -rf *

And see if rebuilding works.
I noticed a major issue with tar and tar.gz files labeled tar.gz.(1,2,3...)
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP Rebuild/Update Problem
« Reply #7 on: May 08, 2020, 08:57:42 AM »
because it failed once, it may be causing more harm than good.

You should try
cd /usr/local/src/php-build/php-7.3.17
\rm -rf *

And see if rebuilding works.
I noticed a major issue with tar and tar.gz files labeled tar.gz.(1,2,3...)
Code: [Select]
-bash: cd: /usr/local/src/php-build/php-7.3.17: No such file or directory

https://prnt.sc/sd2c0o
« Last Edit: May 08, 2020, 09:05:15 AM by brack »

Offline
***
Re: PHP Rebuild/Update Problem
« Reply #8 on: May 08, 2020, 09:24:04 AM »
Start by clearing some space by deleting those .zip and .tar gz files
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP Rebuild/Update Problem
« Reply #9 on: May 09, 2020, 12:49:46 AM »
Start by clearing some space by deleting those .zip and .tar gz files
Done.
What should I do next?

Offline
*
Re: PHP Rebuild/Update Problem
« Reply #10 on: May 10, 2020, 02:54:20 AM »
Hello guys,

As a result of my own efforts, I solved the problem.

First of all, I reinstalled "openssl-devel".
Code: [Select]
yum reinstall openssl-devel
Then I entered the command to find out which PHP versions are installed:
Code: [Select]
yum list installed | grep php
Code: [Select]
[root @ srv ~] # yum list installed | grep php
cwp-suphp.x86_64                    0.7.2-3                          @cwp
cwpphp.x86_64                       7.2.30-3                         @cwp
php-cli.x86_64                      7.3.17-1.el7.remi                @remi-php73
php-common.x86_64                   7.3.17-1.el7.remi                @remi-php73
php-gd.x86_64                       7.3.17-1.el7.remi                @remi-php73
php-json.x86_64                     7.3.17-1.el7.remi                @remi-php73
php-mbstring.x86_64                 7.3.17-1.el7.remi                @remi-php73
php-pecl-mcrypt.x86_64              1.0.3-1.el7.remi.7.3             @remi-php73
php-soap.x86_64                     7.3.17-1.el7.remi                @remi-php73
php-xml.x86_64                      7.3.17-1.el7.remi                @remi-php73
php-xmlrpc.x86_64                   7.3.17-1.el7.remi                @remi-php73

And I saw that "PHP 7.3.17" seems to be already installed.

So I took the package names and deleted them with the command
Code: [Select]
rpm -qa | grep php
Code: [Select]
[root @ srv ~] # rpm -qa | grep php
php-common-7.3.17-1.el7.remi.x86_64
php-soap-7.3.17-1.el7.remi.x86_64
php-xml-7.3.17-1.el7.remi.x86_64
cwpphp-7.2.30-3.x86_64
php-cli-7.3.17-1.el7.remi.x86_64
php-mbstring-7.3.17-1.el7.remi.x86_64
php-gd-7.3.17-1.el7.remi.x86_64
php-xmlrpc-7.3.17-1.el7.remi.x86_64
CWP-suPHP-0.7.2-3.x86_64
php-json-7.3.17-1.el7.remi.x86_64
php-PECL-mcrypt-1.0.3-1.el7.remi.7.3.x86_64
[root @ srv ~] # yum remove 7.3.17

Code: [Select]
yum remove -y php-cli-7.3.17-1.el7.remi.x86_64 php-common-7.3.17-1.el7.remi.x86_64 php-soap-7.3.17-1.el7.remi.x86_64 php-xml-7.3.17-1.el7.remi.x86_64 php-mbstring-7.3.17-1.el7.remi.x86_64 php-gd-7.3.17-1.el7.re mi.x86_64 php-xmlrpc- 7.3.17-1.el7.remi.x86_64 php-json-7.3.17-1.el7.remi.x86_64
https://prnt.sc/sdziaq

That's it.
Happy ending.