RealPort Compile Error with Fedora 27 (Kernel 4.14.14)

I am compiling dgrp-1.9-38 and get the following errors:

[heliophysics@SolarPhysicsGSEii dgrp-1.9]$ make all
(cd driver/build; make all)
make[1]: Entering directory ‘/home/heliophysics/PortServer/dgrp-1.9/driver/2.6.27’
make -C /lib/modules/4.14.14-300.fc27.x86_64/build SUBDIRS=$PWD modules MYPWD=/home/heliophysics/Po
rtServer/dgrp-1.9/driver/2.6.27 MYMANDIR=/usr/share/man
make[2]: Entering directory ‘/usr/src/kernels/4.14.14-300.fc27.x86_64’
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_common.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_dpa_ops.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_driver.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_mon_ops.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_net_ops.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_ports_ops.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_proc.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_specproc.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_tty.o
CC [M] /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.o
/home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.c:71:35: error: expected ‘)’ before
numeric constant
static CLASS_ATTR(driver_version, 0400, dgrp_class_version_show, NULL);
^~~~
/home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.c: In function ‘dgrp_create_class_sy
sfs_files’:
/home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.c:191:39: error: ‘class_attr_driver_
version’ undeclared (first use in this function); did you mean ‘class_attribute_string’?
ret = class_create_file(dgrp_class, &class_attr_driver_version);
^~~~~~~~~~~~~~~~~~~~~~~~~
class_attribute_string
/home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.c:191:39: note: each undeclared iden
tifier is reported only once for each function it appears in
/home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.c: In function ‘dgrp_remove_class_sy
sfs_files’:
/home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.c:223:33: error: ‘class_attr_driver_
version’ undeclared (first use in this function); did you mean ‘class_attribute_string’?
class_remove_file(dgrp_class, &class_attr_driver_version);
^~~~~~~~~~~~~~~~~~~~~~~~~
class_attribute_string
At top level:
/home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_sysfs.c:64:16: warning: ‘dgrp_class_versio
n_show’ defined but not used [-Wunused-function]
static ssize_t dgrp_class_version_show(struct class *class, struct class_attribute *attr, char *bu
f)
^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:315: /home/heliophysics/PortServer/dgrp-1.9/driver/build/dgrp_
sysfs.o] Error 1
make[2]: *** [Makefile:1511: module/home/heliophysics/PortServer/dgrp-1.9/driver/build] Error 2
make[2]: Leaving directory ‘/usr/src/kernels/4.14.14-300.fc27.x86_64’
make[1]: *** [Makefile:68: build] Error 2
make[1]: Leaving directory ‘/home/heliophysics/PortServer/dgrp-1.9/driver/2.6.27’
make: *** [Makefile:59: build] Error 2
[heliophysics@SolarPhysicsGSEii dgrp-1.9]$

It looks like the same file as in derp-1.9-36 that I compiled under Fedora 24.

Thanks.

I finally figured it out. Somewhere around Linux kernel 4.13 CLASS_ATTR has gone away. I change it to use CLASS_ATTR_STRING implementation and it works.