Skip to content
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

PHP 8.4.1下静态编译出错 #5581

Closed
hkargc opened this issue Nov 22, 2024 · 2 comments
Closed

PHP 8.4.1下静态编译出错 #5581

hkargc opened this issue Nov 22, 2024 · 2 comments

Comments

@hkargc
Copy link

hkargc commented Nov 22, 2024

Please answer these questions before submitting your issue.

  1. What did you do? If possible, provide a simple script for reproducing the error.

/usr/local/src/php-8.4.1/ext/swoole/ext-src/swoole_coroutine.cc: In function ‘void php_swoole_coroutine_rinit()’:
/usr/local/src/php-8.4.1/ext/swoole/ext-src/swoole_coroutine.cc:994:57: error: ‘ZEND_EXIT’ was not declared in this scope; did you mean ‘ZEND_CAST’?
994 | ori_exit_handler = zend_get_user_opcode_handler(ZEND_EXIT);
| ^~~~~~~~~
| ZEND_CAST
make: *** [Makefile:3822: ext/swoole/ext-src/swoole_coroutine.lo] Error 1
make: *** Waiting for unfinished jobs....

  1. What did you expect to see?

Fixed by #5465
这里说已经解决了,应该只是解决了动态编译的情况

  1. What did you see instead?

  2. What version of Swoole are you using (show your php --ri swoole)?

  3. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
    uname -a : Linux 5.14.0-503.14.1.el9_5.x86_64 编译出错 #1 SMP PREEMPT_DYNAMIC Fri Nov 15 12:04:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

gcc -v : gcc version 11.5.0 20240719 (Red Hat 11.5.0-2) (GCC)

@NathanFreeman
Copy link
Member

5.1.*不支持8.4,6.0之后的才支持8.4

@hkargc
Copy link
Author

hkargc commented Nov 22, 2024

原来如此,谢谢

@hkargc hkargc closed this as completed Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants