当我使用bazel编译依赖于curl的项目时,出现错误:error:unknown type name 'u32'
整个错误信息:
In file included from external/curl/lib/sendf.c:30:
/usr/include/linux/tcp.h:135:2: error: unknown type name 'u32'
u32 real_ip;
^~~
/usr/include/linux/tcp.h:136:2: error: unknown type name 'u16'
u16 real_port;
^~~
好像和gcc版本有关?
gcc 版本 8.3.1 20191121(红帽 8.3.1-5)(GCC)
The whole error message:
In file included from external/curl/lib/sendf.c:30:
/usr/include/linux/tcp.h:135:2: error: unknown type name 'u32'
u32 real_ip;
^~~
/usr/include/linux/tcp.h:136:2: error: unknown type name 'u16'
u16 real_port;
^~~
It seems to be related to the gcc version?
gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论