[asterisk-bugs] [JIRA] (DAHLIN-361) Dahdi: incompatible pointer type error while building on fedora

Keith Morgan (JIRA) noreply at issues.asterisk.org
Fri May 31 09:22:47 CDT 2019


     [ https://issues.asterisk.org/jira/browse/DAHLIN-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Keith Morgan closed DAHLIN-361.
-------------------------------

                  Resolution: Fixed
    Target Release Version/s: 3.1.0
                              3.0.0

> 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
>      Target Release: 3.0.0, 3.1.0
>
>
> 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