NoMachine Support

Your questions answered

Knowledge Base

Searching in: Trouble Reports
Filter the search results
Last update:
Searching in: Trouble Reports
ID: TR09Q09408
Added on: 2019-09-20
Last update: 2019-12-17
Solved in: 6.9.2
Platform: All Linux Platforms
Product: NoMachine Device Services
Severity: Minor
Status: Closed
Cannot build NoMachine USB module on Linux Kernel v. 5

Compiling the NoMachine nxusb module fails with similar output to:

make -C /lib/modules/5.0.0-27-generic/build M=/usr/NX/share/src/nxusb
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-27-generic'
  CC [M]  /usr/NX/share/src/nxusb/nxusb-vhci-hcd.o
  CC [M]  /usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o
In file included from ./include/linux/uaccess.h:11,
                 from ./include/linux/poll.h:12,
                 from /usr/NX/share/src/nxusb/nxusb-vhci-iocifc.c:53:
/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.c: In function ‘ioc_register’:
./arch/x86/include/asm/uaccess.h:435:29: error: invalid initializer
  _typeof__(ptr) _pu_ptr = (ptr);  
./arch/x86/include/asm/uaccess.h:553:2: note: in expansion of macro ‘__put_user_nocheck’
  __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.c:238:3: note: in expansion of macro ‘__put_user’
   __put_user('�', arg->bus_id);
make[2]: *** [scripts/ /usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o] Error 1
make[1]: *** [Makefile:1606: _module_/usr/NX/share/src/nxusb] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-27-generic'
make: *** [Makefile:8: all] Error 2.