LinuxSir.cn,穿越时空的Linuxsir!

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

『求助』在安装XFree86-4.5.0时出现的问题

[复制链接]
发表于 2006-3-24 20:29:23 | 显示全部楼层 |阅读模式
在编译XFree86-4.5.0时出现的错误提示
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing  -ansi -pedantic -Wall -Wpointer-arith -Wundef  -I../../../exports/include/X11
        -I../../../extras/Mesa/include
        -I../../../include/extensions
        -I../../../lib/GL/glx
        -I../../../extras/Mesa/src/mesa/main
        -I../../../extras/Mesa/src/mesa/glapi
        -I../../../extras/Mesa/src/mesa/drivers/x11
        -I../../../extras/Mesa/src/mesa/x86
        -I../../../programs/Xserver/hw/xfree86/os-support
        -I../../../extras/drm/shared
        -I../../../programs/Xserver/GL/dri  -I../../.. -I../../../exports/include
        -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
        -D_POSIX_SOURCE -D_XOPEN_SOURCE
        -D_BSD_SOURCE -D_SVID_SOURCE
        -D_GNU_SOURCE
        -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS  -D_REENTRANT -DXUSE_MTSAFE_API
        -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA
        -DXF86VIDMODE
        -DDEFAULT_DRIVER_DIR=\"/usr/X11R6/lib/modules/dri\" -DUSE_X86_ASM   
        -DXTHREADS  -D_REENTRANT -DXUSE_MTSAFE_API     clientattrib.c
In file included from ../../../extras/drm/shared/drm.h:41,
                 from ../../../programs/Xserver/hw/xfree86/os-support/xf86drm.h:39,
                 from ../../../extras/Mesa/include/GL/internal/dri_interface.h:48,
                 from glxclient.h:82,
                 from clientattrib.c:39:
/usr/include/linux/config.h:1:2: #error "Compilation aborted. Please read the FAQ for linux-libc-headers package."
/usr/include/linux/config.h:2:2: #error "(can be found at http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/)"
make[5]: *** [clientattrib.o] Error 1
make[5]: Leaving directory `/home/andreas/tmp/xcbuild/lib/GL/glx'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/andreas/tmp/xcbuild/lib/GL'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/andreas/tmp/xcbuild/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/andreas/tmp/xcbuild'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/home/andreas/tmp/xcbuild'
make: *** [World] Error 2



不知道是那里出现了问题
http://linuxfromscratch.org/pipe ... ecember/049659.html  中好象我的问题一样啊
希望各位大侠帮忙啊!!!!!!!!!!!!!!!!!!!!
发表于 2006-3-24 21:20:52 | 显示全部楼层
最简单的方法, 把
/usr/include/linux/config.h
里面提到的两行注释了就行了.

就是说, 应用程序不应该 include config.h ,但既然已经引用了, 就这样吧.
回复 支持 反对

使用道具 举报

发表于 2006-3-25 05:29:37 | 显示全部楼层
Xorg/XFree86 里边的命令已经把这个处理好了。。没看书吧。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-28 02:04:59 | 显示全部楼层
Post by dyhml
最简单的方法, 把
/usr/include/linux/config.h
里面提到的两行注释了就行了.

就是说, 应用程序不应该 include config.h ,但既然已经引用了, 就这样吧.


我是初学者啊,还是不太懂,能说得详细点吗?
我是照Beyond Linux® From Scratch
Version 6.1里面说的做的啊,可是还是错误啊!
回复 支持 反对

使用道具 举报

发表于 2006-3-28 10:21:27 | 显示全部楼层
/usr/include/linux/config.h:
#error "Compilation aborted. Please read the FAQ for linux-libc-headers package."
#error "(can be found at http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/)"


把这两行注释掉, 或者删掉.
回复 支持 反对

使用道具 举报

发表于 2006-3-28 15:39:45 | 显示全部楼层
sed -i -e "s@^#include <linux/config.h>@...: The Linux-Libc-Headers package installed in LFS installs a /usr/include/linux/config.h  file which is not compatible with userspace applications. The recommended fix for applications including this file is to remove it (see  linux-libc-headers FAQ). The sed uses grep -lr to replace all occurrences. If you desire, just remove (comment) the line in the appropriate video driver file if you customized host.def.

应该已经处理了啊。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-28 19:32:45 | 显示全部楼层
呵呵,符号搞错了啊 `和'没搞清楚啊
回复 支持 反对

使用道具 举报

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

本版积分规则

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