dahdi-linux icon indicating copy to clipboard operation
dahdi-linux copied to clipboard

Can't compile under fedora with 6.3.4 kernel

Open jlnhab opened this issue 1 year ago • 5 comments

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, | ^~~~~~~~~~~~~~~~

jlnhab avatar Jun 03 '23 10:06 jlnhab

What is the bitness of your system (32/64-bit)? Does it work if you compile using PhreakScript? https://github.com/InterLinked1/phreakscript

InterLinked1 avatar Jun 03 '23 11:06 InterLinked1

64 bit No, I didn't. I maintained a working source until now, but I can't find the definition to correct it.

jlnhab avatar Jun 03 '23 11:06 jlnhab

@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 *.

listout avatar Jun 22 '23 17:06 listout

I applied it and I still have errors. Thanks for your help.

jlnhab avatar Jun 22 '23 20:06 jlnhab

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

InterLinked1 avatar Sep 18 '24 01:09 InterLinked1