用GCC13 编译php8错误, include\swoole_proxy.h文件缺少 #include <cstdint>。 #13263
GoussCN
started this conversation in
Bugs / 问题反馈
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
编译PHP8出现下面错误:
/home/flags/lede/build_dir/target-x86_64_musl/pecl-php8/swoole-4.8.12/include/swoole_proxy.h:61:5: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
/home/flags/lede/build_dir/target-x86_64_musl/pecl-php8/swoole-4.8.12/include/swoole_proxy.h:62:5: error: 'uint8_t' does not name a type
62 | uint8_t dns_tunnel;
| ^~~~~~~
/home/flags/lede/build_dir/target-x86_64_musl/pecl-php8/swoole-4.8.12/include/swoole_proxy.h:62:5: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
make[4]: *** [Makefile:459: src/protocol/socks5.lo] Error 1
make[4]: Leaving directory '/home/flags/lede/build_dir/target-x86_64_musl/pecl-php8/swoole-4.8.12'
make[3]: *** [Makefile:41: /home/flags/lede/build_dir/target-x86_64_musl/pecl-php8/swoole-4.8.12/.built] Error 2
make[3]: Leaving directory '/home/flags/lede/feeds/packages/lang/php8-pecl-swoole'
time: package/feeds/packages/php8-pecl-swoole/compile#46.90#12.48#56.45
ERROR: package/feeds/packages/php8-pecl-swoole failed to build.
make[2]: *** [package/Makefile:116: package/feeds/packages/php8-pecl-swoole/compile] Error 1
make[2]: Leaving directory '/home/flags/lede'
make[1]: *** [package/Makefile:110: /home/flags/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/flags/lede'
make: *** [/home/flags/lede/include/toplevel.mk:231: world] Error 2
如果使用gcc 13 编译就会出现问题,使用 gcc 12 或 11就没有问题。
问题在于源码 http://pecl.php.net/get/swoole-4.8.12.tgz 包中的 include\swoole_proxy.h 文件缺少
#include <cstdint>。Beta Was this translation helpful? Give feedback.
All reactions