make[7]: Entering directory 
`/home/XFree86/4.2/std/xc/programs/Xserver/hw/xfree86/input/aiptek'
rm -f xf86Aiptek.o
gcc -O2 -fno-strength-reduce -ansi -pedantic -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wredundant-decls -Wnested-externs -Wundef     -I. 
-I../../../../../../programs/Xserver/hw/xfree86/common 
-I../../../../../../programs/Xserver/hw/xfree86/loader 
-I../../../../../../programs/Xserver/hw/xfree86/os-support          
-I../../../../../../programs/Xserver/include 
-I../../../../../../programs/Xserver/mi 
-I../../../../../../exports/include/X11 
-I../../../../../../include/extensions  -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 -DXINPUT -DXKB -DLBX -DXAPPGROUP 
-DXCSECURITY -DTOGCUP  -DXF86BIGFONT -DDPMSExtension  -DPIXPRIV 
-DPANORAMIX  -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV 
-DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server 
-DXF86VIDMODE -DXvMCExtension  -DSMART_SCHEDULE -DBUILDDEBUG 
-DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG  -DFUNCPROTO=15 
-DNARROWPROTO  -DIN_MODULE -DXFree86Module    -c xf86Aiptek.c 
xf86Aiptek.c:154: `KEY_F1' undeclared here (not in a function)
xf86Aiptek.c:154: initializer element for `linux_inputDevice_keyMap[0]' is 
not constant
xf86Aiptek.c:154: `KEY_F2' undeclared here (not in a function)
xf86Aiptek.c:154: initializer element for `linux_inputDevice_keyMap[1]' is 
not constant
xf86Aiptek.c:154: `KEY_F3' undeclared here (not in a function)
xf86Aiptek.c:154: initializer element for `linux_inputDevice_keyMap[2]' is 
not constant
xf86Aiptek.c:154: `KEY_F4' undeclared here (not in a function)
xf86Aiptek.c:154: initializer element for `linux_inputDevice_keyMap[3]' is 
not constant
xf86Aiptek.c:154: `KEY_F5' undeclared here (not in a function)
        ...
xf86Aiptek.c: In function `xf86AiptekHIDReadInput':
xf86Aiptek.c:493: sizeof applied to an incomplete type
xf86Aiptek.c:493: warning: ANSI C forbids zero-size array `eventbuf'
xf86Aiptek.c:509: increment of pointer to unknown structure
xf86Aiptek.c:509: arithmetic on pointer to an incomplete type
xf86Aiptek.c:523: dereferencing pointer to incomplete type
xf86Aiptek.c:525: `EV_ABS' undeclared (first use in this function)
xf86Aiptek.c:525: (Each undeclared identifier is reported only once
xf86Aiptek.c:525: for each function it appears in.)
xf86Aiptek.c:527: dereferencing pointer to incomplete type
        ...
xf86Aiptek.c:808: dereferencing pointer to incomplete type
xf86Aiptek.c:808: `EV_MSC' undeclared (first use in this function)
xf86Aiptek.c: In function `xf86AiptekHIDOpen':
xf86Aiptek.c:961: `EV_MAX' undeclared (first use in this function)
xf86Aiptek.c:961: `KEY_MAX' undeclared (first use in this function)
xf86Aiptek.c:961: size of array `bit' has non-integer type
xf86Aiptek.c:973: warning: implicit declaration of function `EVIOCGNAME'
xf86Aiptek.c:976: `EVIOCGVERSION' undeclared (first use in this function)
xf86Aiptek.c:993: warning: implicit declaration of function `EVIOCGBIT'
xf86Aiptek.c:1004: `EV_ABS' undeclared (first use in this function)
xf86Aiptek.c:1006: warning: implicit declaration of function `EVIOCGABS'
xf86Aiptek.c:1009: `ABS_X' undeclared (first use in this function)
xf86Aiptek.c:1016: `ABS_Y' undeclared (first use in this function)
xf86Aiptek.c:1023: `ABS_Z' undeclared (first use in this function)
xf86Aiptek.c:1011: warning: unreachable code at beginning of switch 
statement
xf86Aiptek.c:961: warning: unused variable `bit'
xf86Aiptek.c: In function `xf86AiptekOpen':
xf86Aiptek.c:1079: `EVIOCGVERSION' undeclared (first use in this function)

(the full list of warnings and errors on that file is too long to
edit and quote just the errors).

This is Red Hat 6.0 (Linux 2.2.24), but the point is that the file
only compiles on platforms which define LINUX_INPUT.

I wouldn't worry about it since the module would report
        ErrorF("The Aiptek USB driver isn't available for your platform.\n");
if I succeeded in running it. However a broken build is not acceptable.

I think we have been into this fight before: the module relies upon OS 
dependent ioctls, so may or may not work at run time, but OS detection is 
at compile-time :-(.
Since fixing it to compile on all platforms is inappropriate, can we 
not built it by default on platfroms where it wont run ?

-- 
Dr. Andrew C. Aitchison         Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED]       http://www.dpmms.cam.ac.uk/~werdna

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to