[asterisk-dev] dahdi 2.11.1 build fails with kernel 4.11.3
Shaun Ruffell
sruffell at digium.com
Thu Jun 1 11:39:51 CDT 2017
Sean,
On Thu, Jun 01, 2017 at 12:07:52PM -0400, sean darcy wrote:
> Building dahdi-2.11.1 using gcc-6.3.1 for kernel-4.11.3:
>
> ..............
> make[1]: Entering directory '/usr/src/kernels/4.11.3-200.fc25.x86_64'
> CC [M] /home/asterisk/rpmbuild/BUILD/dahdi-linux-2.11.1/drivers/dahdi/dahdi-base.o
> /home/asterisk/rpmbuild/BUILD/dahdi-linux-2.11.1/drivers/dahdi/dahdi-base.c:
> In function 'dahdi_ioctl_iomux':
> /home/asterisk/rpmbuild/BUILD/dahdi-linux-2.11.1/drivers/dahdi/dahdi-base.c:5954:7:
> error: implicit declaration of function 'signal_pending'
> [-Werror=implicit-function-declaration]
> if (signal_pending(current))
>
> For whatever reason signal_pending has been moved in 4.13.
> dahdi-base.o needs:
>
> #include <linux/sched/signal.h>
>
> But then:
>
> ................
> CC [M] /home/asterisk/rpmbuild/BUILD/dahdi-linux-2.11.1/drivers/dahdi/dahdi_dynamic.o
> /home/asterisk/rpmbuild/BUILD/dahdi-linux-2.11.1/drivers/dahdi/dahdi_dynamic.c:
> In function '_destroy_dynamic':
> /home/asterisk/rpmbuild/BUILD/dahdi-linux-2.11.1/drivers/dahdi/dahdi_dynamic.c:470:18:
> error: passing argument 1 of 'atomic_read' from incompatible pointer
> type [-Werror=incompatible-pointer-types]
> if (atomic_read(&d->kref.refcount) > 2) {
> ^
> In file included from ./arch/x86/include/asm/msr.h:66:0,
> from ./arch/x86/include/asm/processor.h:20,
> from ./arch/x86/include/asm/cpufeature.h:4,
> from ./arch/x86/include/asm/thread_info.h:52,
> from ./include/linux/thread_info.h:25,
> from ./arch/x86/include/asm/preempt.h:6,
> from ./include/linux/preempt.h:80,
> from ./include/linux/spinlock.h:50,
> from ./include/linux/seqlock.h:35,
> from ./include/linux/time.h:5,
> from ./include/linux/stat.h:18,
> from ./include/linux/module.h:10,
> from /home/asterisk/rpmbuild/BUILD/dahdi-linux-2.11.1/drivers/dahdi/dahdi_dynamic.c:27:
> ./arch/x86/include/asm/atomic.h:24:28: note: expected 'const
> atomic_t * {aka const struct <anonymous> *}' but argument is of type
> 'refcount_t * {aka struct refcount_struct *}'
> static __always_inline int atomic_read(const atomic_t *v)
>
> About which I have no clue.
I have been away from DAHDI for awhile now, but I'll post a patch
to https://issues.asterisk.org for you here in a few minutes.
--
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list