Realport Complile error Ubuntu 18.04 (kernel 4.15.0-20)

Bombs out when trying to build dgrp_net_ops.c

make[1]: Entering directory ‘/home/user/dgrp-1.9/driver/2.6.27’
make -C /lib/modules/4.15.0-20-generic/build SUBDIRS=$PWD modules MYPWD=/home/user/dgrp-1.9/driver/2.6.27 MYMANDIR=/usr/share/man
make[2]: Entering directory ‘/usr/src/linux-headers-4.15.0-20-generic’
CC [M] /home/user/dgrp-1.9/driver/build/dgrp_net_ops.o
/home/user/dgrp-1.9/driver/build/dgrp_net_ops.c:94:51: error: initialization from
incompatible pointer type [-Werror=incompatible-pointer-types]
static struct timer_list poll_timer = { function: poll_handler };
/home/user/dgrp-1.9/driver/build/dgrp_net_ops.c:94:51: note: (near initialization
for poll_timer.function)
/home/user/dgrp-1.9/driver/build/dgrp_net_ops.c: In function register_net_device:
/home/user/dgrp-1.9/driver/build/dgrp_net_ops.c:180:3: error: implicit declaration of function init_timer; did you mean init_timers? [-Werror=implicit-function-declaration]
/home/user/dgrp-1.9/driver/build/dgrp_net_ops.c: In function poll_start_timer:
/home/user/dgrp-1.9/driver/build/dgrp_net_ops.c:4939:22: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
poll_timer.function = poll_handler;
cc1: some warnings being treated as errors
scripts/ recipe for target '/home/user/dgrp-1.9/driver/build/d
make[3]: *** [/home/user/dgrp-1.9/driver/build/dgrp_net_ops.o] Error 1
Makefile:1552: recipe for target ‘module/home/user/dgrp-1.9/driver/build’ faild
make[2]: *** [module/home/user/dgrp-1.9/driver/build] Error 2
make[2]: Leaving directory ‘/usr/src/linux-headers-4.15.0-20-generic’
Makefile:68: recipe for target ‘build’ failed
make[1]: *** [build] Error 2
make[1]: Leaving directory ‘/home/user/dgrp-1.9/driver/2.6.27’
Makefile:59: recipe for target ‘build’ failed
make: *** [build] Error 2

Anyone have any suggestions on if its possible to make a small change to fix?

See my patches on the Arch Linux AUR.

1 Like


We have the same problem on an ubuntu 18.04 server (Linux S18028 4.15.0-22-generic)

I don’t really understand how to use the patch, can you just send us some explaination ti use it and solved the problem, many thanks for your help.

Best regards,

Email tech support and see if they will send you the newest Beta RealPort driver. I have it working on 18.04 myself.

I was able to configure and make using these lines.

apt remove libssl-dev; apt autoremove
apt install build-essential libncurses5-dev libssl1.0-dev

wget ‘
tar -xzf 81000137_Y.tgz
cd dgrp-1.9
wget -O ‘0000-Kernel-4-13-CLASS_ATTR_STRING.patch’ ‘
patch -Nup1 -i ‘0000-Kernel-4-13-CLASS_ATTR_STRING.patch’

wget -O ‘0001-Kernel-4-15-timers.patch’ ‘
patch -Nup1 -i ‘0001-Kernel-4-15-timers.patch’

1 Like

One can email tech support and ask for the newest beta driver. I have it working on Fedora 28 and Ubuntu 18.04

I had the same problem. I updated the driver
to support Ubuntu 18.04. You can get my updated
version here: