Dave Fullerton
2013-Jun-10 15:33 UTC
[asterisk-users] DAHDI-linux 2.7 compile error with CONFIG_DAHDI_NET enabled
Not sure how I should officially report this, 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 -Dave
Shaun Ruffell
2013-Jun-10 15:53 UTC
[asterisk-users] DAHDI-linux 2.7 compile error with CONFIG_DAHDI_NET enabled
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 2Thanks 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 -- 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