LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 753|回复: 2

新手求助贴,更新x11-libs/vte出错。

[复制链接]
发表于 2010-8-30 20:23:26 | 显示全部楼层 |阅读模式
  1. In file included from /usr/include/gtk-2.0/gtk/gtk.h:233,
  2.                  from vte.h:25,
  3.                  from vtetypebuiltins.c:4:
  4. /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn’t a prototype
  5.   CC     vte-vteapp.o
  6.   CC     interpret-caps.o
  7.   CC     interpret-debug.o
  8.   CC     interpret-iso2022.o
  9.   CC     interpret-matcher.o
  10.   CC     interpret-table.o
  11. In file included from /usr/include/gtk-2.0/gtk/gtk.h:233,
  12.                  from vteapp.c:29:
  13. /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn’t a prototype
  14. vteapp.c: In function ‘char_size_changed’:
  15. vteapp.c:84: warning: ‘vte_terminal_get_padding’ is deprecated (declared at vte.h:453)
  16. vteapp.c: In function ‘char_size_realized’:
  17. vteapp.c:116: warning: ‘vte_terminal_get_padding’ is deprecated (declared at vte.h:453)
  18. vteapp.c: In function ‘button_pressed’:
  19. vteapp.c:195: warning: ‘vte_terminal_get_padding’ is deprecated (declared at vte.h:453)
  20. vteapp.c: In function ‘resize_window’:
  21. vteapp.c:305: warning: ‘vte_terminal_get_padding’ is deprecated (declared at vte.h:453)
  22. vteapp.c: In function ‘take_xconsole_ownership’:
  23. vteapp.c:407: warning: initialization discards qualifiers from pointer target type
  24. vteapp.c:408: warning: initialization discards qualifiers from pointer target type
  25. vteapp.c:409: warning: initialization discards qualifiers from pointer target type
  26. vteapp.c:410: warning: initialization discards qualifiers from pointer target type
  27. vteapp.c: In function ‘main’:
  28. vteapp.c:818: warning: ‘vte_terminal_set_font_from_string_full’ is deprecated (declared at vte.h:542)
  29.   CC     interpret-trie.o
  30.   CC     interpret-vteconv.o
  31.   CC     interpret-vtetc.o
  32.   CC     interpret-vtetree.o
  33. In file included from /usr/include/gtk-2.0/gtk/gtk.h:233,
  34.                  from vte.h:25,
  35.                  from vte-private.h:44,
  36.                  from vteconv.c:29:
  37. /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn’t a prototype
  38.   CC     interpret-interpret.o
  39.   CC     slowcat.o
  40.   CCLD   libvte.la
  41.   CCLD   interpret
  42.   CCLD   slowcat
  43.   CCLD   vte
  44. make[3]: Leaving directory `/var/tmp/portage/x11-libs/vte-0.24.3/work/vte-0.24.3/src'
  45. make[2]: Leaving directory `/var/tmp/portage/x11-libs/vte-0.24.3/work/vte-0.24.3/src'
  46. Making all in python
  47. make[2]: Entering directory `/var/tmp/portage/x11-libs/vte-0.24.3/work/vte-0.24.3/python'
  48.   CC     vtemodule_la-vtemodule.lo
  49.   GEN    vte.c
  50. note: pygtk-codegen-2.0 is deprecated, use pygobject-codegen-2.0 instead
  51. note: I will now try to invoke pygobject-codegen-2.0 in the same directory
  52. vtemodule.c:19:2: warning: #ident is a deprecated GCC extension
  53.   File "<string>", line 1
  54.     from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, prefix='/usr')
  55.                                                    ^
  56. SyntaxError: invalid syntax
  57. /usr/bin/python3.1: can't open file '/gtk-2.0/codegen/codegen.py': [Errno 2] No such file or directory
  58. make[2]: *** [vte.c] Error 2
  59. make[2]: *** Waiting for unfinished jobs....
  60. In file included from vtemodule.c:25:
  61. /usr/include/pygtk-2.0/pygobject.h: In function ‘pygobject_init’:
  62. /usr/include/pygtk-2.0/pygobject.h:321: error: implicit declaration of function ‘PyString_AsString’
  63. /usr/include/pygtk-2.0/pygobject.h:321: warning: nested extern declaration of ‘PyString_AsString’
  64. In file included from /usr/include/gtk-2.0/gtk/gtk.h:233,
  65.                  from /usr/include/pygtk-2.0/pygtk/pygtk.h:8,
  66.                  from vtemodule.c:26:
  67. /usr/include/gtk-2.0/gtk/gtkitemfactory.h: At top level:
  68. /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn’t a prototype
  69. vtemodule.c:32: warning: return type defaults to ‘int’
  70. vtemodule.c:32: warning: no previous prototype for ‘DL_EXPORT’
  71. vtemodule.c: In function ‘DL_EXPORT’:
  72. vtemodule.c:32: error: expected declaration specifiers before ‘initvte’
  73. vtemodule.c:33: error: storage class specified for parameter ‘PyVteTerminal_Type’
  74. vtemodule.c:35: error: expected declaration specifiers before ‘DL_EXPORT’
  75. vtemodule.c:32: error: old-style parameter declarations in prototyped function definition
  76. vtemodule.c:52: error: expected ‘{’ at end of input
  77. make[2]: *** [vtemodule_la-vtemodule.lo] Error 1
  78. make[2]: Leaving directory `/var/tmp/portage/x11-libs/vte-0.24.3/work/vte-0.24.3/python'
  79. make[1]: *** [all-recursive] Error 1
  80. make[1]: Leaving directory `/var/tmp/portage/x11-libs/vte-0.24.3/work/vte-0.24.3'
  81. make: *** [all] Error 2
  82. * ERROR: x11-libs/vte-0.24.3 failed:
  83. *   compile failure
  84. *
  85. * Call stack:
  86. *     ebuild.sh, line   54:  Called src_compile
  87. *   environment, line 2895:  Called gnome2_src_compile
  88. *   environment, line 2239:  Called die
  89. * The specific snippet of code:
  90. *       emake || die "compile failure"
  91. *
  92. * If you need support, post the output of 'emerge --info =x11-libs/vte-0.24.3',
  93. * the complete build log and the output of 'emerge -pqv =x11-libs/vte-0.24.3'.
  94. * The complete build log is located at '/var/tmp/portage/x11-libs/vte-0.24.3/temp/build.log'.
  95. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/vte-0.24.3/temp/environment'.
  96. * S: '/var/tmp/portage/x11-libs/vte-0.24.3/work/vte-0.24.3'
复制代码
  1. ~ $ cat /etc/make.conf
  2. # These settings were set by the catalyst build script that automatically
  3. # built this stage.
  4. # Please consult /usr/share/portage/config/make.conf.example for a more
  5. # detailed example.
  6. #CFLAGS="-O2 -march=i686 -pipe"
  7. #CXXFLAGS="-O2 -march=i686 -pipe"
  8. # WARNING: Changing your CHOST is not something that should be done lightly.
  9. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
  10. CHOST="i686-pc-linux-gnu"
  11. CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
  12. CXXFLAGS="${CFLAGS}"
  13. MAKEOPTS="-j3"
  14. #DISTDIR="/home/distfiles"
  15. VIDEO_CARDS="intel"
  16. INPUT_DEVICES="evdev synaptics"
  17. GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ "
  18. SYNC="rsync://rsync.gentoo.org/gentoo-portage"
  19. USE="-gtk xcb svg emerald truetype vim-syntax -threads jpeg png cups dbus hal startup-notification xsreensaver -nv -ati xorg -kde -qt3 -qt4 -gnome alsa dvd X aac acpi alsa -altivec -emacs -gnutls -ieee1394 -ipv6 -jabber -ldap gmplayer mp3 mp4 mpeg -mssql ogg wifi win32codecs xv opengl"
  20. LINGUAS="zh_CN zh"
  21. PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
复制代码
求解决此类问题的办法。在本坛中,因为更新软件而出问题的帖子,小生已发数个,现求解决此类问题的通用办法。谢谢。
另求桌面截图软件。USE="-kde -gnome"
发表于 2010-8-30 20:41:41 | 显示全部楼层
通用的解决办法通常不通用。因为你很难保证你自己对问题的归类是否正确。

不过从这个帖子看,很可能是python升级不当造成的。你可以尝试把3.x版的python拆掉。如果要保留2.6和3.1两个版本,那要谨慎eselect python。
不论如何,你都应该尝试一下python-updater,估计问题会有所改善。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-30 20:52:22 | 显示全部楼层
  1. Python 3.0
  2.   Python的3.0版本,在开发阶段被称为Python 3000,或简称Py3k。相对于Python的早期版本,这是一个较大的升级。为了不带入过多的累赘,Python 3.0在设计的时候就没有考虑向下兼容。许多针对早期Python版本设计的程序都无法在Python 3.0上正常运行。为了照顾现有程序,Python 2.6作为一个过渡版本,基本使用了Python 2.x的语法和库,同时考虑了向Python 3.0的迁移。基于早期Python版本而能正常运行于Python 2.6并无警告的程序可以通过一个2 to 3的转换工具无缝迁移到Python 3.0。
复制代码
  1. ~ $ python
  2. python             python2.6          python3.1          python-config-2.6  python-wrapper     
  3. python2            python3            python-config      python-config-3.1  
  4. ~ $ python-updater
  5. bash: python-updater: command not found
复制代码
小生是非计算机专业里面计算机好的,可与专业人士比还差好大一截,别说思路了,还是直接告诉我命令吧。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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