TRY THIS Installing Sangoma Wanpipe driver

Saptarshi

New Member
Joined
Jun 19, 2013
Messages
5
Reaction score
1
I have installed the
Incredible PBX 12.0.70 on Ubuntu 14.04.2 and want to use it with a Sangoma A200 which has 4 FXO ports. I want to use it as an analog IVR system that can route calls from one FXO to another. After the installation, I'm trying to install the Sangoma wanpipe drivers, but I get the following error during the compiling process:

WANPIPE DRIVER COMPILE LOG
Fri Jul 24 14:31:15 BTT 2015
-----------------------------------
make -C /lib/modules/3.16.0-44-generic/build SUBDIRS=/root/wanpipe-7.0.14/kdrvtmp CC=gcc KBUILD_VERBOSE=1 modules
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-44-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /root/wanpipe-7.0.14/kdrvtmp/.tmp_versions ; rm -f /root/wanpipe-7.0.14/kdrvtmp/.tmp_versions/*
make -f scripts/Makefile.build obj=/root/wanpipe-7.0.14/kdrvtmp
gcc -Wp,-MD,/root/wanpipe-7.0.14/kdrvtmp/.sdladrv_src.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -D__LINUX__ -DCONFIG_PRODUCT_WANPIPE_BASE -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_DCHAN -DDAHDI_210 -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_DCHAN_ZAPTEL -DDAHDI_ISSUES -DCONFIG_PRODUCT_WANPIPE_AFT -DCONFIG_PRODUCT_WANPIPE_AFT_CORE -DCONFIG_PRODUCT_WANPIPE_AFT_TE1 -DCONFIG_PRODUCT_WANPIPE_AFT_56K -DCONFIG_PRODUCT_WANPIPE_AFT_RM -DCONFIG_PRODUCT_WANPIPE_CODEC_SLINEAR_LAW -DCONFIG_PRODUCT_WANPIPE_AFT_BRI -DCONFIG_PRODUCT_WANPIPE_AFT_SERIAL -DCONFIG_PRODUCT_WANPIPE_AFT_A600 -DCONFIG_PRODUCT_WANPIPE_AFT_B601 -DCONFIG_PRODUCT_WANPIPE_AFT_B800 -DCONFIG_PRODUCT_WANPIPE_AFT_A700 -DCONFIG_PRODUCT_WANPIPE_USB -DWANPIPE_USE_I_PRIVATE -DKERN_PROC_PDE_FEATURE=1 -DKERN_SK_FOR_NODE_FEATURE=0 -DCONFIG_WANPIPE_HWEC -I//usr/include/wanpipe -I/usr/include/wanpipe/oct6100_api -I/usr/include/wanpipe/oct6100_api/include -I/usr/include/wanpipe/oct6100_api/include/oct6100api -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(sdladrv_src)" -D"KBUILD_MODNAME=KBUILD_STR(sdladrv)" -c -o /root/wanpipe-7.0.14/kdrvtmp/.tmp_sdladrv_src.o /root/wanpipe-7.0.14/kdrvtmp/sdladrv_src.c
/root/wanpipe-7.0.14/kdrvtmp/sdladrv_src.c: In function ‘sdla_hw_bridge_probe’:
/root/wanpipe-7.0.14/kdrvtmp/sdladrv_src.c:3946:3: error: implicit declaration of function ‘pci_bus_b’ [-Werror=implicit-function-declaration]
bus = pci_bus_b(pci_dev->bus->children.next);
^
/root/wanpipe-7.0.14/kdrvtmp/sdladrv_src.c:3946:7: warning: assignment makes pointer from integer without a cast [enabled by default]
bus = pci_bus_b(pci_dev->bus->children.next);
^
/root/wanpipe-7.0.14/kdrvtmp/sdladrv_src.c:3955:7: warning: assignment makes pointer from integer without a cast [enabled by default]
bus = pci_bus_b(pci_dev->bus->children.prev);
^
cc1: some warnings being treated as errors
make[2]: *** [/root/wanpipe-7.0.14/kdrvtmp/sdladrv_src.o] Error 1
make[1]: *** [_module_/root/wanpipe-7.0.14/kdrvtmp] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-44-generic'
make: *** [all] Error 2

Any quick help would be sincerely appreciated... I am assuming there is a version problem with the DADHI provided by IncrediblePBX and what the wanpipe driver is looking for?
 

atsak

Guru
Joined
Sep 7, 2009
Messages
2,385
Reaction score
439
No, it's probably a problem with the OS kernel the wanpipe driver is looking for. Switch to CentOS or contact Sangoma to update their code. I've run into this a couple times now over the years.
 

Saptarshi

New Member
Joined
Jun 19, 2013
Messages
5
Reaction score
1
Thanks... Works fine with CentOS. Sad that Sangoma wanpipe drivers don't work with Ubuntu 14.04.2
 

Members online

Forum statistics

Threads
25,809
Messages
167,750
Members
19,239
Latest member
cajeptha
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top