LinuxSir.cn,穿越时空的Linuxsir!

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

xorg-x11-6.8.2-r7问题 [已解决]

[复制链接]
发表于 2006-5-15 10:59:33 | 显示全部楼层 |阅读模式
升级系统时出错:

In file included from /usr/include/linux/keyboard.h:14,
                 from lnx_KbdMap.c:108:
/usr/include/linux/wait.h:4: error: syntax error before ':' token
In file included from /usr/include/linux/types.h:13,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:24,
                 from /usr/include/linux/keyboard.h:14,
                 from lnx_KbdMap.c:108:
/usr/include/linux/posix_types.h:38: error: ISO C forbids data definition with n o type or storage class
make[7]: *** [lnx_KbdMap.o] Error 1
make[7]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r7/work/xc/programs/ Xserver/hw/xfree86/os-support/linux'
make[6]: *** [linux] Error 2
make[6]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r7/work/xc/programs/ Xserver/hw/xfree86/os-support'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r7/work/xc/programs/ Xserver/hw/xfree86'
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r7/work/xc/programs/ Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r7/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r7/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r7/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.8.2-r7 failed.
!!! Function build, Line 973, Exitcode 2
!!! make World failed
!!! If you need support, post the topmost build error, NOT this status message.

请帮忙。谢谢!
发表于 2006-5-15 13:49:08 | 显示全部楼层
没有遇到该问题,估计你的环境有问题:emerge info
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-15 14:36:20 | 显示全部楼层
Post by shpchp
没有遇到该问题,估计你的环境有问题:emerge info

谢谢! 等我回家上机在查一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-15 21:31:56 | 显示全部楼层
Post by shpchp
没有遇到该问题,估计你的环境有问题:emerge info


如下:

# emerge --info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHzGentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp http://ftp.gentoo.or.kr/ ftp://linux.ntcu.net/dists/gentoo/ ftp://mirror.averse.net/pub/gentoo"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cjk cli crypt cups curl dri dvd dvdr dvdread eds emboss encode esd exif expat fam ffmpeg foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml idn imlib isdnlog jpeg lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses nls nptl nvidia ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection scanner sdl session spell spl ssl symlink tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml xml2 xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY

有什么不正常吗?

请帮忙!谢谢!
回复 支持 反对

使用道具 举报

发表于 2006-5-15 22:01:14 | 显示全部楼层
你的gcc还是3.3.6?
先 emerge -uav world 将gcc升级到3.4后,再试试看。

另,针对你的CPU类型,在gcc3.3下,CFLAGS应该设置为"-march=pentium3 -msse2 -O2 -pipe -fomit-frame-pointer"。gcc升级到3.4后,CFLAGS应该设置为"-O2 -march=pentium-m -pipe -fomit-frame-pointer"。你在CFLAGS中采用pentium4是不安全的。
另外,建议先将FEATURES中的ccache去掉。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-16 01:31:48 | 显示全部楼层
Post by shpchp
你的gcc还是3.3.6?
先 emerge -uav world 将gcc升级到3.4后,再试试看。

另,针对你的CPU类型,在gcc3.3下,CFLAGS应该设置为"-march=pentium3 -msse2 -O2 -pipe -fomit-frame-pointer"。gcc升级到3.4后,CFLAGS应该设置为"-O2 -march=pentium-m -pipe -fomit-frame-pointer"。你在CFLAGS中采用pentium4是不安全的。
另外,建议先将FEATURES中的ccache去掉。


但是我的CPU不是Pentium3.的确是 Pentium4-m啊。
回复 支持 反对

使用道具 举报

发表于 2006-5-16 10:15:38 | 显示全部楼层
哦?看错了,以为你是普通的M处理器,原来是这么强的处理器,那你可以用这个CFLAGS:
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
prescott是Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-16 23:14:46 | 显示全部楼层
Post by shpchp
哦?看错了,以为你是普通的M处理器,原来是这么强的处理器,那你可以用这个CFLAGS:
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
prescott是Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.


明白。谢谢!看来是官方handbook 没有考虑到笔记本的特出环境。

我刚才emerge xorg-x11 6.8.2-r7成功。以前的问题可能是早期安装是混用 x86和~x86造成的。

最后一个问题。如果一个软件包从~x86进入x86.那么,在~x86中是不是就没有该软件包了?
回复 支持 反对

使用道具 举报

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

本版积分规则

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