[asterisk-users] openSuse 11.2 and dahdi-linux

Shaun Ruffell sruffell at digium.com
Fri Nov 13 13:42:09 CST 2009


On 11/13/2009 01:11 PM, Dave Cotton wrote:
> OK, I know it's only just out today but this is what I get when
> compiling dahdi-linux.
>
> make -C drivers/dahdi/firmware firmware-loaders
> make[1]: Entering directory
> `/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
> make[1]: Leaving directory
> `/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
> make -C /lib/modules/2.6.31.5-0.1-default/build
> SUBDIRS=/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi
> DAHDI_INCLUDE=/usr/src/dahdi-linux-2.2.0.2/include DAHDI_MODULES_EXTRA="
> " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
> make[1]: Entering directory `/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default'
> make -C ../../../linux-2.6.31.5-0.1
> O=/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default/. modules
>    CC [M]  /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.o
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c: In function
> ‘wctc4xxp_net_register’:
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:776: error:
> ‘struct net_device’ has no member named ‘set_multicast_list’
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:777: error:
> ‘struct net_device’ has no member named ‘open’
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:778: error:
> ‘struct net_device’ has no member named ‘stop’
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:779: error:
> ‘struct net_device’ has no member named ‘hard_start_xmit’
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:780: error:
> ‘struct net_device’ has no member named ‘get_stats’
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:781: error:
> ‘struct net_device’ has no member named ‘do_ioctl’
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c: In function
> ‘wctc4xxp_init_one’:
> /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:3460:
> warning: ‘DMA_nnBIT_MASK’ is deprecated
> make[5]: ***
> [/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.o] Error 1
> make[4]: *** [/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp] Error 2
> make[3]: *** [_module_/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi] Error 2
> make[2]: *** [sub-make] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default'
> make: *** [modules] Error 2
>
> But actually I only want dahdi dummy at the moment where could I modify
> the Makefile to just do this?

The easiest thing to do is comment out the following line in 
drivers/dahdi/Kbuild.

obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP)          += wctc4xxp/

Or you can grab the head of the 2.2 branch or trunk which has all the 
build issues for recent kernels resolved.  Hopefully soon there will be 
a 2.2.1 release but it takes some time to run through the regression tests.

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