[asterisk-users] AsteriskNow updated to Centos 5.6 and DAHDI doesn't work

Shaun Ruffell sruffell at digium.com
Sun Apr 10 10:52:27 CDT 2011


On Sun, Apr 10, 2011 at 05:32:51PM +0200, bakko wrote:
> this diff solve the problem:
> 
> --- include/dahdi/kernel.h 2010-08-19 20:03:25.000000000 +0200
> +++ include/dahdi/kernel.h 2011-03-18 11:32:32.000000000 +0100
> @@ -86,7 +86,9 @@
>  #endif
>  
>  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
> -#define dev_name(dev)  (dev)->bus_id
> +#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(5,6)
> +#define dev_name(dev)         (dev)->bus_id
> +#endif
>  #define dev_set_name(dev, format, ...) \
>   snprintf((dev)->bus_id, BUS_ID_SIZE, format, ## __VA_ARGS__);
>  #endif
> 

There is a patch for this attached on issue 18992 [1] that should work
regardless of which distribution may have back ported the dev_name
definition.  It will apply cleanly to both 2.4 and the current trunk.
For example, to apply it on top of 2.4.1.1:
 
 ]# svn co http://svn.asterisk.org/svn/dahdi/linux/tags/2.4.1.1 dahdi-linux-2.4.1.1
 ]# cd dahdi-linux-2.4.1.1
 ]# wget 'https://issues.asterisk.org/file_download.phpfile_id=29097&type=bug' -O - | patch -p1

[1] https://issues.asterisk.org/view.php?id=18992

Cheers,
Shaun

-- 
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