xorg 6.8.2 build failed (basically) fellow blfs 6.1 method.
Wang, Baojun
wangbj at lzu.edu.cn
Wed Jan 31 23:42:15 PST 2007
Hi,
I'm build a xorg for a x86 embedded box using xorg 6.8.2, I need the main xorg
furetures but as less spaces as possible, so I disable many options in the
host.def compare to xorgsite.def. The only enabled video driver is fbdev, and
the Input device is keyboard and mouse. but I encountered the fellowing error
message:
rm -f lnx_mouse.o
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic -Wall -Wpointer-arith -Wundef -fno-merge-constants -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 -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 -DSHAPE -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV -DRENDER -DRANDR -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DXORG_VERSION_CURRENT="(((6)
* 10000000) + ((8) * 100000) + ((2) * 1000) +
0)" -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DHAS_MTRR_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
lnx_mouse.c
In file included from lnx_mouse.c:9:
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:126: error:
syntax error before "xDeviceCtl"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:155: error:
syntax error before "InputDriverPtr"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:155:
warning: no semicolon at end of struct or union
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:158: error:
syntax error before '}' token
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:158:
warning: type defaults to `int' in declaration of `LocalDeviceRec'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:158:
warning: type defaults to `int' in declaration of `LocalDevicePtr'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:158:
warning: type defaults to `int' in declaration of `InputInfoRec'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:158:
warning: type defaults to `int' in declaration of `InputInfoPtr'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:158: error:
ISO C forbids data definition with no type or storage class
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:163: error:
syntax error before "LocalDevicePtr"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:163:
warning: no semicolon at end of struct or union
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:164:
warning: type defaults to `int' in declaration of `DeviceAssocRec'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:164:
warning: type defaults to `int' in declaration of `DeviceAssocPtr'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:164: error:
ISO C forbids data definition with no type or storage class
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:167: error:
syntax error before "xf86InputDevs"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:167:
warning: type defaults to `int' in declaration of `xf86InputDevs'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:167: error:
ISO C forbids data definition with no type or storage class
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:172: error:
syntax error before "local"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:192: error:
syntax error before "local"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:198: error:
syntax error before "device"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:199: error:
syntax error before "xf86FirstLocalDevice"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:199:
warning: type defaults to `int' in declaration of `xf86FirstLocalDevice'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:199: error:
ISO C forbids data definition with no type or storage class
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:201: error:
syntax error before "local"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:202: error:
syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:207: error:
syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:208: error:
syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:211: error:
syntax error before "driver"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:213: error:
syntax error before "xf86AllocateInput"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:213: error:
syntax error before "drv"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:213:
warning: type defaults to `int' in declaration of `xf86AllocateInput'
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:213: error:
ISO C forbids data definition with no type or storage class
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:214: error:
syntax error before "pInp"
../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h:217: error:
syntax error before "pInfo"
In file included from lnx_mouse.c:10:
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:82:
error: syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:85:
error: syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:86:
error: syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:88:
error: syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:90:
error: syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:198:
error: syntax error before "int"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:199:
error: syntax error before "Bool"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:203:
error: syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:205:
error: syntax error before "pInfo"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:250:
error: syntax error before "InputInfoPtr"
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:250:
warning: no semicolon at end of struct or union
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:272:
error: syntax error before '}' token
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:272:
warning: type defaults to `int' in declaration of `MouseDevRec'
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:272:
warning: type defaults to `int' in declaration of `MouseDevPtr'
../../../../../../programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h:272:
error: ISO C forbids data definition with no type or storage class
lnx_mouse.c:59: error: syntax error before "pInfo"
lnx_mouse.c: In function `FindDevice':
lnx_mouse.c:77: error: `pInfo' undeclared (first use in this function)
lnx_mouse.c:77: error: (Each undeclared identifier is reported only once
lnx_mouse.c:77: error: for each function it appears in.)
lnx_mouse.c: At top level:
lnx_mouse.c:87: error: syntax error before "pInfo"
lnx_mouse.c: In function `GuessProtocol':
lnx_mouse.c:96: error: `pInfo' undeclared (first use in this function)
make[7]: *** [lnx_mouse.o] Error 1
make[7]: Leaving directory
`/opt/build/xcbuild/programs/Xserver/hw/xfree86/os-support/linux'
make[6]: *** [linux] Error 2
make[6]: Leaving directory
`/opt/build/xcbuild/programs/Xserver/hw/xfree86/os-support'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/opt/build/xcbuild/programs/Xserver/hw/xfree86'
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory `/opt/build/xcbuild/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/build/xcbuild/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/build/xcbuild'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/opt/build/xcbuild'
make: *** [World] Error 2
The build method I fellow is blfs method:
http://www.linuxfromscratch.org/blfs/view/stable/x/installing.html#xorg
I use the single-src file(X11R6.8.2-src.tar.bz2) with corrent md5sum.
blfs method:
===============================================================================
Installation of Xorg
Suppressing Xprint-related Modification to '/etc'
Xorg insists on putting its boot and profile scripts into the /etc directory
even if specifically told not to compile anything Xprint server or client
related (see host.def below). The following command will suppress any such
modifications:
sed -i '/^SUBDIRS =/s/ etc$//' programs/Xserver/Xprint/Imakefile
Setting Up a Shadow Directory
When building Xorg, you should create a shadow directory of symbolic links for
the compiled code. To do that, first make lndir. Starting from the xc
directory:
pushd config/util &&
make -f Makefile.ini lndir
Now, as the root user:
cp -v lndir /usr/bin/
And back as an unprivileged user:
popd
Now create the shadow tree:
mkdir ../xcbuild &&
cd ../xcbuild &&
lndir ../xc
===============================================================================
build method:
sed -i -e "s@^#include <linux/config.h>@/* & */@" \
`grep -lr linux/config.h *` &&
( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
host.def.diff (by diff -u):
===============================================================================
--- xcbuild/config/cf/xorgsite.def 2004-12-13 22:27:33.000000000 +0800
+++ xcbuild/config/cf/host.def 2007-01-31 21:48:42.000000000 +0800
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich
Exp $
+/* XCOMM $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich
Exp $ */
/******************************************************************************/
/*
* This file is to provide a quick method for most people to change the
@@ -50,12 +50,16 @@
#define XnestServer NO
*/
+#define XnestServer NO
+
/*
* To disable building Xvfb, uncomment this.
*
#define XVirtualFramebufferServer NO
*/
+#define XvirtualFramebufferServer NO
+
/*
* To enable building Xdmx, uncomment this.
*
@@ -68,6 +72,8 @@
#define XprtServer NO
*/
+#define XprtServer NO
+
/*
* Set the default server (ie the one that gets the sym-link to "X")
*
@@ -104,6 +110,8 @@
vesa vga XF86OSCardDrivers XF86ExtraCardDrivers
*/
+#define XF86CardDrivers fbdev
+
/*
* To add third party drivers to the standard driver list, set the
* following.
@@ -120,6 +128,8 @@
wacom void magictouch aiptek
*/
+#define XInputDrivers mouse keyboard
+
/* To enable building of development DRI drivers (insecure, or not
* useful on the chosen architecture, uncomment this define.
#define BuildDevelDRIDrivers YES
@@ -163,6 +173,8 @@
#define UseMatroxHal NO
*/
+#define UseMatroxHal NO
+
/*
* If you have the HALlib.a binary installed in xfree86/drivers/mga/HALlib,
* uncomment this:
@@ -182,18 +194,24 @@
#define BuildFontServer NO
*/
+#define BuildFontServer NO
+
/*
* To disable support for Speedo fonts, uncomment this.
*
#define BuildSpeedo NO
*/
+#define BuildSpeedo NO
+
/*
* To disable support for CID fonts, uncomment this.
*
#define BuildCID NO
*/
+#define BuildCID NO
+
/*
* To disable support for TrueType fonts, uncomment these.
*
@@ -225,54 +243,72 @@
#define BuildFonts NO
*/
+#define BuildFonts NO
+
/*
* To not build/install the 75dpi fonts, uncomment the following
*
#define Build75DpiFonts NO
*/
+#define Build75DpiFonts NO
+
/*
* To not build/install the 100dpi fonts, uncomment the following
*
#define Build100DpiFonts NO
*/
+#define Build100DpiFonts NO
+
/*
* To not build/install the Speedo fonts, uncomment the following
*
#define BuildSpeedoFonts NO
*/
+#define BuildSpeedoFonts NO
+
/*
* To not build/install the Type1 fonts, uncomment the following
*
#define BuildType1Fonts NO
*/
+#define BuildType1Fonts NO
+
/*
* To not build/install the CID fonts, uncomment the following
*
#define BuildCIDFonts NO
*/
+#define BuildCIDFonts NO
+
/*
* To not build/install the True Type fonts, uncomment the following
*
#define BuildTrueTypeFonts NO
*/
+#define BuildTrueTypeFonts NO
+
/*
* To not build/install the Cyrillic fonts, uncomment the following
*
#define BuildCyrillicFonts NO
*/
+#define BuildCyrillicFonts NO
+
/*
* To not install the local font directory, uncomment the following
*
#define MakeLocalFontDir NO
*/
+#define MakeLocalFontDir NO
+
/*
* To build only the servers with a cut-down source tree, uncomment
* this.
@@ -461,24 +497,31 @@
#define XF86XAA NO
*/
+#define XF86XAA NO
+
/*
* Build vgahw. This can be disabled with:
*
#define XF86VgaHw NO
*/
+#define XF86VgaHw NO
+
/*
* Build xf1bpp. This can be disabled with:
*
#define XF1Bpp NO
*/
+#define XF1Bpp NO
+
/*
* Build xf4bpp. This can be disabled with:
*
#define XF4Bpp NO
*/
+#define XF4Bpp NO
/*
* BSD Console driver support (for FreeBSD and NetBSD).
@@ -513,6 +556,8 @@
#define BuildXInputExt NO
*/
+#define BuildXInputExt NO
+
/*
* Uncomment this for joystick support.
*
@@ -527,18 +572,24 @@
#define BuildScreenSaverExt NO
*/
+#define BuildScreenSaverExt NO
+
/*
* If you don't want to build Xinerama support, uncomment this.
*
#define BuildXinerama NO
*/
+#define BuildXinerama NO
+
/*
* If you don't want to build support for the GLX extension, uncomment this.
*
#define BuildGlxExt NO
*/
+#define BuildGlxExt NO
+
/*
* If you want to build the xf86rush extension, uncomment this line.
* This isn't recommended.
@@ -668,6 +719,10 @@
#define BuildLinuxDocPS NO
*/
+#define BuildLinuxDocText NO
+#define BuildLinuxDocHtml NO
+#define BuildLinuxDocPS NO
+
/*
* To install Japanese versions of the documentation uncomment this.
* Note: The Japanese documentation consists of a subset of the
===============================================================================
could anybody help me please? Thanks very much!
--
Wang, Baojun Lanzhou University
Distributed & Embedded System Lab http://dslab.lzu.edu.cn
School of Information Science and Engeneering wangbj at lzu.edu.cn
Tianshui South Road 222. Lanzhou 730000 .P.R.China
Tel:+86-931-8912025 Fax:+86-931-8912022
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20070201/f58a6513/attachment.pgp>
More information about the xorg
mailing list