[RFC] xserver: use LRMI for real-mode calls (v2)

Tiago Vignatti tiago.vignatti at nokia.com
Mon Nov 30 10:05:38 PST 2009


Hi Matthieu,

On Sat, Nov 28, 2009 at 09:51:57AM +0100, ext Matthieu Herrb wrote:
> 
> libx86 doesn't build on platforms that need the x86emu backend. First it
> still goes to the src/vm86 subdir  if --enable-x86emu is not specified
> on configure's command line (altough configure's output shows that it
> properly found out the x86emu was needed):
> 
> config.status: executing depfiles commands
> 
>   Package: libx86 0.0.1
> 
>   Configuration
>     Backend:............: x86emu
>     DEBUG...............: no
>     CFLAGS..............: -O2 -pipe
> 
>   Installation:
>     Prefix..............: /usr/X11R6
> 
> exec make  libXi_ltversion=10.0
> make  all-recursive
> Making all in src
> Making all in vm86
> if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I/local/xorg/lib/libx86/src/vm86 -I../..      -O2 -pipe -MT
> vm86.lo -MD -MP -MF ".deps/vm86.Tpo" -c -o vm86.lo
> /local/xorg/lib/libx86/src/vm86/vm86.c;  then mv -f ".deps/vm86.Tpo"
> ".deps/vm86.Plo
> "; else rm -f ".deps/vm86.Tpo"; exit 1; fi
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. -I/local/xorg/lib/libx86/src/vm86 -I../.. -O2
> -pipe -MT vm86.lo -MD -MP -MF .deps/vm86.Tpo -c /local/xorg/lib/
> libx86/src/vm86/vm86.c  -fPIC -DPIC -o .libs/vm86.o
> /local/xorg/lib/libx86/src/vm86/vm86.c: In function `pushw':
> /local/xorg/lib/libx86/src/vm86/vm86.c:74: error: `CONTEXT_REGS'
> undeclared (first use in this function)
> /local/xorg/lib/libx86/src/vm86/vm86.c:74: error: (Each undeclared
> identifier is reported only once
> /local/xorg/lib/libx86/src/vm86/vm86.c:74: error: for each function it
> appears in.)
> 
> 
> If --enable-x86emu is used it fails to link the library:
> 
> gmake[3]: Entering directory `/local/xorg/lib/libx86/obj/src/lrmi'
> gmake[3]: *** No rule to make target
> `/local/xorg/lib/libx86/src/x86emu/libx86emu.la', needed by `libx86.la'.
>  Stop.


My bad. I've done a confusion with automake. If you clone again the library
should be fixed (note that now if you want explicity x86emu then you have to
use --with-backend=x86emu).

If the compilation stills hanging somewhere, it will be probably due some
header file missing. Should be easy patchable though.


Thanks for testing it!

            Tiago


More information about the xorg-devel mailing list