[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] ecore on 2.6.16 kernels



Hello.
I have problems compiling ecore on 2.6.16.27 kernel.
As I found that this is a problem with kernel headers:
http://bugzilla.kernel.org/show_bug.cgi?id=6302 this is a bug report
and it was fixed in 2.6.17 kernels.
I found solution in XFree86 mailing list:
http://www.mail-archive.com/devel@xfree86.org/msg07671.html

and modifie ecore_fb_private.h as folows:
-----------cut---------------------
#include <linux/kd.h>
#include <linux/vt.h>
#include <linux/fb.h>
#define kernel_ulong_t unsigned long <-added
#define BITS_PER_LONG 32<-modified<-added
#include <linux/input.h>
#undef kernel_ulong_t <-added
#undef BITS_PER_LONG <-added
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
--------cut-------------------------

and it compiles clean. As I understand userspace programs dont use
struct with this modified defines. May be it posible to include this
defines for 2.6.16 kernels.

P.S. here is error which I get with unmodified ecore_fb_private.h:

In file included from ecore_fb_private.h:17,
                 from ecore_fb.c:2:
/usr/include/linux/input.h:801: error: syntax error before
"kernel_ulong_t" /usr/include/linux/input.h:805: error: syntax error
before "evbit" /usr/include/linux/input.h:805: error: `BITS_PER_LONG'
undeclared here (not in a function)
/usr/include/linux/input.h:806: error: syntax error before "keybit"
/usr/include/linux/input.h:807: error: syntax error before "relbit"
/usr/include/linux/input.h:808: error: syntax error before "absbit"
/usr/include/linux/input.h:809: error: syntax error before "mscbit"
/usr/include/linux/input.h:810: error: syntax error before "ledbit"
/usr/include/linux/input.h:811: error: syntax error before "sndbit"
/usr/include/linux/input.h:812: error: syntax error before "ffbit"
/usr/include/linux/input.h:813: error: syntax error before "swbit"
/usr/include/linux/input.h:815: error: syntax error before "driver_info"
/usr/include/linux/input.h:805: error: storage size of `evbit' isn't
known /usr/include/linux/input.h:806: error: storage size of `keybit'
isn't known /usr/include/linux/input.h:807: error: storage size of
`relbit' isn't known /usr/include/linux/input.h:808: error: storage
size of `absbit' isn't known /usr/include/linux/input.h:809: error:
storage size of `mscbit' isn't known /usr/include/linux/input.h:810:
error: storage size of `ledbit' isn't
known /usr/include/linux/input.h:811: error: storage size of `sndbit'
isn't known /usr/include/linux/input.h:812: error: storage size of
`ffbit' isn't known /usr/include/linux/input.h:813: error: storage size
of `swbit' isn't known ecore_fb.c:17: warning:
'_ecore_fb_double_click_time' defined but not used