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]
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?
asked 5 days ago in Realport by pmoncho New to the Community (0 points)

Please log in or register to answer this question.

Contact a Digi expert and get started today! Contact Us
...