5/10/06

After installing mythtv with a hauppuage 150 card, I tried to get lirc to
compile. I am using a 2.6.16 kernel and tried to compile lirc-0.8 with no
success. The error on make was:

/usr/src/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363: error: unknown field 'name' specified in initializer
/usr/src/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363: warning: initialization makes integer from pointer without a cast
/usr/src/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364: error: 'I2C_DRIVERID_EXP3' undeclared here (not in a function)
/usr/src/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: unknown field 'flags' specified in initializer
/usr/src/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: 'I2C_DF_NOTIFY' undeclared here (not in a function)

After searching and trying different things for 3 days, I found a bug posted
on bugs.gentoo.org. I applied the patch that was provided and it worked!! Not
sure but you may also need to "touch Rules.make" in your kernel source.

Link to patch:
https://bugs.gentoo.org/attachment.cgi?id=82822

Link to bug:
http://bugs.gentoo.org/show_bug.cgi?id=127122