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

Compile issue in alma/rocky 9.4

Open carpenox opened this issue 1 year ago • 5 comments

here is the error I am getting

/usr/src/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.c:472:19: error: initialization of ‘int (*)(const struct device *, struct kobj_uevent_env )’ from incompatible pointer type ‘int ()(struct device *, struct kobj_uevent_env *)’ [-Werror=incompatible-pointer-types] 472 | .uevent = astribank_uevent, | ^~~~~~~~~~~~~~~~ /usr/src/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.c:472:19: note: (near initialization for ‘toplevel_bus_type.uevent’) cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:299: /usr/src/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.o] Error 1 make[2]: *** [scripts/Makefile.build:585: /usr/src/dahdi-linux/drivers/dahdi/xpp] Error 2 make[1]: *** [Makefile:1934: /usr/src/dahdi-linux/drivers/dahdi] Error 2

carpenox avatar May 11 '24 14:05 carpenox

I have the same problem in rocky 9.4 with kernel 5.14.0-427.16.1

nicolasUL avatar May 14 '24 13:05 nicolasUL

grubby --default-kernel grubby --default-index grubby --info=ALL | egrep -i 'index|title' grubby --set-default /boot/vmlinuz-5.14.0-362.24.2.el9_3.x86_64 grubby --set-default-index=3

this seems to fix it

carpenox avatar May 21 '24 21:05 carpenox

On RHEL 9.4 I've used this to patch it while waiting for official update: https://community.asterisk.org/t/dahdi-on-alma-9-4/102370

ilko-t avatar May 22 '24 05:05 ilko-t

On RHEL 9.4 I've used this to patch it while waiting for official update: https://community.asterisk.org/t/dahdi-on-alma-9-4/102370

Yes this patch works.

Here are the changes in detail in Rocky 9.4 :

in linux/drivers/dahdi/xpp/xbus-sysfs.c line 72 : static int span_uevent(const struct device *dev, struct kobj_uevent_env *kenv) line 423 : static int astribank_uevent(const struct device *dev, struct kobj_uevent_env *kenv)

in /linux/drivers/dahdi/dahdi-sysfs-chan.c line 487 : remove THIS_MODULE, => dahdi_class = class_create("dahdi");

in /tools/dahdi_cfg.c line 145 : char attribute[1036];

nicolasUL avatar May 24 '24 08:05 nicolasUL

@push143smart This issue was resolved by https://github.com/asterisk/dahdi-linux/commit/d7bbc8a96fe767bc4eee15dd43170f298282a4c3 and can be closed.

InterLinked1 avatar Sep 19 '24 22:09 InterLinked1

Moving ahead and closing this issue as already resolved

push143smart avatar Jan 02 '25 06:01 push143smart