Author Topic: PHP-FPM 8.0 not building.  (Read 4765 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP-FPM 8.0 not building.
« on: June 02, 2022, 09:55:08 PM »
Facing similar issue while installing php 8.1 through FPM selector.

checking for if_indextoname... yes

checking netinet/tcp.h usability... yes

checking netinet/tcp.h presence... yes

checking for netinet/tcp.h... yes

checking sys/un.h usability... yes

checking sys/un.h presence... yes

checking for sys/un.h... yes

checking sys/sockio.h usability... no

checking sys/sockio.h presence... no

checking for sys/sockio.h... no

checking for field ss_family in struct sockaddr_storage... yes

checking if getaddrinfo supports AI_V4MAPPED... yes

checking if getaddrinfo supports AI_ALL... yes

checking if getaddrinfo supports AI_IDN... yes

checking for sodium support... no

checking whether flush should be called explicitly after a buffered io... no

checking for crypt... yes

checking for crypt_r... yes

checking which data struct is used by crypt_r... struct_crypt_data

checking for standard DES crypt... yes

checking for extended DES crypt... no

checking for MD5 crypt...

yes

checking for Blowfish crypt... no

checking for SHA512 crypt... yes

checking for SHA256 crypt... yes

checking whether the compiler supports aligned attribute... yes

checking for working POSIX fnmatch... yes

checking for fork... (cached) yes

checking if your OS can spawn processes with inherited handles... yes

checking for res_nsearch... no

checking for __res_nsearch... no

checking for res_nsearch in -lresolv... no

checking for __res_nsearch in -lresolv... yes

checking for res_ndestroy... no

checking for __res_ndestroy... no

checking for res_ndestroy in -lresolv... no

checking for __res_ndestroy in -lresolv... no

checking for res_ndestroy in -lbind... no

checking for __res_ndestroy in -lbind... no

checking for res_ndestroy in -lsocket... no

checking for __res_ndestroy in -lsocket... no

checking for dns_search... no

checking for __dns_search... no

checking for dns_search in -lresolv... no

checking for __dns_search in -lresolv...

no

checking for dns_search in -lbind... no

checking for __dns_search in -lbind... no

checking for dns_search in -lsocket... no

checking for __dns_search in -lsocket... no

checking for dn_expand... no

checking for __dn_expand... yes

checking for dn_skipname... no

checking for __dn_skipname... yes

checking for res_search... no

checking for __res_search... yes

checking whether strptime() declaration fails... yes

checking whether arc4random_buf is declared... no

checking for Argon2 support... yes

checking for Argon2 library... found in /usr

checking for argon2id_hash_raw in -largon2...

yes

checking for net/if.h... yes

checking for usable getifaddrs... yes

checking whether to enable System V IPC support... yes

checking sys/msg.h usability... yes

checking sys/msg.h presence... yes

checking for sys/msg.h... yes

checking whether to enable System V semaphore support... yes

checking for union semun... no

checking whether to enable System V shared memory support... yes

checking for TIDY support... yes

checking for tidyOptGetDoc in -ltidy... yes

checking for tidyReleaseDate in -ltidy... yes

checking whether to enable tokenizer support... yes

checking whether to enable XML support... yes

checking whether to build with expat support... no

checking for libxml-2.0 >= 2.9.0... yes

checking whether to enable XMLReader support... yes

checking for libxml-2.0 >= 2.9.0... yes

checking whether to enable XMLWriter support... yes

checking for libxml-2.0 >= 2.9.0... yes

checking whether to build with XSL support... yes

checking for libxslt >= 1.1.0... yes

checking for libexslt... yes

checking whether to enable zend-test extension... no

checking for zip archive read/write support... yes

checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no

configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:

No package 'libzip' found

No package 'libzip' found

No package 'libzip' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you

installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBZIP_CFLAGS

and LIBZIP_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

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

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: centos.crazyfrogs.org

* epel: mirror.in2p3.fr

* extras: centos.crazyfrogs.org

* remi-safe: remirepo.reloumirrors.net

* updates: centos.crazyfrogs.org

Package ImageMagick-6.9.10.68-6.el7_9.x86_64 already installed and latest version

Package ImageMagick-devel-6.9.10.68-6.el7_9.x86_64 already installed and latest version

Package ImageMagick-perl-6.9.10.68-6.el7_9.x86_64 already installed and latest version

Nothing to do

chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Cloning into 'imagick'...

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/imagick.sh: line 8: /opt/alt/php80/usr/bin/phpize: No such file or directory

ln: failed to create symbolic link '/usr/local/include/ImageMagick': File exists

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/imagick.sh: line 10: ./configure: No such file or directory

cat clean.sh >clean

chmod a+x clean

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/imagick.sh: line 16: /opt/alt/php80/usr/bin/php-config: No such file or directory

ERROR: Missing extension file /imagick.so

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: centos.crazyfrogs.org

* epel: mirror.in2p3.fr

* extras: centos.crazyfrogs.org

* remi-safe: remirepo.reloumirrors.net

* updates: centos.crazyfrogs.org

Package libsodium-1.0.18-1.el7.x86_64 already installed and latest version

Package libsodium-devel-1.0.18-1.el7.x86_64 already installed and latest version

Nothing to do

chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 28505 100 28505 0 0 53225 0 --:--:-- --:--:-- --:--:-- 53180

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/sodium.sh: line 9: /opt/alt/php80/usr/bin/phpize: No such file or directory

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/sodium.sh: line 10: ./configure: No such file or directory

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/sodium.sh: line 14: /opt/alt/php80/usr/bin/php-config: No such file or directory

ERROR: Missing extension file /sodium.so

Build Completed

###################

Error:Can't add notification!

Offline
*
Re: PHP-FPM 8.0 not building.
« Reply #1 on: August 02, 2022, 03:39:08 AM »
I'm having same issue. Disabling the Sodium module in configuration before build solves that error but it raises another one related with opcache and jit

In my case I'm trying to build php 8.1 without success

Offline
*
Re: PHP-FPM 8.0 not building.
« Reply #2 on: August 26, 2022, 10:40:05 PM »
the same.

U build php 8.0 with no success.

Offline
*
Re: PHP-FPM 8.0 not building.
« Reply #3 on: October 04, 2022, 05:19:52 PM »
Finally I managed to solve it by rebuilding openssl from sources and the PHP build completed successfuly. But my problem now is that after rebuild the new version is not being updated. System already shows the old one. Could Anyone help with this?

Offline
*
Re: PHP-FPM 8.0 not building.
« Reply #4 on: October 21, 2022, 02:07:07 AM »
I'm having the exact same problem with both 8.0 and 8.1, even tried multiple versions of them.

I was hoping there was some proper explanation and fix here but there doesn't seem to be anything, which is a shame because the script I'm trying to install requires PHP 8.0 or higher.

The two errors seem to be imagick.so and sodium.so

Code: [Select]
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.1/imagick.sh: line 16: /opt/alt/php81/usr/bin/php-config: No such file or directory

ERROR: Missing extension file /imagick.so

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

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirror.wdc1.us.leaseweb.net

* epel: mirrors.mit.edu

* extras: coresite.mm.fcix.net

* updates: nyc.mirrors.clouvider.net

http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Trying other mirror.

To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

Package libsodium-1.0.18-1.el7.x86_64 already installed and latest version

Package libsodium-devel-1.0.18-1.el7.x86_64 already installed and latest version

Nothing to do

chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 28505 100 28505 0 0 54575 0 --:--:-- --:--:-- --:--:-- 54502

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.1/sodium.sh: line 9: /opt/alt/php81/usr/bin/phpize: No such file or directory

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.1/sodium.sh: line 10: ./configure: No such file or directory

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.1/sodium.sh: line 14: /opt/alt/php81/usr/bin/php-config: No such file or directory

ERROR: Missing extension file /sodium.so

After disabling imagick and sodium

Code: [Select]
8.1.11/ext/opcache/ -I/usr/local/src/php-build/php-8.1.11/include -I/usr/local/src/php-build/php-8.1.11/main -I/usr/local/src/php-build/php-8.1.11 -I/usr/local/src/php-build/php-8.1.11/ext/date/lib -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/usr/local/src/php-build/php-8.1.11/TSRM -I/usr/local/src/php-build/php-8.1.11/Zend -fno-common -Wstrict-prototypes -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -Wno-implicit-fallthrough -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/src/php-build/php-8.1.11/ext/opcache/jit/zend_jit.c -o ext/opcache/jit/zend_jit.lo -MMD -MF ext/opcache/jit/zend_jit.dep -MT ext/opcache/jit/zend_jit.lo

cc: internal compiler error: Killed (program cc1)

Please submit a full bug report,

with preprocessed source if appropriate.

See for instructions.

make: *** [ext/opcache/jit/zend_jit.lo] Error 1

/bin/sh /usr/local/src/php-build/php-8.1.11/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu11 -Iext/opcache/ -I/usr/local/src/php-build/php-8.1.11/ext/opcache/ -I/usr/local/src/php-build/php-8.1.11/include -I/usr/local/src/php-build/php-8.1.11/main -I/usr/local/src/php-build/php-8.1.11 -I/usr/local/src/php-build/php-8.1.11/ext/date/lib -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/usr/local/src/php-build/php-8.1.11/TSRM -I/usr/local/src/php-build/php-8.1.11/Zend -fno-common -Wstrict-prototypes -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -Wno-implicit-fallthrough -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/src/php-build/php-8.1.11/ext/opcache/jit/zend_jit.c -o ext/opcache/jit/zend_jit.lo -MMD -MF ext/opcache/jit/zend_jit.dep -MT ext/opcache/jit/zend_jit.lo

cc: internal compiler error: Killed (program cc1)

Please submit a full bug report,

with preprocessed source if appropriate.

See for instructions.

make: *** [ext/opcache/jit/zend_jit.lo] Error 1

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

chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

--2022-10-21 02:23:17-- http://static.cdn-cwp.com/files/php/pecl/mcrypt-1.0.4.tgz

Resolving static.cdn-cwp.com (static.cdn-cwp.com)... 137.74.148.116, 198.27.104.40, 167.114.21.226, ...

Connecting to static.cdn-cwp.com (static.cdn-cwp.com)|137.74.148.116|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 27056 (26K) [application/x-tar]

Saving to: 'mcrypt-1.0.4.tgz'

0K .......... .......... ...... 100% 2.66M=0.01s

2022-10-21 02:23:17 (2.66 MB/s) - 'mcrypt-1.0.4.tgz' saved [27056/27056]

Configuring for:

PHP Api Version: 20190902

Zend Module Api No: 20190902

Zend Extension Api No: 320190902

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for a sed that does not truncate output... /usr/bin/sed

checking for pkg-config... /usr/bin/pkg-config

checking pkg-config is at least version 0.9.0... yes

checking for cc... cc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether cc accepts -g... yes

checking for cc option to accept ISO C89... none needed

checking how to run the C preprocessor... cc -E

checking for icc... no

checking for suncc... no

checking for system library directory... lib

checking if compiler supports -R... no

checking if compiler supports -Wl,-rpath,... yes

checking build system type... x86_64-pc-linux-gnu

checking host system type... x86_64-pc-linux-gnu

checking target system type... x86_64-pc-linux-gnu

configure: error: Cannot find php-config. Please use --with-php-config=PATH

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Build Completed

###################

Error:Can't add notification!
« Last Edit: October 21, 2022, 02:25:08 AM by SL1DE »

Offline
*
Re: PHP-FPM 8.0 not building.
« Reply #5 on: August 29, 2023, 06:18:54 PM »
No lucks building php80
on Centos 8 as well

Offline
*****
Re: PHP-FPM 8.0 not building.
« Reply #6 on: August 29, 2023, 08:27:17 PM »
Are you trying to build this inside CWP or outside using the REMI repos?

Make sure ionCube is Disabled, since it has no support for PHP 8.0.x
We always disable ImageMagicK to avoid errors.

Also PHP 8.0.x is EOL, and wasn't really supported by anything.
As mentioned, even ionCube skipped support for that version.