<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hello, all of users:<br>there are header files missed when you compile dahdi with kernel-2.6.29 or 2.6.33. i believe <br>that few files are affected: wctdm.c dahdi-base.c wcb4xxp/base.c, opvxa1200.c...<br>the errors look like these:<br>================================================<br>
<div>from /usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:61:</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/include/dahdi/dahdi_config.h:27:28: error: linux/autoconf.h: No such file or directory</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function '__qevent':</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:839: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:839: error: (Each undeclared identifier is reported only once</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:839: error: for each function it appears in.)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function 'schluffen':</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:867: error: dereferencing pointer to incomplete type</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:867: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:869: error: implicit declaration of function 'signal_pending'</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:870: error: implicit declaration of function 'schedule'</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:872: error: dereferencing pointer to incomplete type</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:872: error: 'TASK_RUNNING' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function 'dahdi_timer_ioctl':</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:3418: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function 'dahdi_chanandpseudo_ioctl':</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:4419: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function '__dahdi_getbuf_chunk':</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:6075: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function '__rbs_otimer_expire':</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:6263: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function '__putbuf_chunk':</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c:7203: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)</div>
<div>/usr/src/dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/dahdi-base.c: In function 'dahdi_hdlc_finish':<br>==================================<br>after digging the code, i changed the files and add some linux headers.<br>#include <linux/kernel.h><br>#include <linux/errno.h><br><span style="color: rgb(255, 0, 255);">+#include <linux/sched.h></span><br>#include <linux/module.h><br>#include <linux/proc_fs.h><br>=================<br>and add this:<br>#ifdef __KERNEL__<br>#include <linux/version.h><br>#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)<br>#include <linux/config.h><br>#else<br><span style="color: rgb(255, 0, 127);">+#include <generated/autoconf.h></span><br>-<span style="color: rgb(255, 0, 127);">#include <linux/autoconf.h></span><br>#endif<br>#endif<br>=========================<br><br></div><br>Regards!<br>
zhulizhong</td></tr></table><br>