dahdi-linux
dahdi-linux copied to clipboard
Can't compile under fedora with 6.3.4 kernel
CC [M] /usr/src/phones/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.o
/usr/src/phones/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.c:467:19: error: initialization of Ç int (*)(const struct device *, struct kobj_uevent_env *) Ç from incompatible pointer type Ç int (*)(struct device *, struct kobj_uevent_env *)
Ç [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;]
467 | .uevent = astribank_uevent,
| ^~~~~~~~~~~~~~~~
What is the bitness of your system (32/64-bit)? Does it work if you compile using PhreakScript? https://github.com/InterLinked1/phreakscript
64 bit No, I didn't. I maintained a working source until now, but I can't find the definition to correct it.
@jlnhab This could be due to https://github.com/torvalds/linux/commit/2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6. Can you please try my patch at #21.
Basically, struct bus_type.uevent() now takes a const *.
I applied it and I still have errors. Thanks for your help.
I applied it and I still have errors. Thanks for your help.
Is this still an issue for you? I just tested with Fedora 40 using kernel 6.8.5, and I don't run into this build issue.
The fix that listout pointed out was also merged in https://github.com/asterisk/dahdi-linux/commit/d7bbc8a96fe767bc4eee15dd43170f298282a4c3