# Realport Complile error Ubuntu 18.04 (kernel 4.15.0-20)

**URL:** <https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604>\
**Category:** Realport\
**Tags:** kernel, build, realport\
**Created:** [June 12, 2018, 3:19pm UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604 "2018-06-12T15:19:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmoncho](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@pmoncho](https://forums.digi.com/u/pmoncho)\
**Post date:** [June 12, 2018, 3:19pm UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604/1 "2018-06-12T15:19:33Z")

</div>

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]  
init\_timer(&poll\_timer);  
^ ~~~~~~~~~  
init\_timers  
/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  
user@server:~/

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

---

<div class="post-metadata">

**Author:** ![severach](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@severach](https://forums.digi.com/u/severach)\
**Post date:** [June 26, 2018, 1:15pm UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604/2 "2018-06-26T13:15:50Z")

</div>

[https://aur.archlinux.org/packages/dgrp/](https://aur.archlinux.org/packages/dgrp/)

See my patches on the Arch Linux AUR.

---

<div class="post-metadata">

**Author:** ![fmousnier](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fmousnier](https://forums.digi.com/u/fmousnier)\
**Post date:** [July 24, 2018, 10:32am UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604/3 "2018-07-24T10:32:38Z")

</div>

Hi,

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,

---

<div class="post-metadata">

**Author:** ![pmoncho](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@pmoncho](https://forums.digi.com/u/pmoncho)\
**Post date:** [August 1, 2018, 12:10pm UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604/4 "2018-08-01T12:10:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![severach](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@severach](https://forums.digi.com/u/severach)\
**Post date:** [August 7, 2018, 7:32am UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604/5 "2018-08-07T07:32:24Z")

</div>

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](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](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](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’

---

<div class="post-metadata">

**Author:** ![pmoncho](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@pmoncho](https://forums.digi.com/u/pmoncho)\
**Post date:** [August 7, 2018, 3:50pm UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604/6 "2018-08-07T15:50:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![digi\_dev](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@digi\_dev](https://forums.digi.com/u/digi_dev)\
**Post date:** [January 28, 2019, 7:48am UTC](https://forums.digi.com/t/realport-complile-error-ubuntu-18-04-kernel-4-15-0-20/19604/7 "2019-01-28T07:48:50Z")

</div>

I had the same problem. I updated the driver  
to support Ubuntu 18.04. You can get my updated  
version here:  
[https://github.com/pvrfr/dgrp-1.9.1](https://github.com/pvrfr/dgrp-1.9.1)
