[driver/xf86-input-vmmouse] build problem from git sources

Trevor Woerner twoerner at gmail.com
Wed Jan 4 13:24:42 PST 2012


Hi everyone,

I'm trying to build the project sources on a fresh machine using the
modular build.sh procedure. Currently I'm experiencing a build failure
in driver/xf86-input-vmmouse and can't figure out how to fix it.

The build is having problems compiling
"driver/xf86-input-vmmouse/src/vmmouse.c". At first I was seeing the
following:

vmmouse.c: In function 'VMMouseInitPassthru':
vmmouse.c:244:30: error: invalid application of 'sizeof' to incomplete
type 'InputOption'
vmmouse.c:245:10: error: dereferencing pointer to incomplete type
vmmouse.c:246:10: error: dereferencing pointer to incomplete type
vmmouse.c:247:10: error: dereferencing pointer to incomplete type
vmmouse.c:257:17: error: dereferencing pointer to incomplete type
vmmouse.c:258:16: error: dereferencing pointer to incomplete type
vmmouse.c:259:16: error: dereferencing pointer to incomplete type

But xserver/dix/inpututils.c also tries to perform a sizeof on the
InputOption type and succeeds. Comparing the two I added the following
line to driver/xf86-input-fmmouse/src/vmmouse.c:

#include <optionstr.h>

Afterwards I then received the following build error:

vmmouse.c: In function 'VMMouseInitPassthru':
vmmouse.c:246:10: error: 'InputOption' has no member named 'key'
vmmouse.c:247:10: error: 'InputOption' has no member named 'value'
vmmouse.c:248:10: error: 'InputOption' has no member named 'next'
vmmouse.c:258:17: error: 'InputOption' has no member named 'next'
vmmouse.c:259:16: error: 'InputOption' has no member named 'key'
vmmouse.c:260:16: error: 'InputOption' has no member named 'value'

The InputOption type is a typedef of _InputOption which appears to be
defined in $PREFIX/include/xorg/optionstr.h (which appears to come
from xserver/). In "optionstr.h" _InputOption is defined as:

struct _InputOption {
    GenericListRec list;
    char *opt_name;
    char *opt_val;
    int opt_used;
    char *opt_comment;
};

Any idea how to reconcile this issue?

Best regards,
    Trevor


More information about the xorg-devel mailing list