<div dir="ltr">Thank you very much.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 June 2014 00:33, Shaun Ruffell <span dir="ltr"><<a href="mailto:sruffell@digium.com" target="_blank">sruffell@digium.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Jun 13, 2014 at 12:54:14PM +1000, David Cunningham wrote:<br>
> Hello,<br>
><br>
> I'm getting the following errors when compiling dahdi-linux 2.6.2 under<br>
> Ubuntu 14.04 with kernel 3.13.0-24-generic.<br>
> I did google and found one thread suggesting the errors should be fixed in<br>
> 2.6.2, and another suggesting to try 2.4 which didn't make sense but I<br>
> tried anyway, and it gave similar warnings.<br>
> Would anyone know how to make it compile? Thanks in advance.<br>
><br>
><br>
> make[1]: Leaving directory<br>
> `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'<br>
> make -C /lib/modules/3.13.0-24-generic/build<br>
> SUBDIRS=/usr/src/dahdi-linux-2.6.2/drivers/dahdi<br>
> DAHDI_INCLUDE=/usr/src/dahdi-linux-2.6.2/include DAHDI_MODULES_EXTRA=" "<br>
> 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:<br>
> #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<br>
> ‘dahdi_proc_open’:<br>
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:2: error:<br>
> implicit declaration of function ‘PDE’<br>
> [-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:<br>
> 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<br>
> ‘_dahdi_assign_span’:<br>
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:3: error:<br>
> implicit declaration of function ‘create_proc_entry’<br>
> [-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:<br>
> 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:<br>
> 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:<br>
> 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<br>
> ‘_dahdi_unassign_span’:<br>
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:7137:37: error:<br>
> 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>
</div></div>This was fixed in the DAHDI sources in "dahdi: Replace<br>
create_proc_entry() with proc_create_data()" [1]<br>
<br>
You will need to update to at least dahdi-linux 2.8.0 if you would<br>
like to run against kernels newer than 3.10.<br>
<br>
[1] <a href="http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commit;h=84ccc65" target="_blank">http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commit;h=84ccc65</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Shaun Ruffell<br>
Digium, Inc. | Linux Kernel Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><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></font></span></blockquote></div><br><br clear="all"><br>-- <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>