QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2360|回复: 2

安装glib出现问题,请高手指教

[复制链接]
发表于 2006-2-1 20:52:17 | 显示全部楼层 |阅读模式
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -c garray.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c garray.c  -fPIC -DPIC -o .libs/garray.lo
garray.c:31:20: error: string.h: No such file or directory
In file included from garray.c:32:
glib.h:502: error: syntax error before 'gssize'
glib.h:502: warning: type defaults to 'int' in declaration of 'gssize'
glib.h:502: warning: data definition has no type or storage class
glib.h:503: error: syntax error before 'gsize'
glib.h:503: warning: type defaults to 'int' in declaration of 'gsize'
glib.h:503: warning: data definition has no type or storage class
glib.h:504: error: syntax error before 'GQuark'
glib.h:504: warning: type defaults to 'int' in declaration of 'GQuark'
glib.h:504: warning: data definition has no type or storage class
glib.h:505: error: syntax error before 'GTime'
glib.h:505: warning: type defaults to 'int' in declaration of 'GTime'
glib.h:505: warning: data definition has no type or storage class
glib.h:769: error: syntax error before 'key_id'
glib.h:1573: error: syntax error before 'mask'
glib.h:1577: error: syntax error before 'mask'
glib.h: In function 'g_bit_nth_lsf':
glib.h:1582: error: 'nth_bit' undeclared (first use in this function)
glib.h:1582: error: (Each undeclared identifier is reported only once
glib.h:1582: error: for each function it appears in.)
glib.h:1583: error: 'mask' undeclared (first use in this function)
glib.h: At top level:
glib.h:1591: error: syntax error before 'mask'
glib.h:1595: error: syntax error before 'mask'
glib.h: In function 'g_bit_nth_msf':
glib.h:1598: error: 'nth_bit' undeclared (first use in this function)
glib.h:1603: error: 'mask' undeclared (first use in this function)
glib.h: At top level:
glib.h:1773: error: syntax error before 'g_quark_try_string'
glib.h:1773: warning: type defaults to 'int' in declaration of 'g_quark_try_string'
glib.h:1773: warning: data definition has no type or storage class
glib.h:1774: error: syntax error before 'g_quark_from_static_string'
glib.h:1774: warning: type defaults to 'int' in declaration of 'g_quark_from_static_string'
glib.h:1774: warning: data definition has no type or storage class
glib.h:1775: error: syntax error before 'g_quark_from_string'
glib.h:1775: warning: type defaults to 'int' in declaration of 'g_quark_from_string'
glib.h:1775: warning: data definition has no type or storage class
glib.h:1776: error: syntax error before 'quark'
glib.h:1785: error: syntax error before 'GQuark'
glib.h:1787: error: syntax error before 'GQuark'
glib.h:1791: error: syntax error before 'GQuark'
glib.h:1816: error: syntax error before 'GQuark'
glib.h:1818: error: syntax error before 'GQuark'
glib.h:1822: error: syntax error before 'GQuark'
glib.h:2094: error: syntax error before 'GDateYear'
glib.h:2094: warning: type defaults to 'int' in declaration of 'GDateYear'
glib.h:2094: warning: data definition has no type or storage class
glib.h:2170: error: syntax error before 'GDateYear'
glib.h:2171: error: syntax error before 'julian_day'
glib.h:2182: error: syntax error before 'year'
glib.h:2184: error: syntax error before 'julian_date'
glib.h:2187: error: syntax error before 'GDateYear'
glib.h:2191: error: syntax error before 'g_date_year'
glib.h:2191: warning: type defaults to 'int' in declaration of 'g_date_year'
glib.h:2191: warning: data definition has no type or storage class
glib.h:2193: error: syntax error before 'g_date_julian'
glib.h:2193: warning: type defaults to 'int' in declaration of 'g_date_julian'
glib.h:2193: warning: data definition has no type or storage class
glib.h:2219: error: syntax error before 'GTime'
glib.h:2225: error: syntax error before 'GDateYear'
glib.h:2229: error: syntax error before 'GDateYear'
glib.h:2231: error: syntax error before 'guint32'
glib.h:2252: error: syntax error before 'year'
glib.h:2254: error: syntax error before 'GDateYear'
glib.h:2255: error: syntax error before 'year'
glib.h:2256: error: syntax error before 'year'
glib.h:2267: error: syntax error before 'g_date_strftime'
glib.h:2268: error: syntax error before 'gsize'
glib.h:2270: warning: type defaults to 'int' in declaration of 'g_date_strftime'
glib.h:2270: warning: data definition has no type or storage class
garray.c: In function 'g_array_append_vals':
garray.c:105: warning: implicit declaration of function 'memcpy'
garray.c:105: warning: incompatible implicit declaration of built-in function 'memcpy'
garray.c: In function 'g_array_prepend_vals':
garray.c:121: warning: implicit declaration of function 'bcopy'
garray.c:121: warning: incompatible implicit declaration of built-in function 'bcopy'
garray.c:123: warning: incompatible implicit declaration of built-in function 'memcpy'
garray.c: In function 'g_array_insert_vals':
garray.c:140: warning: incompatible implicit declaration of built-in function 'bcopy'
garray.c:144: warning: incompatible implicit declaration of built-in function 'memcpy'
garray.c: In function 'g_array_remove_index':
garray.c:176: warning: incompatible implicit declaration of built-in function 'bcopy'
garray.c:181: warning: implicit declaration of function 'memset'
garray.c:181: warning: incompatible implicit declaration of built-in function 'memset'
garray.c: In function 'g_array_remove_index_fast':
garray.c:200: warning: incompatible implicit declaration of built-in function 'bcopy'
garray.c:205: warning: incompatible implicit declaration of built-in function 'memset'
garray.c: In function 'g_array_maybe_expand':
garray.c:240: warning: incompatible implicit declaration of built-in function 'memset'
garray.c: In function 'g_ptr_array_maybe_expand':
garray.c:315: warning: incompatible implicit declaration of built-in function 'memset'
garray.c: In function 'g_ptr_array_remove_index':
garray.c:348: warning: incompatible implicit declaration of built-in function 'bcopy'
make[2]: *** [garray.lo] 错误 1
make[2]: Leaving directory `/home/fight/java/glib-1.2.10'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/fight/java/glib-1.2.10'
make: *** [all-recursive-am] 错误 2
发表于 2006-2-1 20:53:34 | 显示全部楼层
glib版本太低,无法在较新的gcc上编译。请使用发行版自带的glib-1.2.x包。
回复

使用道具 举报

 楼主| 发表于 2006-2-1 21:10:09 | 显示全部楼层
谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-28 02:53 , Processed in 0.074034 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表