红联Linux门户
Linux帮助

gtk安装错误,能帮忙看看吗?

发布时间:2008-02-08 19:19:55来源:红联作者:ttplayer2006
装GTK+-2.8.20.tar.gz
make时出错
make[4]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gdk/x11'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gdk/x11'
make[4]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gdk'
make[4]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gdk'
make[3]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gdk'
make[2]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gdk'
Making all in gtk
make[2]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gtk'
make all-recursive
make[3]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gtk'
Making all in stock-icons
make[4]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gtk/stock-icons'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gtk/stock-icons'
Making all in theme-bits
make[4]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gtk/theme-bits'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gtk/theme-bits'
Making all in xdgmime
make[4]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gtk/xdgmime'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gtk/xdgmime'
make[4]: Entering directory `/linuxwork/chmsee/gtk+-2.8.20/gtk'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/local/lib\" -DGTK_DATADIR=\"/usr/local/share\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-redhat-linux-gnu\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -g -O2 -Wall -MT gtkiconfactory.lo -MD -MP -MF ".deps/gtkiconfactory.Tpo" \
-c -o gtkiconfactory.lo `test -f 'gtkiconfactory.c' || echo './'`gtkiconfactory.c; \
then mv -f ".deps/gtkiconfactory.Tpo" ".deps/gtkiconfactory.Plo"; \
else rm -f ".deps/gtkiconfactory.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/local/lib\" -DGTK_DATADIR=\"/usr/local/share\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-redhat-linux-gnu\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -g -O2 -Wall -MT gtkiconfactory.lo -MD -MP -MF .deps/gtkiconfactory.Tpo -c gtkiconfactory.c -fPIC -DPIC -o .libs/gtkiconfactory.o
gtkiconfactory.c:2943: error: conflicting types for 'g_hash_table_get_keys'
/usr/include/glib-2.0/glib/ghash.h:81: error: previous declaration of 'g_hash_table_get_keys' was here
make[4]: *** [gtkiconfactory.lo] 错误 1
make[4]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gtk'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gtk'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20/gtk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/linuxwork/chmsee/gtk+-2.8.20'
make: *** [all] 错误 2
[root@localhost gtk+-2.8.20]#
怎么回事?
文章评论

共有 2 条评论

  1. 于 2012-06-04 00:19:26发表:

    我也不会呀!

  2. dannyyang 于 2009-10-15 13:28:02发表:

    我在redhat as 4 上升级g t k 也遇到这个问题,哪位能帮忙解决下?谢谢!