Hi,

I got the following error when compiling RC4:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib
-I../../lib -I../../src -I../../systems -D_REENTRANT -O3 -ffast-math -pipe
-D_GNU_SOURCE -Werror-implicit-function-declaration -MT linux_input.lo -MD
-MP -MF .deps/linux_input.Tpo -c linux_input.c  -fPIC -DPIC -o
.libs/linux_input.o
linux_input.c:114: error: redefinition of 'struct input_absinfo'
gmake[3]: *** [linux_input.lo] Error 1
gmake[3]: Leaving directory
`/home/paguilar/projects/directfb/DirectFB-1.0.0-rc4/inputdrivers/linux_input'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/home/paguilar/projects/directfb/DirectFB-1.0.0-rc4/inputdrivers'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/home/paguilar/projects/directfb/DirectFB-1.0.0-rc4'
gmake: *** [all] Error 2

There is another 'struct input_absinfo' in /usr/include/linux/input.h

Here's my config:
$ ./configure --prefix=/usr/local/directfb --with-gfxdrivers=radeon
--enable-multi --enable-unique

$ cat /proc/version
Linux version 2.6.18.3 ([EMAIL PROTECTED]) (gcc version 4.1.0 20060304 (Red Hat
4.1.0-3)) #2 SMP Mon Dec 4 12:23:42 CET 2006

The attached patch fixes this by changing the struct name in the file
inputdrivers/linux_input/linux_input.c

Regards,

Pedro Aguilar
--- inputdrivers/linux_input/linux_input.c.orig	2007-02-12 16:40:15.000000000 +0100
+++ inputdrivers/linux_input/linux_input.c	2007-02-12 16:39:24.000000000 +0100
@@ -111,7 +111,7 @@
 
 /* compat for 2.4.x kernel - just a compile fix */
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
-struct input_absinfo {
+struct input_driver_absinfo {
         __s32 value;
         __s32 minimum;
         __s32 maximum;
@@ -768,7 +768,7 @@
      if (data->touchpad) {
           touchpad_fsm_init( &fsm_state );
 
-          struct input_absinfo absinfo;
+          struct input_driver_absinfo absinfo;
 
           ioctl( data->fd, EVIOCGABS(ABS_X), &absinfo );
           fsm_state.x.min = absinfo.minimum;
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to