custombuild php7.* wont compile

ezh

Verified User
Joined
Jun 13, 2019
Messages
23
Trying to custombuild php7.4 on (Debian 11.6)

Getting this error:
root@dhl:/usr/local/directadmin/custombuild# ./build update
root@dhl:/usr/local/directadmin/custombuild# ./build set_php "imap" yes
imap is already set to yes
root@dhl:/usr/local/directadmin/custombuild# ./build "php_imap"
Installing imap PHP extension for PHP 7.0.33...
-=O=-# # # #
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
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 whether cc understands -c and -o together... yes
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-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php70
checking for PHP includes... -I/usr/local/php70/include/php -I/usr/local/php70/include/php/main -I/usr/local/php70/include/php/TSRM -I/usr/local/php70/include/php/Zend -I/usr/local/php70/include/php/ext -I/usr/local/php70/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012
checking for PHP installed headers prefix... /usr/local/php70/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 2.0.3 (ok)
checking for gawk... gawk
checking for IMAP support... yes, shared
checking for IMAP Kerberos support... no
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether rfc822_output_address_list function present... no
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.
Trying to make imap PHP extension...
make: *** No targets specified and no makefile found. Stop.
*** The make has failed. Exiting...

Any ideas how to fix it?
*** The make has failed. Exiting...

In config.log last row is "configure: exit 0" - like all is OK.
 
Trying to custombuild php7.4 on (Debian 11.6)
and
imap is already set to yes
and
Installing imap PHP extension for PHP 7.0.33...

So are you trying to build php-imap for php 7.4 or for php 7.0?

It also seems that php_imap is already installed for the 7.0 version so that might be why it's not installed again and exits as everything is ok.
If you want to install it for php 7.4 then recompile php 7.4.

Either use:
./build update ./build php n
to update all php versions.

Or only update php 7.4 which would be like this (if you're using php-fpm):
./build php_expert php_74 or
./build php_expert php_74 php_fpm
 
Back
Top