build php8.0 failed

Morala

Verified User
Joined
Jul 27, 2010
Messages
15
Hello,

We're having problems when we tried to build php8.0 and php8.1 in php-fpm mode under CloudlinuxOS 8.5, we get this error from custombuild:


/bin/sh /usr/local/directadmin/custombuild/php-8.0.16/libtool --silent --preserve-dup-deps --mode=link cc -shared -I/usr/local/directadmin/custombuild/php-8.0.16/include -I/usr/local/directadmin/custombuild/php-8.0.16/main -I/usr/local/directadmin/custombuild/php-8.0.16 -I/usr/local/directadmin/custombuild/php-8.0.16/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/local/directadmin/custombuild/php-8.0.16/ext/mbstring/libmbfl -I/usr/local/directadmin/custombuild/php-8.0.16/ext/mbstring/libmbfl/mbfl -I/usr/local/directadmin/custombuild/php-8.0.16/TSRM -I/usr/local/directadmin/custombuild/php-8.0.16/Zend -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -o ext/opcache/opcache.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/directadmin/custombuild/php-8.0.16/modules -avoid-version -module ext/opcache/ZendAccelerator.lo ext/opcache/zend_accelerator_blacklist.lo ext/opcache/zend_accelerator_debug.lo ext/opcache/zend_accelerator_hash.lo ext/opcache/zend_accelerator_module.lo ext/opcache/zend_persist.lo ext/opcache/zend_persist_calc.lo ext/opcache/zend_file_cache.lo ext/opcache/zend_shared_alloc.lo ext/opcache/zend_accelerator_util_funcs.lo ext/opcache/shared_alloc_shm.lo ext/opcache/shared_alloc_mmap.lo ext/opcache/shared_alloc_posix.lo ext/opcache/Optimizer/zend_optimizer.lo ext/opcache/Optimizer/pass1.lo ext/opcache/Optimizer/pass3.lo ext/opcache/Optimizer/optimize_func_calls.lo ext/opcache/Optimizer/block_pass.lo ext/opcache/Optimizer/optimize_temp_vars_5.lo ext/opcache/Optimizer/nop_removal.lo ext/opcache/Optimizer/compact_literals.lo ext/opcache/Optimizer/zend_cfg.lo ext/opcache/Optimizer/zend_dfg.lo ext/opcache/Optimizer/dfa_pass.lo ext/opcache/Optimizer/zend_ssa.lo ext/opcache/Optimizer/zend_inference.lo ext/opcache/Optimizer/zend_func_info.lo ext/opcache/Optimizer/zend_call_graph.lo ext/opcache/Optimizer/sccp.lo ext/opcache/Optimizer/scdf.lo ext/opcache/Optimizer/dce.lo ext/opcache/Optimizer/escape_analysis.lo ext/opcache/Optimizer/compact_vars.lo ext/opcache/Optimizer/zend_dump.lo ext/opcache/jit/zend_jit.lo ext/opcache/jit/zend_jit_vm_helpers.lo -lrt

/bin/sh /usr/local/directadmin/custombuild/php-8.0.16/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /usr/local/directadmin/custombuild/php-8.0.16/modules

Build complete.
Don't forget to run 'make test'.

Make Complete
Making PHP 8.0 installation compatible with php.ini file
Temporary disabling extensions...
Installing php...
Installing PHP SAPI module: embed
Installing shared extensions: /usr/local/php80/lib/php/extensions/no-debug-non-zts-20200930/
Installing PHP CLI binary: /usr/local/php80/bin/
Installing PHP CLI man page: /usr/local/php80/php/man/man1/
Installing PHP FPM binary: /usr/local/php80/sbin/
Installing PHP FPM defconfig: skipping
Installing PHP FPM man page: /usr/local/php80/php/man/man8/
Installing PHP FPM status page: /usr/local/php80/php/php/fpm/
Installing PHP LiteSpeed binary: /usr/local/php80/bin/
Installing phpdbg binary: /usr/local/php80/bin/
Installing phpdbg man page: /usr/local/php80/php/man/man1/
Installing PHP CGI binary: /usr/local/php80/bin/
Installing PHP CGI man page: /usr/local/php80/php/man/man1/
Installing build environment: /usr/local/php80/lib/php/build/
Installing header files: /usr/local/php80/include/php/
Installing helper programs: /usr/local/php80/bin/

program: phpize80
program: php-config80
Installing man pages: /usr/local/php80/php/man/man1/
page: phpize80.1
page: php-config80.1
Installing PEAR environment: /usr/local/php80/lib/php/
make[1]: *** [Makefile:548: install-pear-installer] Segmentation fault (core dumped)
make: *** [Makefile:553: install-pear] Error 2





This is our options.conf


#PHP Settings
php1_release=5.6
php1_mode=php-fpm
php2_release=8.0
php2_mode=php-fpm
php3_release=7.2
php3_mode=php-fpm
php4_release=7.4
php4_mode=php-fpm
secure_php=yes
php_ini=yes
php_timezone=Europe/Madrid
php_ini_type=production
x_mail_header=yes

#MySQL Settings
mysql=8.0
mariadb=10.4
mysql_inst=mariadb
mysql_backup=yes
mysql_backup_gzip=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
unit=no
webserver=nginx_apache
http_methods=ALL
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=owasp
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
userdir_access=no
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=cloud6.hospedajeydominios.com
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_public=yes
phpmyadmin_ver=5
squirrelmail=yes
roundcube=yes
webapps_inbox_prefix=n

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
pureftpd_uploadscan=yes
suhosin_php_uploadscan=no

#Mail Settings
exim=yes
eximconf=yes
eximconf_release=4.5
blockcracking=yes
easy_spam_fighter=yes
spamd=rspamd
sa_update=daily
dovecot=yes
dovecot_conf=yes
mail_compress=no
pigeonhole=yes

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=yes
webalizer=yes

#PHP Extension Settings
#CustomBuild Settings
custombuild=2.0
custombuild_plugin=yes
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files-fr.directadmin.com
unofficial_mirrors=no

#Cronjob Settings
cron=yes
cron_frequency=daily
email=[email protected]
notifications=no
da_autoupdate=no
updates=no
webapps_updates=no

#CloudLinux Settings
cloudlinux=yes
cloudlinux_beta=no
cagefs=no

#Advanced Settings
curl=no
ssl_configuration=intermediate

#PHP extensions can be found in php_extensions.conf
redis=yes
csf=yes
 
Back
Top