|
|
恳请帮助:
当我在编译XFree86-4.6时,按照BLFS-6.2.0文档的要求一步步到:
sed -i 's:^.*asm.*$:# define PAGE_MASK (~(getpagesize() - 1)):' \
../xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c &&
sed -i -e "s@^#include <linux/config.h>@/* & */@" \
`grep -lr linux/config.h ../xc` &&
( make World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS )时:
出现了如下错误:
我的 cat > config/cf/host.def文件:
/* Begin XFree86 host.def file */
/* This setting reduces compile time a little by omitting rarely used
* input devices. You can find the complete list in
* config/cf/xfree86.cf *********************************************/
#define XInputDrivers mouse void
/* VIDEO DRIVERS ****************************************************
* If you are sure you only want the drivers for one or a few video
* cards, you can delete the drivers you do not want. ***************/
#define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
neomagic i740 tdfx savage \
cirrus vmware tseng trident chips apm \
GlideDriver fbdev i128 nsc \
ati i810 DevelDrivers ark \
cyrix siliconmotion \
v4l vesa vga \
dummy XF86OSCardDrivers XF86ExtraCardDrivers
/* These settings ensure we use our libraries ************************/
#define HasFreetype2 YES
#define HasFontconfig YES
#define HasExpat YES
#define HasLibpng YES
#define HasZlib YES
/* Uncomment the following define if you'd like
* xdm to use Linux-PAM
#define HasPam YES
*/
/* GENERAL SETTINGS */
#define SystemManDirectory /usr/share/man
#define DocDir /usr/share/doc/xfree86-4.6.0
/* Installation prefix. The default is to install into /usr/X11R6. If you
* would like to install into /usr, uncomment these options. */
/* #define ProjectRoot /usr */
/* #define LinkGLToUsrLib NO */
/* #define LinkGLToUsrInclude NO */
/* End XFree86 host.def file */
错误如下:
gc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -Wall -Wpointer-arith -Wundef -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I. -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../../include/extensions -I../../../../../../programs/Xserver/hw/xfree86/os-support/shared -I../../../../../../programs/Xserver/hw/xfree86/os-support/bus -I../../../../../../extras/drm/shared-core -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_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DXPRINT -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0) * 1000) + 0)" -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DHAS_MTRR_SUPPORT -DUSESTDRES -DDO_OS_FONTRESTORE -DCHECK_OS_VERSION=1 -DHAVE_SYSV_IPC lnx_agp.c
In file included from lnx_agp.c:24:
/usr/include/linux/agpgart.h:55: error: parse error before "__u16"
/usr/include/linux/agpgart.h:60: error: field `version' has incomplete type
/usr/include/linux/agpgart.h:61: error: parse error before "__u32"
/usr/include/linux/agpgart.h:68: error: parse error before '}' token
/usr/include/linux/agpgart.h:71: error: parse error before "__u32"
/usr/include/linux/agpgart.h:92: error: parse error before "__u32"
/usr/include/linux/agpgart.h:106: error: parse error before "__u32"
lnx_agp.c: In function `GARTInit':
lnx_agp.c:65: error: storage size of 'agpinf' isn't known
lnx_agp.c:65: warning: unused variable `agpinf'
lnx_agp.c: In function `xf86GetAGPInfo':
lnx_agp.c:129: error: storage size of 'agpinf' isn't known
lnx_agp.c:129: warning: unused variable `agpinf'
lnx_agp.c: In function `xf86AllocateGARTMemory':
lnx_agp.c:221: error: storage size of 'alloc' isn't known
lnx_agp.c:221: warning: unused variable `alloc'
lnx_agp.c: In function `xf86UnbindGARTMemory':
lnx_agp.c:324: error: storage size of 'unbind' isn't known
lnx_agp.c:324: warning: unused variable `unbind'
lnx_agp.c: In function `xf86EnableAGP':
lnx_agp.c:356: error: parse error before "setup"
lnx_agp.c:361: error: `setup' undeclared (first use in this function)
lnx_agp.c:361: error: (Each undeclared identifier is reported only once
lnx_agp.c:361: error: for each function it appears in.)
make[7]: *** [lnx_agp.o] Error 1
make[7]: Leaving directory `/usr/local/src/Xorg-6.9.0/xcbuild/programs/Xserver/hw/xfree86/os-support/linux'
make[6]: *** [linux] Error 2
make[6]: Leaving directory `/usr/local/src/Xorg-6.9.0/xcbuild/programs/Xserver/hw/xfree86/os-support'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/local/src/Xorg-6.9.0/xcbuild/programs/Xserver/hw/xfree86'
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory `/usr/local/src/Xorg-6.9.0/xcbuild/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/Xorg-6.9.0/xcbuild/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/Xorg-6.9.0/xcbuild'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/usr/local/src/Xorg-6.9.0/xcbuild'
make: *** [World] Error 2 |
|