$ sudo prt-get -fr depinst bbswitch prt-get: installing /usr/ports/contrib/bbswitch =======> Building '/usr/ports/contrib/bbswitch/bbswitch#0.8-1.pkg.tar.gz'. bsdtar -p -o -C /usr/ports/contrib/bbswitch/work/src -xf /usr/ports/contrib/bbswitch/bbswitch-0.8.tar.gz + build + cd bbswitch-0.8 + make make -C /lib/modules/4.19.1/build M="$(pwd)" modules make[1]: Entering directory '/usr/src/linux-4.19.1' CC [M] /usr/ports/contrib/bbswitch/work/src/bbswitch-0.8/bbswitch.o /usr/ports/contrib/bbswitch/work/src/bbswitch-0.8/bbswitch.c: In function 'bbswitch_proc_write': /usr/ports/contrib/bbswitch/work/src/bbswitch-0.8/bbswitch.c:317:9: error: implicit declaration of function 'copy_from_user'; did you mean 'raw_copy_from_user'? [-Werror=implicit-function-declaration] if (copy_from_user(cmd, buff, len)) ^~~~~~~~~~~~~~ raw_copy_from_user cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:312: /usr/ports/contrib/bbswitch/work/src/bbswitch-0.8/bbswitch.o] Error 1 make[1]: *** [Makefile:1517: _module_/usr/ports/contrib/bbswitch/work/src/bbswitch-0.8] Error 2 make[1]: Leaving directory '/usr/src/linux-4.19.1' make: *** [Makefile:13: default] Error 2 =======> ERROR: Building '/usr/ports/contrib/bbswitch/bbswitch#0.8-1.pkg.tar.gz' failed. prt-get: error while install -- Packages where install failed bbswitch