[asterisk-users] DAHDI-linux 2.7 compile error with CONFIG_DAHDI_NET enabled
Dave Fullerton
dfullertasterisk at shorelinecontainer.com
Mon Jun 10 14:04:15 CDT 2013
On 06/10/2013 11:53 AM, Shaun Ruffell wrote:
> On Mon, Jun 10, 2013 at 11:33:16AM -0400, Dave Fullerton wrote:
>>
>> Not sure how I should officially report this...
>
> You should feel free to open issues at http://issues.asterisk.org.
>
>> but I'm getting a compile error with DAHDI-linux 2.7 when I define
>> CONFIG_DAHDI_NET in include/dahdi/dahdi_config.h. I am able to
>> compile successfully when I leave it undefined, but I need to be
>> able to use the network support.
>>
>> <snipped>
>> /oct6100_api/oct6100_tsst.o
>> AR /tmp/dahdi-linux-2.7.0-net/drivers/dahdi/oct612x/lib.a
>> Building modules, stage 2.
>> MODPOST 0 modules
>> make[1]: Leaving directory `/usr/src/linux-3.4.45'
>> make -C /lib/modules/3.4.45-smp/build
>> SUBDIRS=/tmp/dahdi-linux-2.7.0-net/drivers/dahdi
>> DAHDI_INCLUDE=/tmp/dahdi-linux-2.7.0-net/include
>> DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules
>> DAHDI_BUILD_ALL=m
>> make[1]: Entering directory `/usr/src/linux-3.4.45'
>> CC [M] /tmp/dahdi-linux-2.7.0-net/drivers/dahdi/dahdi-base.o
>> /tmp/dahdi-linux-2.7.0-net/drivers/dahdi/dahdi-base.c: In function
>> 'dahdi_net_open':
>> /tmp/dahdi-linux-2.7.0-net/drivers/dahdi/dahdi-base.c:1967:4: error:
>> 'struct dahdi_chan' has no member named 'rxbufpolicy'
>> make[2]: *** [/tmp/dahdi-linux-2.7.0-net/drivers/dahdi/dahdi-base.o] Error 1
>> make[1]: *** [_module_/tmp/dahdi-linux-2.7.0-net/drivers/dahdi] Error 2
>> make[1]: Leaving directory `/usr/src/linux-3.4.45'
>> make: *** [modules] Error 2
>
> Thanks for reporting this.
>
> I have a patch [1] for the next release. If you are willing, care to
> apply it to your 2.7.0 tree and check it out?
>
> If you are building from a tarball you can easily apply it like:
>
> $ curl "http://git.asterisk.org/gitweb/?p=team/sruffell/dahdi-linux.git;a=patch;h=e4d89ffa7485" | patch -p1
>
> [1] http://git.asterisk.org/gitweb/?p=team/sruffell/dahdi-linux.git;a=commitdiff;h=e4d89ffa7485
>
> Cheers,
> Shaun
>
Thank you Shaun, that patch did the trick. DAHDI compiled and appears to
be functioning normally.
I wondered if I might impose upon you for a question. I am in the
process of replacing an old router with a T1 interface with a Linux
machine. My test rig is currently using a spare TE220F. I know digium's
card were primarily designed to function in a telephony role, but is
there any technical reason I should not use them in an exclusively data
role as well? I am trying to decide if I should purchase another TE220F
(which I have experience with) or use a Sangoma product (which I do not).
Thank you for your time.
--
Dave
More information about the asterisk-users
mailing list