Home/Support/Support Forum/Realport Complile error Ubuntu 18.04 (kernel 4.15.0-20)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Realport Complile error Ubuntu 18.04 (kernel 4.15.0-20)

0 votes
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/Makefile.build:332: 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?
asked Jun 12 in Realport by pmoncho New to the Community (0 points)

Please log in or register to answer this question.

3 Answers

0 votes

See my patches on the Arch Linux AUR.
answered Jun 26 by severach New to the Community (4 points)
0 votes

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,
answered Jul 24 by fmousnier New to the Community (1 point)
Email tech support and see if they will send you the newest Beta RealPort driver.  I have it working on 18.04 myself.
0 votes
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 'http://ftp1.digi.com/support/driver/81000137_Y.tgz'
tar -xzf 81000137_Y.tgz
cd dgrp-1.9
wget -O '0000-Kernel-4-13-CLASS_ATTR_STRING.patch' 'https://aur.archlinux.org/cgit/aur.git/plain/0000-Kernel-4-13-CLASS_ATTR_STRING.patch?h=dgrp'
patch -Nup1 -i '0000-Kernel-4-13-CLASS_ATTR_STRING.patch'

wget -O '0001-Kernel-4-15-timers.patch' 'https://aur.archlinux.org/cgit/aur.git/plain/0001-Kernel-4-15-timers.patch?h=dgrp'
patch -Nup1 -i '0001-Kernel-4-15-timers.patch'
answered Aug 7 by severach New to the Community (4 points)
One can email tech support and ask for the newest beta driver. I have it working on Fedora 28 and Ubuntu 18.04
Contact a Digi expert and get started today! Contact Us