Unable to compile realPort in Alpine

I want to set up the RealPort driver on a docker image based on Alpine (actually the Node-Red image).

I have been following instructions in the doc found here:
https://hub.digi.com/dp/path=/support/asset/realport-driver-for-linux-ver-1-9-40-release-notes/

and inspired by https://www.digi.com/support/knowledge-base/how-to-install-the-realport-driver-in-ubuntu-linux

Whether I use RPM or installing the tar version of source, I get the same error (full output from rpmbuild after make all at the end of this message). There is no termio.h in the kernel source. It seems to be outdated and should be called termios.h.

See https://man7.org/linux/man-pages/man7/termio.7.html

What can be done? It seems you haven’t touched this package in 3 years. Can we hope for an update?

Note there is also a weird error saying “user pberger doesn’t exist”.

(cd driver/build; make all)
make[1]: Entering directory '/root/rpmbuild/BUILD/dgrp-1.9/driver/2.6.27'
#make -C /usr/src/linux-5.10.60.1-microsoft-standard-WSL2 SUBDIRS=$PWD modules MYPWD=/root/rpmbuild/BUILD/dgrp-1.9/driver/2.6.27 MYMANDIR=/usr/share/man
make -C /usr/src/linux-5.10.60.1-microsoft-standard-WSL2 M=$PWD modules MYPWD=/root/rpmbuild/BUILD/dgrp-1.9/driver/2.6.27 MYMANDIR=/usr/share/man
make[2]: Entering directory '/usr/src/linux-headers-5.4.174-0-lts'
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_common.o
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_dpa_ops.o
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_driver.o
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_mon_ops.o
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.o
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.c: In function 'dgrp_receive':
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.c:3620:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
 3620 |         if (req != OTYPE_IMMEDIATE) {
      |            ^
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.c:3631:8: note: here
 3631 |        default:
      |        ^~~~~~~
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.c: In function 'parity_scan':
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.c:752:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
  752 |    ch->ch_pscan_state = 0 ;
      |    ~~~~~~~~~~~~~~~~~~~^~~
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.c:754:3: note: here
  754 |   case 0:
      |   ^~~~
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_ports_ops.o
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_proc.o
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_specproc.o
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_tty.o
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_tty.c: In function 'dgrp_tty_ioctl':
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_tty.c:3674:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 3674 |   if (cmd == DIGI_SETAF) {
      |      ^
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_tty.c:3689:2: note: here
 3689 |  case DIGI_SETA:
      |  ^~~~
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_sysfs.o
  LD [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp.mod.o
  LD [M]  /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.4.174-0-lts'
make[1]: Leaving directory '/root/rpmbuild/BUILD/dgrp-1.9/driver/2.6.27'
(cd ditty; make all)
make[1]: Entering directory '/root/rpmbuild/BUILD/dgrp-1.9/ditty'
gcc -DDIGI_VERSION=\""1.9-40_AA"\" -O2 -fPIC -o ditty -O -D_DGRP_ -I../commoninc  ditty.c -lncurses 
ditty.c:41:10: fatal error: termio.h: No such file or directory
   41 | #include 
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:40: ditty] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/dgrp-1.9/ditty'
make: *** [Makefile:60: build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.bBDBME (%build)


RPM build errors:
    user pberger does not exist - using root
    group pberger does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.bBDBME (%build)