[mythtv] Linux 2.6.12-rc1-mm4 and mythtv cvs 20050403 - joystick.h
compile problem
Richard Dale
richard at interlink.com.au
Sun Apr 3 06:46:52 UTC 2005
I'm trying to compile the latest mythtv cvs (today is 20050403) and the
latest mm (4) version of the Linux 2.6.12-rc1 kernel.
During the mythtv compile it shows a problem with joystick.h that comes from
the kernel source.
The compile error message is:
In file included from jsmenu.cpp:39:
../../../../linux-2.6.12-rc1/include/linux/joystick.h:142:2: #error
Unexpected BITS_PER_LONG
make[2]: *** [jsmenu.o] Error 1
Specifically, it appears to be part of the BITS_PER_LONG pert of joystick.h:
#if BITS_PER_LONG == 64
#define JS_DATA_SAVE_TYPE JS_DATA_SAVE_TYPE_64
#elif BITS_PER_LONG == 32
#define JS_DATA_SAVE_TYPE JS_DATA_SAVE_TYPE_32
#else
#error Unexpected BITS_PER_LONG
#endif
My kludge workaround is to comment out the error message and to force the 32
bit value. ie:
#define JS_DATA_SAVE_TYPE JS_DATA_SAVE_TYPE_32
// #error Unexpected BITS_PER_LONG
At least it's now compiling...
Hope that helps anyone that experienced the same problem.
Cheers,
Richard.
More information about the mythtv-dev
mailing list