xuanxuan03 发表于 2008-3-12 12:33:31

请教:安装glib-2.14.0.tar.gz 时出错

安装glib-2.14.0.tar.gz 时出错

我的系统是fedora core2, 很久没有更新了.这次安装glib-2.14.0时就出错了,不知道问题出在哪儿. 麻烦大家帮我看看
解压之后运行
./configure
make
在make的时候错误如下:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -g -O2 -Wall -MT giounix.lo -MD -MP -MF .deps/giounix.Tpo -c giounix.c-fPIC -DPIC -o .libs/giounix.ogiounix.c: In function `g_io_unix_read':
giounix.c:185: error: `SSIZE_MAX' undeclared (first use in this function)
giounix.c:185: error: (Each undeclared identifier is reported only once
giounix.c:185: error: for each function it appears in.)
make: *** 错误 1
make: Leaving directory `/tmp/glib-2.14.0/glib'
make: *** 错误 1
make: Leaving directory `/tmp/glib-2.14.0/glib'
make: *** 错误 2
make: Leaving directory `/tmp/glib-2.14.0/glib'
make: *** 错误 1
make: Leaving directory `/tmp/glib-2.14.0'
make: *** 错误 2

我的gcc version 是3.3.3
谢谢大家拉

路西法 发表于 2008-3-14 23:44:54

gcc3.3现在看来版本较低了,换高点版本的试试,或者查找包含变量的文件:
grep SSIZE_MAX /{usr,tools}/include -Hrn | grep define
然后在文件中加入
#include <bits/posix1_lim.h>
应该就可以了
页: [1]
查看完整版本: 请教:安装glib-2.14.0.tar.gz 时出错