Join the community today
Register Now

Beta Branch fix PHP 7.x configure checks with GCC Toolset 15 in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 10, 2026 at 10:44 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    59,920
    12,549
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,194
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix PHP 7.x configure checks with GCC Toolset 15 in 140.00beta01

    GCC 14 and newer treat implicit int as an error, even with -std=gnu17.
    PHP 7.x configure probes such as the dlopen in -ldl check use main()
    without a return type, so with GCC Toolset 15 on EL8 they failed
    silently. PHP was then built without HAVE_LIBDL, POSIX shared memory and
    resolver support, and ext/ffi failed to compile with implicit DL_LOAD,
    DL_UNLOAD and DL_FETCH_SYMBOL declarations.


    Changes:
    - add -fpermissive to CFLAGS for PHP 7.x builds with GCC Toolset 15
    - leave CXXFLAGS and PHP 8.0+ builds unchanged
    - tools/test-gcc-toolset15.sh checks the PHP 7.x and 8.x GCC 15 flags

    Continue reading...

    140.00beta01 branch