Closed
Description
Description
I am trying to compile PHP 8.4.1 on AlmaLinux release 8.10
When I enable the IMAPintl extension with the --enable-intl=shared
option i ran into below errors.
/usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h:437:2: error: expected ‘;’ after struct definition
} max_align_t;
^
;
/usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h:437:1: error: missing type-name in typedef-declaration
} max_align_t;
^
/usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h:437:14: error: expected unqualified-id before ‘;’ token
} max_align_t;
^
<command-line>: error: expected unqualified-id before ‘void’
In file included from /setups/php-8.4.1/Zend/zend_portability.h:798,
from /setups/php-8.4.1/Zend/zend_types.h:25,
from /setups/php-8.4.1/ext/intl/intl_convertcpp.h:23,
from /setups/php-8.4.1/ext/intl/intl_convertcpp.cpp:17:
/usr/include/c++/8/cstddef:56:11: error: expected ‘;’ before ‘void’
using ::max_align_t;
^
;
/usr/include/c++/8/cstddef:56:22: error: expected unqualified-id before ‘;’ token
using ::max_align_t;
^
<command-line>: error: expected unqualified-id before ‘void’
/setups/php-8.4.1/Zend/zend_portability.h:800:14: note: in expansion of macro ‘max_align_t’
typedef std::max_align_t zend_max_align_t;
^~~~~~~~~~~
In file included from /setups/php-8.4.1/main/php.h:31,
from /setups/php-8.4.1/ext/intl/intl_convertcpp.cpp:20:
/setups/php-8.4.1/Zend/zend.h:240:2: error: ‘zend_max_align_t’ does not name a type; did you mean ‘max_align_t’?
zend_max_align_t align;
^~~~~~~~~~~~~~~~
max_align_t
I am using gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
PHP Version
php 8.4.1
Operating System
AlmaLinux release 8.10