I thought I read somewhere that somebody got dahdi to compile on armhf. But I updated kernel and headers and get the following output(lots of errors complaining about ioctl:
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory ‘/usr/src/modules/asl-dahdi/drivers/dahdi/firmware’
make[1]: Leaving directory ‘/usr/src/modules/asl-dahdi/drivers/dahdi/firmware’
make -C /lib/modules/5.15.71-sunxi64/build M=/usr/src/modules/asl-dahdi/drivers/dahdi DAHDI_INCLUDE=/usr/src/modules/asl-dahdi/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory ‘/usr/src/linux-headers-5.15.71-sunxi64’
/usr/src/modules/asl-dahdi/drivers/dahdi/Kbuild:61: CPU Architecture ‘arm64’ does not support VPMADT032 or HPEC. Skipping.
- CC [M] /usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.o*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10313:3: error: ‘const struct file_operations’ has no member named ‘ioctl’
10313 | .ioctl = dahdi_ioctl, -
| ^~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10313:13: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
10313 | .ioctl = dahdi_ioctl,
-
| ^~~~~~~~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10313:13: note: (near initialization for ‘dahdi_fops’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10313:13: error: initialization of ‘int ()(struct file , loff_t, loff_t, int)’ {aka ‘int ()(struct file , long long int, long long int, int)’} from incompatible pointer type ‘int ()(struct inode *, struct file , unsigned int, long unsigned int)’ [-Werror=incompatible-pointer-types]
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10313:13: note: (near initialization for ‘dahdi_fops.fsync’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10329:3: error: ‘const struct file_operations’ has no member named ‘ioctl’
10329 | .ioctl = dahdi_timer_ioctl,
-
| ^~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10329:13: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
10329 | .ioctl = dahdi_timer_ioctl,
-
| ^~~~~~~~~~~~~~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10329:13: note: (near initialization for ‘dahdi_timer_fops’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10329:13: error: initialization of ‘int ()(struct file , loff_t, loff_t, int)’ {aka ‘int ()(struct file , long long int, long long int, int)’} from incompatible pointer type ‘int ()(struct inode *, struct file , unsigned int, long unsigned int)’ [-Werror=incompatible-pointer-types]
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10329:13: note: (near initialization for ‘dahdi_timer_fops.fsync’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10420:3: error: ‘const struct file_operations’ has no member named ‘ioctl’
10420 | .ioctl = nodev_ioctl,
-
| ^~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10420:13: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
10420 | .ioctl = nodev_ioctl,
-
| ^~~~~~~~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10420:13: note: (near initialization for ‘nodev_fops’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10420:13: error: initialization of ‘loff_t ()(struct file , loff_t, int)’ {aka ‘long long int ()(struct file , long long int, int)’} from incompatible pointer type ‘int ()(struct inode *, struct file , unsigned int, long unsigned int)’ [-Werror=incompatible-pointer-types]
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10420:13: note: (near initialization for ‘nodev_fops.llseek’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10437:3: error: ‘const struct file_operations’ has no member named ‘ioctl’
10437 | .ioctl = dahdi_ioctl,
-
| ^~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10437:13: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
10437 | .ioctl = dahdi_ioctl,
-
| ^~~~~~~~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10437:13: note: (near initialization for ‘dahdi_chan_fops’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10437:13: error: initialization of ‘int ()(struct file , loff_t, loff_t, int)’ {aka ‘int ()(struct file , long long int, long long int, int)’} from incompatible pointer type ‘int ()(struct inode *, struct file , unsigned int, long unsigned int)’ [-Werror=incompatible-pointer-types]
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:10437:13: note: (near initialization for ‘dahdi_chan_fops.fsync’)
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c: In function ‘__dahdi_hooksig_pvt’:
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:8513:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 8513 | if (chan->txstate != DAHDI_TXSTATE_OFFHOOK) break;*
-
| ^*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:8529:5: note: here
- 8529 | case DAHDI_SIG_FXSGS: /* FXS Groundstart /
-
| ^~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:8540:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 8540 | if (rxsig == DAHDI_RXSIG_START) {*
-
| ^*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:8548:5: note: here
- 8548 | case DAHDI_SIG_FXOLS: /* FXO Loopstart /
-
| ^~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c: In function ‘dahdi_rbsbits’:
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:8643:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 8643 | if (!(cursig & DAHDI_BBIT)) {*
-
| ^*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:8648:6: note: here
- 8648 | case DAHDI_SIG_EM_E1:*
-
| ^~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c: In function ‘__dahdi_process_getaudio_chunk’:
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:7959:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 7959 | memset(txb + 1, txb[0], DAHDI_CHUNKSIZE - 1);*
-
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:7961:3: note: here
- 7961 | case DAHDI_CONF_CONF: /* Normal conference mode /
-
| ^~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:7962:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 7962 | if (is_pseudo_chan(ms)) /* if pseudo-channel /
-
| ^*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:7990:3: note: here
- 7990 | case DAHDI_CONF_CONFMON: /* Conference monitor mode /
-
| ^~~~*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c: In function ‘__dahdi_process_putaudio_chunk’:
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:9080:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 9080 | if (is_pseudo_chan(ms)) /* if a pseudo-channel /
-
| ^*
/usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.c:9106:3: note: here
- 9106 | case DAHDI_CONF_CONFANN: /* Conference with announce /
-
| ^~~~*
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /usr/src/modules/asl-dahdi/drivers/dahdi/dahdi-base.o] Error 1
make[1]: *** [Makefile:1900: /usr/src/modules/asl-dahdi/drivers/dahdi] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.15.71-sunxi64’
make: *** [Makefile:74: modules] Error 2
GeorgeC W2DB