PHP 8.1.12 problem with update from CB / openSSL problem?

D_Sobieraj

Verified User
Joined
Sep 13, 2012
Messages
7
Hi,

I have a VM with CLOUDLINUX DISTRO.

I want to update PHP 8.1.6 to PHP 8.1.12. I exec. as usually:
build update
build php n


but I have a problem with complete. I try also for troubleshooting using:
./build php_expert 8.1 php-fpm


Code:
ext/openssl/openssl.o: In function `zm_startup_openssl':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/openssl.c:1253: undefined reference to `OPENSSL_init_ssl'

ext/openssl/xp_ssl.o: In function `php_openssl_create_sni_server_ctx':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1361: undefined reference to `TLS_server_method'

ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1619: undefined reference to `TLS_server_method'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1681: undefined reference to `SSL_CTX_set_security_level'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1619: undefined reference to `TLS_client_method'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1718: undefined reference to `SSL_CTX_set_options'

ext/openssl/xp_ssl.o: In function `php_openssl_set_server_specific_opts':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1292: undefined reference to `SSL_CTX_get_options'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1319: undefined reference to `SSL_CTX_set_options'

ext/ftp/ftp.o: In function `ftp_login':

/usr/local/directadmin/custombuild/php-8.1.12/ext/ftp/ftp.c:271: undefined reference to `TLS_client_method'

/usr/local/directadmin/custombuild/php-8.1.12/ext/ftp/ftp.c:280: undefined reference to `SSL_CTX_set_options'

/usr/lib/libcrypto.a(threads_pthread.o): In function `fork_once_func':

threads_pthread.c:(.text+0x16): undefined reference to `pthread_atfork'

collect2: error: ld returned 1 exit status

make: *** [sapi/cgi/php-cgi] Error 1

ext/openssl/openssl.o: In function `zm_startup_openssl':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/openssl.c:1253: undefined reference to `OPENSSL_init_ssl'

ext/openssl/xp_ssl.o: In function `php_openssl_create_sni_server_ctx':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1361: undefined reference to `TLS_server_method'

ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1619: undefined reference to `TLS_server_method'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1681: undefined reference to `SSL_CTX_set_security_level'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1619: undefined reference to `TLS_client_method'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1718: undefined reference to `SSL_CTX_set_options'

ext/openssl/xp_ssl.o: In function `php_openssl_set_server_specific_opts':

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1292: undefined reference to `SSL_CTX_get_options'

/usr/local/directadmin/custombuild/php-8.1.12/ext/openssl/xp_ssl.c:1319: undefined reference to `SSL_CTX_set_options'

ext/ftp/ftp.o: In function `ftp_login':

/usr/local/directadmin/custombuild/php-8.1.12/ext/ftp/ftp.c:271: undefined reference to `TLS_client_method'

/usr/local/directadmin/custombuild/php-8.1.12/ext/ftp/ftp.c:280: undefined reference to `SSL_CTX_set_options'

/usr/lib/libcrypto.a(threads_pthread.o): In function `fork_once_func':

threads_pthread.c:(.text+0x16): undefined reference to `pthread_atfork'

collect2: error: ld returned 1 exit status

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

*** The make has failed. Exiting...
 
And you have a default openssl version on your server?
And you build PHP against the default openssl version?
What is the openssl version by the way?
 
often see there and one question - why not CloudLinux 7.9? you didn't run "yum update" from server install till nowadays?
maybe if you update your packages you will receive fix for this case?
 
And you have a default openssl version on your server?
And you build PHP against the default openssl version?
What is the openssl version by the way?
openssl version
OpenSSL 1.1.1s 1 Nov 2022

I tryed to build with default SSL version but i cant do that


when I try to execute command ./build all d I get:

checking for OpenSSL library ... not found
checking for OpenSSL library in /usr/local/ ... not found
checking for OpenSSL library in /usr/pkg/ ... not found
checking for OpenSSL library in /opt/local/ ... not found

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.


*** There was an error while trying to configure Nginx. Check the file
 
OK, just trying to figure out what is your setup, as it seems to be customized a bit. So OpenSSL 1.1.1s is installed into default paths, i.e. overwrites a default OpenSSL 1.0.2? Or they both coexist on the server?

And how does your configure.php looks like? Or even what do you see with /usr/local/php81/bin/php-config --configure-options now?
 
OK, just trying to figure out what is your setup, as it seems to be customized a bit. So OpenSSL 1.1.1s is installed into default paths, i.e. overwrites a default OpenSSL 1.0.2? Or they both coexist on the server?

And how does your configure.php looks like? Or even what do you see with /usr/local/php81/bin/php-config --configure-options now?
output from this command look like this:

/usr/local/php81/bin/php-config --configure-options
--with-iconv=/usr/local --enable-embed --prefix=/usr/local/php81 --program-suffix=81 --enable-fpm --with-fpm-systemd --enable-litespeed --with-config-file-scan-dir=/usr/local/php81/lib/php.conf.d --with-curl --enable-gd --with-gettext --with-jpeg --with-freetype --with-kerberos --with-openssl --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-pear --with-sodium=/usr/local --with-webp --with-xsl --with-zlib --with-zip --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --enable-intl PKG_CONFIG_PATH=/usr/local/icu/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig


yes openssl 1.1.1s is overwrite over 1.0.2, when I try to launch manual command openssl its working fine but DA doesnt accept it for rebuild, is any solution for that?
 
when I try to launch manual command openssl its working fine but DA doesnt accept it for rebuild, is any solution for that?

When you try manual command to configure/install PHP? Not too sure, what you mean here. If configure/make PHP manually, and it goes fine, and fails when you do it with custombuild script, then probably there are some patches applied by custombuild which breaks the process.

Anyway, will you clarify your thoughts please.
 
Back
Top