Hi Eric,<br><br>Make sure that you have the proper kernel and kernel-devel installed. <br><br>Adolphe<br><br><br><br><div class="gmail_quote">On Sat, Nov 3, 2012 at 4:32 PM, Eric Smith <span dir="ltr"><<a href="mailto:es@fruitcom.com" target="_blank">es@fruitcom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to compile a dahdi module from checkout:<br>
svn co <a href="http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.6.1+2.6.1" target="_blank">http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.6.1+2.6.1</a><br>
with ubuntu 3.5.0-17-generic and gcc 4.7.2<br>
<br>
Error on compile is:<br>
oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c:3870:47:\<br>
error: 'NULL' undeclared (first use in this function)<br>
<br>
This is identical to the error reported in this patch fix:<br>
<a href="https://issues.asterisk.org/jira/browse/DAHTOOL-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel" target="_blank">https://issues.asterisk.org/jira/browse/DAHTOOL-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel</a><br>
<br>
How would I apply the patch included in the above url?<br>
<br>
[eric@pepper ~/src/asterisk-complete/asterisk/dahdi/2.6.1+2.6.1] $ patch <DAHTOOL-60-f17.diff<br>
can't find file to patch at input line 5<br>
Perhaps you should have used the -p or --strip option?<br>
The text leading up to this was:<br>
--------------------------<br>
|diff --git a/xpp/oct612x/include/octdef.h b/xpp/oct612x/include/octdef.h<br>
|index a2da33d..7e534b7 100644<br>
|--- a/xpp/oct612x/include/octdef.h<br>
|+++ b/xpp/oct612x/include/octdef.h<br>
--------------------------<br>
File to patch:<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Eric Smith<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br><br>