Open yves84 opened 2 years ago
Same error under Debian 11 (bullseye) with Kernel 5.10.0-16-amd
Same issue on Ubuntu 22.04.1 LTS on Raspberry Pi (arm64) Linux dattobd 5.15.0-1012-raspi #14-Ubuntu SMP PREEMPT Fri Jun 24 13:10:28 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@dattobd:/tmp/dattobd/src$ uname -a
Linux dattobd 5.15.0-1012-raspi #14-Ubuntu SMP PREEMPT Fri Jun 24 13:10:28 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@dattobd:/tmp/dattobd/src$ sudo make
[...]
performing printk lookup
make -C /lib/modules/5.15.0-1012-raspi/build M=/tmp/dattobd/src modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-1012-raspi'
CC [M] /tmp/dattobd/src/bio_helper.o
In file included from /tmp/dattobd/src/bio_helper.c:11:
/tmp/dattobd/src/snap_device.h:36:9: error: unknown type name ‘make_request_fn’
36 | make_request_fn *sd_orig_mrf; // block device's original make request
| ^~~~~~~~~~~~~~~
/tmp/dattobd/src/bio_helper.c: In function ‘bio_make_read_clone’:
/tmp/dattobd/src/bio_helper.c:671:26: error: ‘BIO_MAX_PAGES’ undeclared (first use in this function); did you mean ‘BIO_MAX_VECS’?
671 | (pages > BIO_MAX_PAGES) ? BIO_MAX_PAGES : pages;
| ^~~~~~~~~~~~~
| BIO_MAX_VECS
/tmp/dattobd/src/bio_helper.c:671:26: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:285: /tmp/dattobd/src/bio_helper.o] Error 1
make[1]: *** [Makefile:1875: /tmp/dattobd/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-1012-raspi'
make: *** [Makefile:17: default] Error 2
Got an error if try to compile from git:
Same as here -> https://github.com/datto/dattobd/pull/229 ?
ty