[asterisk-users] dahdi-linux 2.6.2 failing to compile with linux 3.13

Shaun Ruffell sruffell at digium.com
Fri Jun 13 09:33:24 CDT 2014


On Fri, Jun 13, 2014 at 12:54:14PM +1000, David Cunningham wrote:
> Hello,
> 
> I'm getting the following errors when compiling dahdi-linux 2.6.2 under
> Ubuntu 14.04 with kernel 3.13.0-24-generic.
> 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.
> Would anyone know how to make it compile? Thanks in advance.
> 
> 
> make[1]: Leaving directory
> `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
> 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
> make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
>   CC [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:91:2: warning:
> #warning "No CONFIG_BKL is an experimental configuration." [-Wcpp]
>  #warning "No CONFIG_BKL is an experimental configuration."
>   ^
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
> ‘dahdi_proc_open’:
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:2: error:
> implicit declaration of function ‘PDE’
> [-Werror=implicit-function-declaration]
>   return single_open(file, dahdi_seq_show, PDE(inode)->data);
>   ^
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:53: error:
> invalid type argument of ‘->’ (have ‘int’)
>   return single_open(file, dahdi_seq_show, PDE(inode)->data);
>                                                      ^
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
> ‘_dahdi_assign_span’:
> /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]
>    span->proc_entry = create_proc_entry(tempfile, 0444,
>    ^
> /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]
>    span->proc_entry = create_proc_entry(tempfile, 0444,
>                     ^
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6952:19: error:
> dereferencing pointer to incomplete type
>    span->proc_entry->data = (void *)(long)span->spanno;
>                    ^
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6953:19: error:
> dereferencing pointer to incomplete type
>    span->proc_entry->proc_fops = &dahdi_proc_ops;
>                    ^
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
> ‘_dahdi_unassign_span’:
> /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:7137:37: error:
> dereferencing pointer to incomplete type
>    remove_proc_entry(span->proc_entry->name, root_proc_entry);
>                                      ^
> cc1: some warnings being treated as errors
> make[2]: *** [/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o] Error 1
> make[1]: *** [_module_/usr/src/dahdi-linux-2.6.2/drivers/dahdi] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
> make: *** [modules] Error 2
> make: Leaving directory `/usr/src/dahdi-linux-2.6.2'
> 'make -C dahdi-linux-2.6.2 install' failed with 512.

This was fixed in the DAHDI sources in "dahdi: Replace
create_proc_entry() with proc_create_data()" [1] 

You will need to update to at least dahdi-linux 2.8.0 if you would
like to run against kernels newer than 3.10.

[1] http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commit;h=84ccc65

-- 
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list