<div>Because one the the symbols in the lirc code was deprecated once you upgrade to the 2.6.13.x or higher kernel, which is the kernel I'm assuming you have, lirc will no longer compile without patching lirc_i2c.c. These are the steps to do this:
</div>
<div>1) # emerge lirc</div>
<div>2) When portage has downloaded the source and FINISHES UNPACKING THE SOURCE press ctrl+x.</div>
<div>3) Save the following to a file called lirc_patch.diff:</div>
<div>--- lirc_i2c.c.orig 2005-10-16 17:06:37.435842709 -0400<br>+++ lirc_i2c.c 2005-10-16 17:06:46.295693219 -0400<br>@@ -54,8 +54,12 @@<br><br>#include <br><br>-#include "drivers/kcompat.h"<br>#include "drivers/lirc_dev/lirc_dev.h"
<br>+#include "drivers/kcompat.h"<br>+<br>+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,14)<br>+# define I2C_ALGO_BIT 0<br>+#endif<br><br>struct IR {<br>struct lirc_plugin l;<br> </div>
<div> </div>
<div>4) # patch /var/tmp/portage/lirc-0.7.2/work/lirc-0.7.2/drivers/lirc_i2c/lirc_i2c.c -i lirc_patch.diff</div>
<div>5) # emerge lirc<br> </div>
<div><span class="gmail_quote">It should now emerge without any problems.</span></div>
<div><span class="gmail_quote">P.S. Credits for the patch go to "Tom" as he signs his posts on the lirc mailing list.</span></div>
<div><span class="gmail_quote"></span> </div>
<div><span class="gmail_quote">Cheers.</span></div>
<div><span class="gmail_quote"></span> </div>
<div><span class="gmail_quote">On 11/26/05, <b class="gmail_sendername">Louie Ilievski</b> <<a href="mailto:loudawg@comcast.net">loudawg@comcast.net</a>> wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Saturday 26 November 2005 03:27 pm, Brady wrote:<br>> I can not get Gentoo to build the lirc_i2c module for anything. This
<br>> is a recent 2005-r1 install that is completely fresh. i2c is enabled<br>> and lirc builds lirc_dev but will not build the i2c driver for<br>> anything.<br><br>I'm assuming you're trying to get LIRC working on a Hauppauge card since those
<br>use lirc_i2c. When you emerge lirc on Gentoo, you need to pass an option.<br>It should look like this:<br><br>LIRC_OPTS="--with-driver=hauppauge" emerge lirc<br><br>You can also make things easier by just adding
<br>LIRC_OPTS="--with-driver=hauppauge" to the end of your /etc/make.conf file so<br>you can just do "emerge lirc" and not worry about it again.<br><br>~Lou<br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote><br>