Realport driver 40002086_AC and RedHat 9.4 compile issue

Compiling Realport driver 40002086_AC on RedHat 9.4 reports an error with class_create in dgrp-1.9/driver/build/dgrp_sysfs.c. Redhat back ported a kernel 6.4 change to RHEL 9.4 ie kernel 5.14.

change:

if LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
dgrp_class = class_create(THIS_MODULE, “digi_realport”);
#else
dgrp_class = class_create(“digi_realport”);
#endif

To

if LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0)
dgrp_class = class_create(THIS_MODULE, “digi_realport”);
#else
dgrp_class = class_create(“digi_realport”);
#endif

With this change, driver compiles and runs.

-mick

We had exactly the same problem and solved it the same way…
It seems to work fine like this but because we don’t know enough about the consequnces of this fix, we decided to downgrade RHEL.
We don’t like the fact that we need to recompile the drivers everytime we upgrade RHEL; We are going to switch to using raw tcp sockets in combination with the linux ‘socat’ utility. This seems to work equaly as well and doesn’t require recompiling.

Hi ,

This issue has been reported to Digi.

We will address Red Hat 9.4 support in the next release of the Linux Realport driver release currently scheduled for September 24 time frame.

As stated in the driver release notes. The driver you are attempting to load was tested to version 9.3.