<div>Because one the the symbols in the lirc code was deprecated once you upgrade to the 2.6.13.x or higher&nbsp;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 &quot;drivers/kcompat.h&quot;<br>#include &quot;drivers/lirc_dev/lirc_dev.h&quot;
<br>+#include &quot;drivers/kcompat.h&quot;<br>+<br>+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,4,14)<br>+#&nbsp;&nbsp; define I2C_ALGO_BIT 0<br>+#endif<br><br>struct IR {<br>struct lirc_plugin l;<br>&nbsp;</div>
<div>&nbsp;</div>
<div>4)&nbsp;# 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>&nbsp;</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 &quot;Tom&quot; as he signs his posts on the lirc mailing list.</span></div>
<div><span class="gmail_quote"></span>&nbsp;</div>
<div><span class="gmail_quote">Cheers.</span></div>
<div><span class="gmail_quote"></span>&nbsp;</div>
<div><span class="gmail_quote">On 11/26/05, <b class="gmail_sendername">Louie Ilievski</b> &lt;<a href="mailto:loudawg@comcast.net">loudawg@comcast.net</a>&gt; 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>&gt; I can not get Gentoo to build the lirc_i2c module for anything. This
<br>&gt; is a recent 2005-r1 install that is completely fresh. i2c is enabled<br>&gt; and lirc builds lirc_dev but will not build the i2c driver for<br>&gt; anything.<br><br>I'm assuming you're trying to get LIRC working on a Hauppauge card since those
<br>use lirc_i2c.&nbsp;&nbsp;When you emerge lirc on Gentoo, you need to pass an option.<br>It should look like this:<br><br>LIRC_OPTS=&quot;--with-driver=hauppauge&quot; emerge lirc<br><br>You can also make things easier by just adding
<br>LIRC_OPTS=&quot;--with-driver=hauppauge&quot; to the end of your /etc/make.conf file so<br>you can just do &quot;emerge lirc&quot; 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>