advligorts-gpstime-dkms package fails to configure on debian sid
servo:~ 0$ sudo apt install --no-install-recommends advligorts-gpstime-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
advligorts-gpstime-dkms is already the newest version (4.0.1-1).
advligorts-gpstime-dkms set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 210 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up advligorts-gpstime-dkms (4.0.1-1) ...
Removing old gpstime-4.0.1 DKMS files...
------------------------------
Deleting module version: 4.0.1
completely from the DKMS tree.
------------------------------
Done.
Loading new gpstime-4.0.1 DKMS files...
Building for 5.7.0-2-amd64
Building initial module for 5.7.0-2-amd64
Error! Bad return status for module build on kernel: 5.7.0-2-amd64 (x86_64)
Consult /var/lib/dkms/gpstime/4.0.1/build/make.log for more information.
dpkg: error processing package advligorts-gpstime-dkms (--configure):
installed advligorts-gpstime-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of advligorts-rcg:
advligorts-rcg depends on advligorts-gpstime-dkms; however:
Package advligorts-gpstime-dkms is not configured yet.
dpkg: error processing package advligorts-rcg (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
advligorts-gpstime-dkms
advligorts-rcg
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
servo:~ 100$ cat /var/lib/dkms/gpstime/4.0.1/build/make.log
DKMS make.log for gpstime-4.0.1 for kernel 5.7.0-2-amd64 (x86_64)
Mon 17 Aug 2020 08:43:56 AM PDT
make: Entering directory '/usr/src/linux-headers-5.7.0-2-amd64'
AR /var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/built-in.a
CC [M] /var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.o
In file included from /var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c:40:
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/../../include/drv/spectracomGPS.c: In function ‘spectracomGpsInitCheckSync’:
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/../../include/drv/spectracomGPS.c:43:29: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
43 | addr1 = (unsigned char*)ioremap_nocache( (unsigned long)pci_io_addr, 0x30 );
| ^~~~~~~~~~~~~~~
| ioremap_cache
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/../../include/drv/spectracomGPS.c:43:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
43 | addr1 = (unsigned char*)ioremap_nocache( (unsigned long)pci_io_addr, 0x30 );
| ^
In file included from /var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c:41:
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/../../include/drv/symmetricomGps.c: In function ‘symmetricomGpsInit’:
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/../../include/drv/symmetricomGps.c:24:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
24 | addr1 = (unsigned char*)ioremap_nocache( (unsigned long)pci_io_addr, 0x40 );
| ^
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/../../include/drv/symmetricomGps.c:34:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
34 | (unsigned char*)ioremap_nocache( (unsigned long)pci_io_addr, 0x200 );
| ^
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c: In function ‘get_cur_time’:
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c:115:25: error: storage size of ‘t’ isn’t known
115 | struct timespec t;
| ^
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c:117:13: error: invalid use of undefined type ‘struct timespec’
117 | t = current_kernel_time();
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c:115:25: warning: unused variable ‘t’ [-Wunused-variable]
115 | struct timespec t;
| ^
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c: In function ‘symmetricom_init’:
/var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c:334:75: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
334 | proc_gps_entry = proc_create("gps", PROC_MODE | S_IFREG | S_IRUGO, NULL, &gps_file_ops);
| ^~~~~~~~~~~~~
| |
| struct file_operations *
In file included from /var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.c:23:
/usr/src/linux-headers-5.7.0-2-common/include/linux/proc_fs.h:79:24: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’
79 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-5.7.0-2-common/scripts/Makefile.build:272: /var/lib/dkms/gpstime/4.0.1/build/drv/gpstime/gpstime.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.7.0-2-common/Makefile:1745: /var/lib/dkms/gpstime/4.0.1/build/drv/gpstime] Error 2
make: *** [/usr/src/linux-headers-5.7.0-2-common/Makefile:180: sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.7.0-2-amd64'
servo:~ 0$