I am trying to compile a dahdi module from checkout: svn co http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.6.1+2.6.1 with ubuntu 3.5.0-17-generic and gcc 4.7.2 Error on compile is: oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c:3870:47:\ error: 'NULL' undeclared (first use in this function) This is identical to the error reported in this patch fix: https://issues.asterisk.org/jira/browse/DAHTOOL-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel How would I apply the patch included in the above url? [eric at pepper ~/src/asterisk-complete/asterisk/dahdi/2.6.1+2.6.1] $ patch <DAHTOOL-60-f17.diff can't find file to patch at input line 5 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/xpp/oct612x/include/octdef.h b/xpp/oct612x/include/octdef.h |index a2da33d..7e534b7 100644 |--- a/xpp/oct612x/include/octdef.h |+++ b/xpp/oct612x/include/octdef.h -------------------------- File to patch: -- Eric Smith
Hi Eric, Make sure that you have the proper kernel and kernel-devel installed. Adolphe On Sat, Nov 3, 2012 at 4:32 PM, Eric Smith <es at fruitcom.com> wrote:> I am trying to compile a dahdi module from checkout: > svn co http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.6.1+2.6.1 > with ubuntu 3.5.0-17-generic and gcc 4.7.2 > > Error on compile is: > oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c:3870:47:\ > error: 'NULL' undeclared (first use in this function) > > This is identical to the error reported in this patch fix: > > https://issues.asterisk.org/jira/browse/DAHTOOL-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > > How would I apply the patch included in the above url? > > [eric at pepper ~/src/asterisk-complete/asterisk/dahdi/2.6.1+2.6.1] $ patch > <DAHTOOL-60-f17.diff > can't find file to patch at input line 5 > Perhaps you should have used the -p or --strip option? > The text leading up to this was: > -------------------------- > |diff --git a/xpp/oct612x/include/octdef.h b/xpp/oct612x/include/octdef.h > |index a2da33d..7e534b7 100644 > |--- a/xpp/oct612x/include/octdef.h > |+++ b/xpp/oct612x/include/octdef.h > -------------------------- > File to patch: > > > -- > Eric Smith > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121103/2a770eab/attachment.htm>
On Saturday, November 03, 2012 09:32:37 PM Eric Smith wrote:> How would I apply the patch included in the above url? > > [eric at pepper ~/src/asterisk-complete/asterisk/dahdi/2.6.1+2.6.1] $ patch > <DAHTOOL-60-f17.diff can't find file to patch at input line 5 > Perhaps you should have used the -p or --strip option?You'll need to use.............the -p or --strip option^^ But in your case, both you and DAHTOOL-60-f17.diff will need to be in the 2.6.1+2.6.1/tools/ directory before you issue: patch -p1 < DAHTOOL-60-f17.diff -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121104/50310ab5/attachment.pgp>
Seemingly Similar Threads
- zaptel compilation problems with linux 2.6.19
- Re: zapata with Tiger3XX compilation error
- DAHDI-Linux 2.6.1, 2.5.1 and DAHDI-Tools 2.6.1, 2.5.1 Now Available
- DAHDI-Linux 2.6.1, 2.5.1 and DAHDI-Tools 2.6.1, 2.5.1 Now Available
- DAHDI-Linux and DAHDI-Tools 2.8.0-rc5 Now Available