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

V6.0版enable-iouring编译报错 iouring.cc:460:48: error:invalid use of incomplete type ‘const struct statx’ #5653

Closed
mdys opened this issue Jan 4, 2025 · 2 comments

Comments

@mdys
Copy link

mdys commented Jan 4, 2025

Please answer these questions before submitting your issue.

  1. What did you do? If possible, provide a simple script for reproducing the error.
    编译安装V6.0,
./configure --with-php-config=/usr/local/php/bin/php-config --enable-openssl \
--with-openssl-dir=/usr/local/openssl/ --enable-mysqlnd --enable-swoole-curl \
--enable-cares --enable-iouring --enable-debug --enable-debug-log --enable-trace-log \
--enable-swoole-coro-time

也安装了liburing
图片
[root@myserver swoole-src-6.0.0]# pkg-config --cflags --libs liburing
-luring
[root@myserver swoole-src-6.0.0]# pkg-config --modversion liburing
图片

2.8
报错如下
图片
请问对liburing 有版本要求吗
5. What is your machine environment used (show your uname -a & php -v & gcc -v) ?

uname -a
Linux myserver 5.1.0 #1 SMP Sat Jan 4 17:39:27 CST 2025 x86_64 x86_64 x86_64 GNU/Linux

PHP 8.4.2 (cli) (built: Jan  3 2025 22:38:58) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.2, Copyright (c), by Zend Technologies
Using built-in specs.

COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-9/root/usr --mandir=/opt/rh/devtoolset-9/root/usr/share/man --infodir=/opt/rh/devtoolset-9/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-9.3.1-20200408/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
@NathanFreeman
Copy link
Member

5.1的内核对liburing有点低了
你是在docker中的容器编译swoole的吗

@mdys
Copy link
Author

mdys commented Jan 5, 2025

5.1的内核对liburing有点低了 你是在docker中的容器编译swoole的吗

我是centos 主机7。9 我换高版本内核试下

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