LinuxSir.cn,穿越时空的Linuxsir!

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

XFree86-4.4.99.6.的编译错误。。。

[复制链接]
发表于 2004-6-3 08:02:45 | 显示全部楼层 |阅读模式
[PHP]making all in lib/GL/dri/drm...
make[1]: Entering directory `/xc/lib/GL/dri/drm'
rm -f xf86drm.o
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing  -ansi -Wall -Wpointer -arith -Wstrict-prototypes                        -Wmissing-prototypes -Wmissing -declarations                     -Wredundant-decls -Wnested-externs -Wundef  -I ../../../../exports/include/X11 -I../../../../include/extensions               - I../../../../programs/Xserver/hw/xfree86/os-support/linux/drm           -I../../ ../../programs/Xserver/hw/xfree86/os-support/linux/drm/kernel           -I../../ ../../programs/Xserver/hw/xfree86/os-support/linux/drm/kernel           -I../../ ../../programs/Xserver/hw/xfree86/os-support  -I../../../.. -I../../../../export s/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                       - D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SO URCE                             -D_GNU_SOURCE                            -DFUNC PROTO=15 -DNARROWPROTO   -DMALLOC_0_RETURNS_NULL   xf86drm.c
In file included from drm.h:41,
                 from xf86drm.c:72:
/usr/include/linux/config.h:1:2: #error "Compilation aborted. Please read the FA Q for linux-libc-headers package."
make[1]: *** [xf86drm.o] 错误 1
make[1]: Leaving directory `/xc/lib/GL/dri/drm'
make: *** [all] 错误 2
[/PHP]
 楼主| 发表于 2004-6-3 08:57:54 | 显示全部楼层
[PHP]the FAQ says:

Q: Compilation of $INSERTYOURAPP failed after inclusion of linux/config.h
A: The llh package is distribution and kernel configuration agnostic. In an
   ideal world all applications would have runtime detection of what kernel
   does and doesn't support. Unfortunately applications don't do that and in
   some specific situations it's advisable to link your current kernel's
   config file to replace linux/config.h. That error message is there to
   force users to be aware of this situation. Distribution vendors will most
   likely want to remove it.

[/PHP]

http://linuxfromscratch.org/pipe ... 4-April/000994.html
发表于 2004-6-5 09:39:02 | 显示全部楼层
试试用2.6内核自带的头文件编译。
我以前也碰到过这样的问题。
发表于 2004-6-12 13:26:57 | 显示全部楼层
/usr/include/linux/config.h
#error "Compilation aborted. Please read the FA Q for linux-libc-headers package.
把这个删掉就行了,我都用了大半年了,没问题。因为那个语法本身是错的。
发表于 2004-6-12 13:27:48 | 显示全部楼层
That error message is there to
   force users to be aware of this situation. Distribution vendors will most
   likely want to remove it.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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