You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc-4.9 -std=gnu11 -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=597 -DPy_LIMITED_API=0x03060000 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -DPSUTIL_LINUX=1 -I/opt/python3/include/python3.12 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-cpython-312/psutil/_psutil_linux.o
In file included from psutil/_psutil_linux.c:13:0:
/usr/include/linux/ethtool.h:18:2: error: unknown type name '__u32'
__u32 cmd;
^
/usr/include/linux/ethtool.h:19:2: error: unknown type name '__u32'
__u32 supported; /* Features this interface supports /
^
/usr/include/linux/ethtool.h:20:2: error: unknown type name '__u32'
__u32 advertising; / Features this interface advertises */
Summary
Description
gcc-4.9 -std=gnu11 -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=597 -DPy_LIMITED_API=0x03060000 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -DPSUTIL_LINUX=1 -I/opt/python3/include/python3.12 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-cpython-312/psutil/_psutil_linux.o
In file included from psutil/_psutil_linux.c:13:0:
/usr/include/linux/ethtool.h:18:2: error: unknown type name '__u32'
__u32 cmd;
^
/usr/include/linux/ethtool.h:19:2: error: unknown type name '__u32'
__u32 supported; /* Features this interface supports /
^
/usr/include/linux/ethtool.h:20:2: error: unknown type name '__u32'
__u32 advertising; / Features this interface advertises */
This commit broke build on CentOS 5: a7205fc
linux/ethtool.h is included in psutil/_psutil_linux.c but without defining the types first as in psutil/arch/linux/net.c:
// see: #659
#ifdef PSUTIL_ETHTOOL_MISSING_TYPES
#include <linux/types.h>
typedef __u64 u64;
typedef __u32 u32;
typedef __u16 u16;
typedef __u8 u8;
#endif
The text was updated successfully, but these errors were encountered: