LinuxSir.cn,穿越时空的Linuxsir!

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

BLFS编译Xorg 或 Xfree86 出错(已解决)

[复制链接]
发表于 2004-5-14 13:07:48 | 显示全部楼层 |阅读模式
lfs版本:lfscvs0511
blfs:blfscvs0512
实在是找不到出错的原因了,编译了好几次,到最后就出错.

出错信息:

making all in lib/GL/dri/drm...
make[6]: Entering directory `/sources/xfree/xc/lib/GL/dri/drm'
rm -f xf86drm.o
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing  -ansi -pedantic -pipe  -I../../../../exp orts/include/X11 -I../../../../include/extensions               -I../../../../programs/Xserver/hw/x free86/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../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                            -D_POSIX_SOURCE -D_XOPEN_SO URCE                            -D_BSD_SOURCE -D_SVID_SOURCE                             -D_GNU_SOU RCE                               -DFUNCPROTO=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 FAQ for linux-libc-he aders package."
make[6]: *** [xf86drm.o] Error 1
make[6]: Leaving directory `/sources/xfree/xc/lib/GL/dri/drm'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/sources/xfree/xc/lib/GL/dri'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/sources/xfree/xc/lib/GL'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/sources/xfree/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources/xfree/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/sources/xfree/xc'
make: *** [World] Error 2
 楼主| 发表于 2004-5-14 13:10:19 | 显示全部楼层
who can help me out
发表于 2004-5-14 13:56:27 | 显示全部楼层
drm是有些显卡用的内核模块,你的显卡是什么牌子的?在blfs里编译xfree的地方有关系drm的解释,如果设置不好会出错的,还有就是要和内核用同样版本的gcc编译,要不然就加载不上。
 楼主| 发表于 2004-5-14 16:42:51 | 显示全部楼层
问题已解决.

我重新编译了内核.
删除了/usr/include/linux/autoconf.h and
/usr/include/linux/config.h

在内核源码里面
复制 /usr/src/linux/include/linux 里面的autoconf.h 和 config.h
两个文件到/usr/include/linux/

然后编译XFree86,没有问题。

另:显卡是nvidia,我配置内核的时候没有选择dri
发表于 2004-5-15 04:57:27 | 显示全部楼层
原来的有错误?还是?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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