Discover Centmin Mod today
Register Now

PHP-FPM Php 7.4 install and upgrade fails with Almalinux 8

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by atomi, Sep 28, 2026.

  1. atomi

    atomi Member

    48
    11
    8
    Jul 14, 2018
    Ratings:
    +32
    Local Time:
    1:41 AM
    1.31.x
    10.6
    I was updating nginx and php 7.4.33 with some old server as usual like I have done tens of times but updating php ran into error. Then tried to fresh CMM install in my clean stock Almalinux 8 test server with following command without any persistent config but also that stopped with php compile error
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller74.sh && chmod 0700 betainstaller74.sh && bash betainstaller74.sh
    

    • CentOS Version: AlmaLinux 8
    • Centmin Mod Version Installed: both 140.00beta01 and 141.00beta01
      Code (Text):
      cminfo versions
      1st:
      140.00beta01.b381 #Sun Sep 27 16:15:45 EDT 2026
      
    • PHP Version Installed: 7.4.33
    • When was last time updated Centmin Mod code base ? : Fresh install and just before upgrade with old server
    • Persistent Config: No

    Here is the part where it stops:
    Code (Text):
    /bin/sh /svr-setup/php-7.4.33/fpm-build/libtool --silent --preserve-dup-deps --mode=compile /opt/rh/gcc-toolset-15/root/usr/bin/gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/ffi/ -I/svr-setup/php-7.4.33/ext/ffi/ -DPHP_ATOM_INC -I/svr-setup/php-7.4.33/fpm-build/include -I/svr-setup/php-7.4.33/fpm-build/main -I/svr-setup/php-7.4.33 -I/usr/include/valgrind -I/svr-setup/php-7.4.33/fpm-build/ext/date/lib -I/svr-setup/php-7.4.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/imap -I/svr-setup/php-7.4.33/ext/mbstring/libmbfl -I/svr-setup/php-7.4.33/fpm-build/ext/mbstring/libmbfl -I/svr-setup/php-7.4.33/ext/mbstring/libmbfl/mbfl -I/svr-setup/php-7.4.33/fpm-build/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/usr/include/editline -I/usr/local/include -I/opt/remi/libzip/include -I/svr-setup/php-7.4.33/fpm-build/TSRM -I/svr-setup/php-7.4.33/fpm-build/Zend -I/svr-setup/php-7.4.33/main -I/svr-setup/php-7.4.33/Zend -I/svr-setup/php-7.4.33/TSRM -I/svr-setup/php-7.4.33/fpm-build/  -D_FORTIFY_SOURCE=2  -I/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=gnu17 -fstack-protector-strong -fPIC -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /svr-setup/php-7.4.33/ext/ffi/ffi.c -o ext/ffi/ffi.lo
    /svr-setup/php-7.4.33/ext/ffi/ffi.c: In function ‘zend_ffi_free_obj’:
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2318:17: error: implicit declaration of function ‘DL_UNLOAD’ [-Wimplicit-function-declaration]
     2318 |                 DL_UNLOAD(ffi->lib);
          |                 ^~~~~~~~~
    /svr-setup/php-7.4.33/ext/ffi/ffi.c: In function ‘zim_FFI_cdef’:
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2881:26: error: implicit declaration of function ‘DL_LOAD’ [-Wimplicit-function-declaration]
     2881 |                 handle = DL_LOAD(ZSTR_VAL(lib));
          |                          ^~~~~~~
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2881:24: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     2881 |                 handle = DL_LOAD(ZSTR_VAL(lib));
          |                        ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2920:48: error: implicit declaration of function ‘DL_FETCH_SYMBOL’ [-Wimplicit-function-declaration]
     2920 |                                         addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(name));
          |                                                ^~~~~~~~~~~~~~~
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2920:46: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     2920 |                                         addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(name));
          |                                              ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2928:46: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     2928 |                                         addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(mangled_name));
          |                                              ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c: In function ‘zend_ffi_load’:
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:3208:24: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     3208 |                 handle = DL_LOAD(lib);
          |                        ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:3237:38: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     3237 |                                 addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(name));
          |                                      ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:3253:38: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     3253 |                                 addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(mangled_name));
          |                                      ^
    make: *** [Makefile:975: ext/ffi/ffi.lo] Error 1
    make: *** Waiting for unfinished jobs....
    
    real    0m43.261s
    user    1m14.888s
    sys    0m9.724s
    
    php_configure.inc make install
    /bin/sh /svr-setup/php-7.4.33/fpm-build/libtool --silent --preserve-dup-deps --mode=compile /opt/rh/gcc-toolset-15/root/usr/bin/gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/ffi/ -I/svr-setup/php-7.4.33/ext/ffi/ -DPHP_ATOM_INC -I/svr-setup/php-7.4.33/fpm-build/include -I/svr-setup/php-7.4.33/fpm-build/main -I/svr-setup/php-7.4.33 -I/usr/include/valgrind -I/svr-setup/php-7.4.33/fpm-build/ext/date/lib -I/svr-setup/php-7.4.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/imap -I/svr-setup/php-7.4.33/ext/mbstring/libmbfl -I/svr-setup/php-7.4.33/fpm-build/ext/mbstring/libmbfl -I/svr-setup/php-7.4.33/ext/mbstring/libmbfl/mbfl -I/svr-setup/php-7.4.33/fpm-build/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/usr/include/editline -I/usr/local/include -I/opt/remi/libzip/include -I/svr-setup/php-7.4.33/fpm-build/TSRM -I/svr-setup/php-7.4.33/fpm-build/Zend -I/svr-setup/php-7.4.33/main -I/svr-setup/php-7.4.33/Zend -I/svr-setup/php-7.4.33/TSRM -I/svr-setup/php-7.4.33/fpm-build/  -D_FORTIFY_SOURCE=2  -I/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=gnu17 -fstack-protector-strong -fPIC -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /svr-setup/php-7.4.33/ext/ffi/ffi.c -o ext/ffi/ffi.lo
    /svr-setup/php-7.4.33/ext/ffi/ffi.c: In function ‘zend_ffi_free_obj’:
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2318:17: error: implicit declaration of function ‘DL_UNLOAD’ [-Wimplicit-function-declaration]
     2318 |                 DL_UNLOAD(ffi->lib);
          |                 ^~~~~~~~~
    /svr-setup/php-7.4.33/ext/ffi/ffi.c: In function ‘zim_FFI_cdef’:
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2881:26: error: implicit declaration of function ‘DL_LOAD’ [-Wimplicit-function-declaration]
     2881 |                 handle = DL_LOAD(ZSTR_VAL(lib));
          |                          ^~~~~~~
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2881:24: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     2881 |                 handle = DL_LOAD(ZSTR_VAL(lib));
          |                        ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2920:48: error: implicit declaration of function ‘DL_FETCH_SYMBOL’ [-Wimplicit-function-declaration]
     2920 |                                         addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(name));
          |                                                ^~~~~~~~~~~~~~~
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2920:46: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     2920 |                                         addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(name));
          |                                              ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:2928:46: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     2928 |                                         addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(mangled_name));
          |                                              ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c: In function ‘zend_ffi_load’:
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:3208:24: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     3208 |                 handle = DL_LOAD(lib);
          |                        ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:3237:38: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     3237 |                                 addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(name));
          |                                      ^
    /svr-setup/php-7.4.33/ext/ffi/ffi.c:3253:38: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     3253 |                                 addr = DL_FETCH_SYMBOL(handle, ZSTR_VAL(mangled_name));
          |                                      ^
    make: *** [Makefile:975: ext/ffi/ffi.lo] Error 1
    
    real    0m0.464s
    user    0m0.380s
    sys    0m0.104s
    
    


     
    Last edited: Sep 29, 2026
  2. atomi

    atomi Member

    48
    11
    8
    Jul 14, 2018
    Ratings:
    +32
    Local Time:
    1:41 AM
    1.31.x
    10.6
    Tried to recompile php 7.4.33 in old CMM install with and without Zend opcache but doesnt matter still failing
    Fresh install also failing
     
  3. eva2000

    eva2000 Administrator Staff Member

    59,941
    12,556
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,201
    Local Time:
    8:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Looking into this.
     
  4. eva2000

    eva2000 Administrator Staff Member

    59,941
    12,556
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,201
    Local Time:
    8:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Should be fixed now, run cmupdate and centmin.sh menu option 5 again for upgrades or for new servers, fresh AlmaLinux 8 Centmin Mod installs.

    Issue was September 21, 2026 switch to defaulting to GCC 15.2 compiler which treated some warnings as hard errors unlike earlier GCC versions.
     
  5. atomi

    atomi Member

    48
    11
    8
    Jul 14, 2018
    Ratings:
    +32
    Local Time:
    1:41 AM
    1.31.x
    10.6
    I can confirm that upgrade in old server and fresh install in new server works as usual again. Thanks for your help