-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building ext/intl fails with GCC 8.5.0 #17107
Comments
To clarify: You mean intl, not imap? The imap extension now lives at https://github.com/php/pecl-mail-imap. |
php-src/Zend/zend_portability.h Line 58 in d90b5fa
vs php-src/Zend/zend_portability.h Line 798 in d90b5fa
I guess. |
This is caused by #15096. Need to double check whether including |
I've checked that more thoroughly, and the problem is that stddef.h does not define An alternative fix would have been to just not relying on But dropping the cstddef include now might introduce an ABI break (what would be very bad). So I don't know what to do. Any suggestions welcome! |
what is the minimum Linux operating system required to compile and build PHP 8.4.1? |
See https://www.php.net/manual/en/install.unix.source.php. Wrt to Linux distributions, we used to keep an eye on still supported CentOS versions (which were rather conservative), but this distribution is gone now. It seems that AlmaLinux 8 is supposed to get security updates till 2029 (PHP-8.4 on until end of 2028), so it might be a good idea to support that. And apparently, AlmaLinux 8.10 ships with GCC 8.5.0 by default. |
However, I am getting issues with the same configuration. is there any way I can solve that? |
A previous fix to be able to build C++ extensions with MSVC[1], was based on two assumptions: * `max_align_t` would be defined in stddef.h on Windows * additionally including cstddef as extern C++ would not interfere with the already included stddef.h The former was plain wrong; there is no such typedef (or macro); the latter was presumptuous, as can be seen in the bug tracker ticket. Thus we revert that fix, and instead make an exception for Windows, where we always use the fallback definition, which should work fine on Windows. [1] <php@ab449a7>
You can try the patch from the linked PR, or upgrade GCC, I think. |
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.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
The text was updated successfully, but these errors were encountered: