<div dir="ltr"><div><div>Hello,<br><br>I'm getting the following errors when compiling dahdi-linux 2.6.2 under Ubuntu 14.04 with kernel 3.13.0-24-generic.<br></div>I did google and found one thread suggesting the errors should be fixed in 2.6.2, and another suggesting to try 2.4 which didn't make sense but I tried anyway, and it gave similar warnings.<br>
</div>Would anyone know how to make it compile? Thanks in advance.<br><br><br>make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'<br>make -C /lib/modules/3.13.0-24-generic/build SUBDIRS=/usr/src/dahdi-linux-2.6.2/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-2.6.2/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m<br>
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'<br> CC [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:91:2: warning: #warning "No CONFIG_BKL is an experimental configuration." [-Wcpp]<br>
#warning "No CONFIG_BKL is an experimental configuration."<br> ^<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘dahdi_proc_open’:<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:2: error: implicit declaration of function ‘PDE’ [-Werror=implicit-function-declaration]<br>
return single_open(file, dahdi_seq_show, PDE(inode)->data);<br> ^<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:53: error: invalid type argument of ‘->’ (have ‘int’)<br> return single_open(file, dahdi_seq_show, PDE(inode)->data);<br>
^<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_assign_span’:<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]<br>
span->proc_entry = create_proc_entry(tempfile, 0444,<br> ^<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:20: warning: assignment makes pointer from integer without a cast [enabled by default]<br> span->proc_entry = create_proc_entry(tempfile, 0444,<br>
^<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6952:19: error: dereferencing pointer to incomplete type<br> span->proc_entry->data = (void *)(long)span->spanno;<br> ^<br>
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6953:19: error: dereferencing pointer to incomplete type<br> span->proc_entry->proc_fops = &dahdi_proc_ops;<br> ^<br>/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_unassign_span’:<br>
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:7137:37: error: dereferencing pointer to incomplete type<br> remove_proc_entry(span->proc_entry->name, root_proc_entry);<br> ^<br>
cc1: some warnings being treated as errors<br>make[2]: *** [/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o] Error 1<br>make[1]: *** [_module_/usr/src/dahdi-linux-2.6.2/drivers/dahdi] Error 2<br>make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'<br>
make: *** [modules] Error 2<br>make: Leaving directory `/usr/src/dahdi-linux-2.6.2'<br>'make -C dahdi-linux-2.6.2 install' failed with 512.<br><br><br><div><div><div>-- <br>David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>
USA: +1 213 221 1092<br>UK: +44 (0) 20 3298 1642<br>Australia: +61 (0) 2 8063 9019<br>
</div></div></div></div>