我正在使用内核版本为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)没有这些内核,无论您要构建什么,我们都需要绕过它。我们该怎么做?
感谢您的帮助。
预先感谢。