[asterisk-bugs] [JIRA] (DAHLIN-354) DAHDI-Linux does not compile against kernel version 4.11
Sean Darcy (JIRA)
noreply at issues.asterisk.org
Tue Oct 10 17:25:21 CDT 2017
[ https://issues.asterisk.org/jira/browse/DAHLIN-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=239233#comment-239233 ]
Sean Darcy commented on DAHLIN-354:
-----------------------------------
On Fedora 26, kernel-4.13.4, using the github next.zip:
make[1]: Leaving directory '/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/firmware'
make -C /lib/modules/4.13.4-200.fc26.x86_64/build SUBDIRS=/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi DAHDI_INCLUDE=/home/asterisk/build/dahdi/github/dahdi-linux-next/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/kernels/4.13.4-200.fc26.x86_64'
CC [M] /home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-base.o
/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-base.c: In function ‘dahdi_ioctl_setconf’:
/home/asterisk/build/dahdi/github/dahdi-linux-next/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);
^~~~~~
/home/asterisk/build/dahdi/github/dahdi-linux-next/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);
^~~~~~
/home/asterisk/build/dahdi/github/dahdi-linux-next/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);
^~~~~~
CC [M] /home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.o
/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.c:273:3: error: ‘struct bus_type’ has no member named ‘dev_attrs’
.dev_attrs = span_dev_attrs,
^~~~~~~~~
/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.c:273:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.dev_attrs = span_dev_attrs,
^~~~~~~~~~~~~~
/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.c:273:15: note: (near initialization for ‘spans_bus_type.probe’)
/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.c:711:3: error: ‘struct bus_type’ has no member named ‘dev_attrs’
.dev_attrs = dahdi_device_attrs,
^~~~~~~~~
/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.c:711:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.dev_attrs = dahdi_device_attrs,
^~~~~~~~~~~~~~~~~~
/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.c:711:15: note: (near initialization for ‘dahdi_device_bus.probe’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: /home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi/dahdi-sysfs.o] Error 1
make[1]: *** [Makefile:1516: _module_/home/asterisk/build/dahdi/github/dahdi-linux-next/drivers/dahdi] Error 2
> DAHDI-Linux does not compile against kernel version 4.11
> --------------------------------------------------------
>
> Key: DAHLIN-354
> URL: https://issues.asterisk.org/jira/browse/DAHLIN-354
> Project: DAHDI-Linux
> Issue Type: Bug
> Security Level: None
> Reporter: Shaun Ruffell
> Assignee: Shaun Ruffell
> Attachments: 0001-signal_pending-is-now-in-linux-sched-signal.h-includ.patch, 0002-atomic_read-refcount_read.patch
>
>
> Reported to the asterisk-dev mailing list by [~seandarcy] here:
> http://lists.digium.com/pipermail/asterisk-dev/2017-June/076354.html
> Changes in the interface in Linux 4.11 breaks the DAHDI build.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list