Cannot compile manually nxusb.ko on Ubuntu 18.04

Forums / NoMachine for Linux / Cannot compile manually nxusb.ko on Ubuntu 18.04

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by Avatar hogaeng 6 days, 20 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24338
    Avatar
    hogaeng
    Participant

    I remote I want to use remote usb service, but there is no usb devices.
    I found why there is no devices. My computer failed compile nxusb.ko.

    $ cat /usr/NX/var/log/nxinstall.log | grep -i usb
    NX> 700 Running: /bin/chown root:root ‘/usr/NX/scripts/restricted/nxusb.sh’.
    NX> 700 Running: /bin/chmod 744 ‘/usr/NX/scripts/restricted/nxusb.sh’.
    NX> 700 Running: /bin/chmod u+s ‘/usr/NX/scripts/restricted/nxusb.sh’.
    NX> 700 Compiling the USB module.
    NX> 700 Running: /bin/rm -f ‘/usr/NX/bin/nxusbd-legacy’.
    NX> 700 Running: /bin/rm -f ‘/usr/NX/lib/libnxusb-legacy.so’.
    NX> 700 Cannot compile USB module.

    I try to compile it manually, but I got this error.

    /usr/NX/share/src/nxusb $ make -f Makefile
    make -C /lib/modules/5.0.0-32-generic/build M=/usr/NX/share/src/nxusb
    make[1]: Entering directory ‘/usr/src/linux-headers-5.0.0-32-generic’
    CC [M]  /usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o
    In file included from ./include/linux/uaccess.h:11:0,
    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(‘\0’,arg->bus_id);
    ^~~~~~~~~~
    scripts/Makefile.build:284: recipe for target ‘/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o’ failed
    make[2]: *** [/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o] Error 1
    Makefile:1614: recipe for target ‘_module_/usr/NX/share/src/nxusb’ failed
    make[1]: *** [_module_/usr/NX/share/src/nxusb] Error 2
    make[1]: Leaving directory ‘/usr/src/linux-headers-5.0.0-32-generic’
    Makefile:8: recipe for target ‘all’ failed
    make: *** [all] Error 2

    Please help me.
    I’m using free version of NoMachine. My local computer is Ubuntu 18.04 and gcc version is 7.4. I’m connecting Windows10 and the other services work fine. Thank you.

    #24396
    Avatar
    Britgirl
    Keymaster

    Hi,

    Considering some changes in the latest kernel codes, it is necessary to apply a patch to build nxusb.ko on that version of the kernel. We can send it to you if you agree.

    One of the next releases of NoMachine will include this patch.

    #24430
    Avatar
    hogaeng
    Participant

    I’m glad to hear about the good news. Now this issue is no more necessary to me. I can wait stable version. Thank you for your support.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.