PHP 8.3 compile error

zwerfkat

Verified User
Joined
Sep 23, 2011
Messages
16
When I try to build a new PHP 8.3 installation, I get many compile errors like:
Code:
da build set php5_release 8.3

da build php 8.3

[...]
In file included from /usr/local/directadmin/custombuild/tmp/tmp.GSmwJUGKNL.php-8.3.21.tar.gz/ext/zip/php_zip.h:28,
                 from /usr/local/directadmin/custombuild/tmp/tmp.GSmwJUGKNL.php-8.3.21.tar.gz/ext/zip/php_zip.c:31:
/usr/local/include/zip.h:282:21: error: expected ':', ',', ';', '}' or '__attribute__' before 'str'
  282 |     char *_Nullable str; /* string representation or NULL */
      |                     ^~~
/usr/local/include/zip.h:297:27: error: expected ':', ',', ';', '}' or '__attribute__' before 'name'
  297 |     const char *_Nullable name;     /* name of the file */
 [...]

Finally ending with:
Code:
make: *** [Makefile:2300: ext/zip/php_zip.lo] Error 1
make: *** Waiting for unfinished jobs....
install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-8.3.21.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.GSmwJUGKNL.php-8.3.21.tar.gz'

Running CentOS Linux release 7.7.1908
Already tried to update gcc-c++, but already have the latest version installed being: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

Any idea what is causing this or what I can try to mitigate?
 
Back
Top