asterisk / dahdi-linux

This is the official dahdi-linux repository. All issues and PR should be raised here.
GNU General Public License v2.0
47 stars 69 forks source link

Can't compile under fedora with 6.3.4 kernel #20

Open jlnhab opened 1 year ago

jlnhab commented 1 year ago

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

InterLinked1 commented 1 year ago

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

jlnhab commented 1 year ago

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

listout commented 1 year ago

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

jlnhab commented 1 year ago

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