[asterisk-bugs] [JIRA] (DAHLIN-361) Dahdi: incompatible pointer type error while building on fedora
Alex Regan (JIRA)
noreply at issues.asterisk.org
Wed May 30 13:28:54 CDT 2018
Alex Regan created DAHLIN-361:
---------------------------------
Summary: Dahdi: incompatible pointer type error while building on fedora
Key: DAHLIN-361
URL: https://issues.asterisk.org/jira/browse/DAHLIN-361
Project: DAHDI-Linux
Issue Type: Bug
Security Level: None
Components: dahdi (the module)
Affects Versions: 2.10.0
Environment: Fedora 28
Reporter: Alex Regan
Assignee: Jean Galarneau
Compiling the current version in git results in an incompatible pointer type error. This problem has been occurring for months, with many different kernels, including the latest available.
make -C /lib/modules/4.16.12-300.fc28.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-300.fc28.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 to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-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-300.fc28.x86_64'
make: *** [Makefile:74: modules] Error 2
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list