Dahdi installation with centos8

I am using Red Hat Enterprise Linux release 8.2 (Ootpa) for dahdi dahdi-linux-complete-3.1.0+3.1.0 installation.
but getting kernal issues, kernal version is 4.18.0-193.el8.x86_64

Is RHEL 8 supports dahdi digium sangoma cards ?

[root@ip-172-31-4-50 dahdi-linux-complete-3.1.0+3.1.0]# make all
make -C linux all
make[1]: Entering directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 4.18.0-193.el8.x86_64 kernel installed.
make[1]: *** [Makefile:72: modules] Error 1
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux'
make: *** [Makefile:9: all] Error 2

The running kernel doesn’t match the version of the kernel development package you have installed. Either change the former to match the latter, or install the matching development package version.

installed kernel-devel same version as uname -r

[root@ip-172-31-4-50 dahdi-linux-complete-3.1.0+3.1.0]# make all
make -C linux all
make[1]: Entering directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware'
make -C /lib/modules/4.18.0-193.el8.x86_64/build KBUILD_EXTMOD=/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory '/usr/src/kernels/4.18.0-193.el8.x86_64'
arch/x86/Makefile:184: *** Compiler lacks asm-goto support..  Stop.
make[2]: Leaving directory '/usr/src/kernels/4.18.0-193.el8.x86_64'
make[1]: *** [Makefile:74: modules] Error 2
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux'
make: *** [Makefile:9: all] Error 2
[root@ip-172-31-4-50 dahdi-linux-complete-3.1.0+3.1.0]# rpm -qa | grep ker
kernel-tools-4.18.0-193.el8.x86_64
kernel-4.18.0-193.el8.x86_64
kernel-core-4.18.0-193.el8.x86_64
kernel-tools-libs-4.18.0-193.el8.x86_64
kernel-modules-4.18.0-193.el8.x86_64
kernel-devel-4.18.0-193.el8.x86_64

Not something that has affected me, but there is information on the problem in https://news.ycombinator.com/item?id=21018901

It needs more further research than I have time for to discover the full implications.

NB this is is a Linux issue, not a Dahdi one: your development tools are unable to build the Linux kernel, or part thereof.

dahdi and libpri installed sucesfully,
I was missing yum groupinstall "Developmen Tools"

But getting issues while install wanpipe-7.0.20 for Sangoma A200/Remora FXO/FXS Analog AFT card

uname -r = 4.18.0-193.6.3.el8_2.x86_64

Looking for zaptel/dahdi directory in /usr/src ...
-------------------------------------------
1 : /usr/src/zaptel 
------------------------------------------ 
2 : /usr/src/zaptel    (entered manually) 
------------------------------------------ 
m : Enter zaptel path manually

(ctrl-c to Exit)
Please select working zaptel directory [1-2][m]: 1

Enabling the TDM Voice Asterisk Support
                                                      
Dahdi HW HDLC Support Detected: Enabling DCHAN Feature
Native Dahdi HW HDLC Support Detected - No patch required
Dahdi source unmodified
                        
Checking for UDEV Zaptel compatibility...     Dahdi installed, no need to add UDEV rules
Enabling the AFT TE1 Support

Checking for SMP support ...Enabled.

Checking current processor type ...x86_64

Checking fo regparm: Disabled


--------------------------------------------------
CFLAGS: gcc -Wp,-MD,.wanpipe.o.d -nostdinc -iwithprefix include -D__LINUX__ -Dlinux -D__KERNEL__ -I/usr/include/wanpipe -I/lib/modules/4.18.0-193.6.3.el8_2.x86_64/build/include  -DMODULE  make: Entering directory '/usr/src/kernels/4.18.0-193.6.3.el8_2.x86_64'
make: Leaving directory '/usr/src/kernels/4.18.0-193.6.3.el8_2.x86_64'
--------------------------------------------------

Compiling General WANPIPE Driver for 3.X.X Kernel .
---------------------------------------------


WANPIPE DRIVER COMPILE LOG
Thu Aug 13 12:11:22 UTC 2020
-----------------------------------
make -C /lib/modules/4.18.0-193.6.3.el8_2.x86_64/build SUBDIRS=/AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp CC=gcc KBUILD_VERBOSE=1 modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-193.6.3.el8_2.x86_64'
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 /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/.tmp_versions ; rm -f /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp
(cat /dev/null;   echo kernel//AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/sdladrv.ko;) > /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/modules.order
  gcc -Wp,-MD,/AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/.sdladrv_src.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated   -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -D__LINUX__ -DCONFIG_PRODUCT_WANPIPE_BASE -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_DCHAN -DDAHDI_30 -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  -DKBUILD_BASENAME='"sdladrv_src"' -DKBUILD_MODNAME='"sdladrv"' -c -o /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/.tmp_sdladrv_src.o /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/sdladrv_src.c
In file included from /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/sdladrv_src.c:128:
//usr/include/wanpipe/wanpipe_common.h: In function ‘wan_init_timer’:
//usr/include/wanpipe/wanpipe_common.h:1053:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
  init_timer(&wan_timer->timer_info);
  ^~~~~~~~~~
  init_timers
//usr/include/wanpipe/wanpipe_common.h:1054:33: error: assignment to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘wan_timer_func_t’ {aka ‘void (*)(long unsigned int)’} [-Werror=incompatible-pointer-types]
  wan_timer->timer_info.function = timer_func;
                                 ^
//usr/include/wanpipe/wanpipe_common.h:1055:23: error: ‘wan_timer_info_t’ {aka ‘struct timer_list’} has no member named ‘data’
  wan_timer->timer_info.data = arg;
                       ^
//usr/include/wanpipe/wanpipe_common.h: In function ‘wan_netif_set_ticks’:
//usr/include/wanpipe/wanpipe_common.h:2646:7: error: ‘struct net_device’ has no member named ‘trans_start’; did you mean ‘mem_start’?
  dev->trans_start = ticks;
       ^~~~~~~~~~~
       mem_start
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:313: /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp/sdladrv_src.o] Error 1
make[1]: *** [Makefile:1545: _module_/AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20/kdrvtmp] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-193.6.3.el8_2.x86_64'
make: *** [Makefile:33: all] Error 2

---------------------------------------------

BOX-CentOS8 /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20> 


BOX-CentOS8 /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20> rpm -qa | grep kernel
kernel-devel-4.18.0-80.el8.x86_64
kernel-debug-devel-4.18.0-193.6.3.el8_2.x86_64
kernel-headers-4.18.0-193.6.3.el8_2.x86_64
kernel-modules-4.18.0-80.el8.x86_64
kernel-tools-4.18.0-193.6.3.el8_2.x86_64
kernel-devel-4.18.0-193.6.3.el8_2.x86_64
kernel-core-4.18.0-80.el8.x86_64
kernel-tools-libs-4.18.0-193.6.3.el8_2.x86_64
kernel-debug-devel-4.18.0-80.el8.x86_64
kernel-4.18.0-80.el8.x86_64
kernel-4.18.0-193.6.3.el8_2.x86_64
kernel-modules-4.18.0-193.6.3.el8_2.x86_64
kernel-core-4.18.0-193.6.3.el8_2.x86_64
BOX-CentOS8 /AavazBox-Install-COS6.8/build/asterisk/wanpipe-7.0.20> uname -r
4.18.0-193.6.3.el8_2.x86_64

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.