trouble cross-compiling xorg-server 1.4

Gino Badouri xorg at akelo.ath.cx
Wed Jan 9 06:57:42 PST 2008


Hi there,

I'm trying to cross compile xorg release 7.3 using a prebuilt toolchain
from STLinux.
The toolchain im using is built using uclibc gcc 4.2.1 for SH4 (SuperH)
arch little endian.

I followed the wiki and got all libraries in place without any problems.
Only xorg-server-1.4 gives some problems.
I configured with:

./configure
--prefix=/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr
--sysconfdir=/home/mastag/buildroot/project_build_sh4/dreamcast/root/etc
--oldincludedir=/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include --host=sh4-linux CPPFLAGS="-I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/cairo -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0/glib -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0/gobject -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib/glib-2.0/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/gtk-2.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/drm -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/gtk-2.0/gtk -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib/gtk-2.0/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pixman-1 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pango-1.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pango-1.0/pango -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/atk-1.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/atk-1.0/atk -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/libpng12 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/freetype2 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/freetype2/freetype -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/X11 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/fontconfig -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/xcb" LDFLAGS="-L/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib -L/home/mastag/buildroot/project_build_sh4/dreamcast/root/lib -Wl,--rpath,/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib -Wl,--rpath,/home/mastag/buildroot/project_build_sh4/dreamcast/root/lib" LD_LIBRARY_PATH="/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib" PKG_CONFIG_PATH="/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib/pkgconfig" CC=sh4-linux-uclibc-gcc CPP=sh4-linux-uclibc-cpp CXX=sh4-linux-uclibc-c++ --enable-xephyr --disable-xprint --disable-xgl --disable-glx --disable-xegl --disable-dri --enable-kbd_mode --enable-xorgcfg -disable-config-hal --disable-config-dbus --enable-xorg --disable-dmx --with-os-name="Dreamcast uClinux" --with-os-vendor="MastaG" --with-builder-addr="mastag at gmail.com" --with-int10=x86emu --disable-composite --with-gnu-ld

It however fails at this point:

Making all in mi
make[1]: Map '/home/mastag/dcx/xorg-server-1.4/mi' wordt binnengegaan
/bin/sh ../libtool --tag=CC   --mode=compile sh4-linux-uclibc-gcc
-DHAVE_CONFIG_H -I. -I../include
-I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include
-I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/cairo -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0/glib -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0/gobject -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib/glib-2.0/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/gtk-2.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/drm -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/gtk-2.0/gtk -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib/gtk-2.0/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pixman-1 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pango-1.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pango-1.0/pango -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/atk-1.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/atk-1.0/atk -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/libpng12 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/freetype2 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/freetype2/freetype -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/X11 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/fontconfig -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/xcb -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pixman-1   -I../include -I../include -I../Xext  -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -g -O2 -MT misprite.lo -MD -MP -MF .deps/misprite.Tpo -c -o misprite.lo misprite.c
 sh4-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../include
-I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include
-I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/cairo -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0/glib -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/glib-2.0/gobject -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib/glib-2.0/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/gtk-2.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/drm -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/gtk-2.0/gtk -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/lib/gtk-2.0/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pixman-1 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pango-1.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pango-1.0/pango -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/atk-1.0 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/atk-1.0/atk -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/libpng12 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/freetype2 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/freetype2/freetype -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/X11 -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/fontconfig -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/xcb -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include -I/home/mastag/buildroot/project_build_sh4/dreamcast/root/usr/include/pixman-1 -I../include -I../include -I../Xext -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -g -O2 -MT misprite.lo -MD -MP -MF .deps/misprite.Tpo -c misprite.c  -fPIC -DPIC -o .libs/misprite.o
In file included from misprite.c:50:
mispritest.h:84: error: expected specifier-qualifier-list before
'DamagePtr'
misprite.c:129: error: expected ')' before 'pDamage'
misprite.c: In function 'miSpriteInitialize':
misprite.c:159: warning: implicit declaration of function 'DamageSetup'
misprite.c:159: warning: nested extern declaration of 'DamageSetup'
misprite.c:174: error: 'struct <anonymous>' has no member named
'pDamage'
misprite.c:174: warning: implicit declaration of function 'DamageCreate'
misprite.c:174: warning: nested extern declaration of 'DamageCreate'
misprite.c:174: error: 'miSpriteReportDamage' undeclared (first use in
this function)
misprite.c:174: error: (Each undeclared identifier is reported only once
misprite.c:174: error: for each function it appears in.)
misprite.c:175: error: 'DamageDestroyFunc' undeclared (first use in this
function)
misprite.c:175: error: expected ')' before numeric constant
misprite.c: In function 'miSpriteCloseScreen':
misprite.c:268: warning: implicit declaration of function
'DamageUnregister'
misprite.c:268: warning: nested extern declaration of 'DamageUnregister'
misprite.c:268: error: 'struct <anonymous>' has no member named
'pDamage'
misprite.c:269: warning: implicit declaration of function
'DamageDestroy'
misprite.c:269: warning: nested extern declaration of 'DamageDestroy'
misprite.c:269: error: 'struct <anonymous>' has no member named
'pDamage'
misprite.c: In function 'miSpriteSetCursor':
misprite.c:682: warning: implicit declaration of function
'DamageDrawInternal'
misprite.c:682: warning: nested extern declaration of
'DamageDrawInternal'
misprite.c:683: error: 'struct <anonymous>' has no member named
'pDamage'
misprite.c:715: warning: implicit declaration of function
'DamageRegister'
misprite.c:715: warning: nested extern declaration of 'DamageRegister'
misprite.c:715: error: 'struct <anonymous>' has no member named
'pDamage'
misprite.c: In function 'miSpriteRemoveCursor':
misprite.c:754: error: 'struct <anonymous>' has no member named
'pDamage'
misprite.c:762: error: 'struct <anonymous>' has no member named
'pDamage'
misprite.c: In function 'miSpriteRestoreCursor':
misprite.c:798: error: 'struct <anonymous>' has no member named
'pDamage'
make[1]: *** [misprite.lo] Fout 1
make[1]: Map '/home/mastag/dcx/xorg-server-1.4/mi' wordt verlaten
make: *** [all-recursive] Fout 1

Anyone knows whats up?
Thanks in advance





More information about the xorg mailing list