glib:glib 2.5安装问题

我正在使用内核版本为2.6.32的Red Hat 6,我正在尝试在计算机上构建glib 2.5。并失败,并显示以下错误:-

日志:-

../../gio/gfile.c: In function ‘splice_stream_with_progress’:
../../gio/gfile.c:3019: error: ‘F_SETPIPE_SZ’ undeclared (first use in this function)
../../gio/gfile.c:3019: error: (Each undeclared identifier is reported only once
../../gio/gfile.c:3019: error: for each function it appears in.)
../../gio/gfile.c:3023: error: ‘F_GETPIPE_SZ’ undeclared (first use in this function)
make[4]: *** [libgio_2_0_la-gfile.lo] Error 1

我可以在F_SETPIPE_SZ undeclared找到解决方案,将#define _GNU_SOURCE放在文件gfile.c中的所有内容之前,但是没有用。如第二个答案所述:较旧的内核(例如RHEL6中使用的2.6.32)没有这些内核,无论您要构建什么,我们都需要绕过它。我们该怎么做?

感谢您的帮助。

预先感谢。

xiadaohaoqing3 回答:glib:glib 2.5安装问题

此提交中的错误已修复。

没有F_SETPIPE_SZ和F_GETPIPE_SZ的

体系结构,例如or1k。 如果未定义这些变量,请放回先前的行为,缓冲区 大小设置为1024 * 64

https://gitlab.gnome.org/GNOME/glib/-/commit/0beb62f564072f3585762c9c55fe894485993b62

您可以将补丁应用于代码。

本文链接:https://www.f2er.com/3161127.html

大家都在问