Dahdi: incompatible pointer type error while building on fedora

Hi, I’m trying to compile the latest version of dahdi-linux from git with an error involving pointer trouble:

git clone git://git.asterisk.org/dahdi/linux dahdi-linux && cd dahdi-linux && make install

make -C /lib/modules/4.16.12-200.fc27.x86_64/build SUBDIRS=/root/dahdi-linux/drivers/dahdi DAHDI_INCLUDE=/root/dahdi-linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/kernels/4.16.12-200.fc27.x86_64'
  CC [M]  /root/dahdi-linux/drivers/dahdi/dahdi-base.o
/root/dahdi-linux/drivers/dahdi/dahdi-base.c: In function ‘dahdi_ioctl_setconf’:
/root/dahdi-linux/drivers/dahdi/dahdi-base.c:5712:3: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
   memset(chan->conflast, 0, DAHDI_MAX_CHUNKSIZE);
   ^~~~~~
/root/dahdi-linux/drivers/dahdi/dahdi-base.c:5713:3: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
   memset(chan->conflast1, 0, DAHDI_MAX_CHUNKSIZE);
   ^~~~~~
/root/dahdi-linux/drivers/dahdi/dahdi-base.c:5714:3: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
   memset(chan->conflast2, 0, DAHDI_MAX_CHUNKSIZE);
   ^~~~~~
/root/dahdi-linux/drivers/dahdi/dahdi-base.c: In function ‘coretimer_init’:
/root/dahdi-linux/drivers/dahdi/dahdi-base.c:10153:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
  init_timer(&core_timer.timer);
  ^~~~~~~~~~
  init_timers
/root/dahdi-linux/drivers/dahdi/dahdi-base.c:10154:28: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  core_timer.timer.function = coretimer_func;
                            ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:325: /root/dahdi-linux/drivers/dahdi/dahdi-base.o] Error 1
make[1]: *** [Makefile:1565: _module_/root/dahdi-linux/drivers/dahdi] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.16.12-200.fc27.x86_64'
make: *** [Makefile:74: modules] Error 2

This is on fedora27 with kernel-4.16.12-200. This problem has been going on for months. I haven’t been able to update since 4.14. Has something changed in the way in which dahdi is installed?

Hi, I managed to get it to compile with the latest fedora kernels in spite of a ton of warnings with the two patches available here:

https://issues.asterisk.org/jira/browse/DAHLIN-359

Is anyone reading this? These patches were created in Feb but haven’t yet been incorporated into the latest git pull. Why would this be?