|
|
运行的内核是2.6.10的 内核头文件和源代码也是2.6.10的
编译时出错
按照blfs5的方法 直接编译得到错误
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."
/usr/include/linux/config.h:2:2: #error "(can be found at http://ep09.pld-linux.
org/~mmazur/linux-libc-headers/doc/)"
make[6]: *** [xf86drm.o] Error 1
make[6]: Leaving directory `/tmp/xc/lib/GL/dri/drm'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/tmp/xc/lib/GL/dri'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/xc/lib/GL'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/tmp/xc'
make: *** [World] Error 2
按照blfs6-cvs-20050315的方法编译(打补丁xorg-CAN-2004-0687-0688.patch,然后运行sed -i -e "s@^#include <linux/config.h>@/* & */@" \
`grep -lr linux/config.h *`
),之后再编译,得到错误
In file included from /usr/include/asm/page.h:4,
from fbdevhw.c:17:
/usr/include/unistd.h:189: error: conflicting types for 'xf86ssize_t'
../../../../../programs/Xserver/include/xf86_libc.h:105: error: previous declara
tion of 'xf86ssize_t' was here
In file included from /usr/include/asm/page.h:4,
from fbdevhw.c:17:
/usr/include/unistd.h:312: error: conflicting types for 'xf86read'
../../../../../programs/Xserver/include/xf86_ansic.h:294: error: previous declar
ation of 'xf86read' was here
/usr/include/unistd.h:312: error: conflicting types for 'xf86read'
../../../../../programs/Xserver/include/xf86_ansic.h:294: error: previous declar
ation of 'xf86read' was here
/usr/include/unistd.h:318: error: conflicting types for 'xf86write'
../../../../../programs/Xserver/include/xf86_ansic.h:295: error: previous declar
ation of 'xf86write' was here
/usr/include/unistd.h:318: error: conflicting types for 'xf86write'
../../../../../programs/Xserver/include/xf86_ansic.h:295: error: previous decla
ration of 'xf86write' was here
/usr/include/unistd.h:405: error: conflicting types for 'xf86usleep'
../../../../../programs/Xserver/include/xf86_ansic.h:366: error: previous declar
ation of 'xf86usleep' was here
/usr/include/unistd.h:405: error: conflicting types for 'xf86usleep'
../../../../../programs/Xserver/include/xf86_ansic.h:366: error: previous declar
ation of 'xf86usleep' was here
In file included from /usr/include/asm/page.h:4,
from fbdevhw.c:17:
/usr/include/unistd.h:872:29: macro "getpagesize" passed 1 arguments, but takes
just 0
make[6]: *** [fbdevhw.o] Error 1
make[6]: Leaving directory `/tmp/xc/programs/Xserver/hw/xfree86/fbdevhw'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/tmp/xc/programs/Xserver/hw/xfree86'
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory `/tmp/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/tmp/xc'
make: *** [World] Error 2
有人碰到过吗 不知是什么问题 |
|