Cannot compile manually nxusb.ko on Ubuntu 18.04

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

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24338
    Avatarhogaeng
    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
    AvatarBritgirl
    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
    Avatarhogaeng
    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.

    #24916
    Avatarmeowsqueak
    Participant

    I would be interested in trying this patch, please. I have the exact same problem, Ubuntu 18.04, NoMachine 6.8.1.

    #24928
    AvatarBritgirl
    Keymaster

    Please update to the latest version release a couple of days ago. It contains the patch. Full announcement here: https://www.nomachine.com/SU12Q00208

    #24933
    Avatarmeowsqueak
    Participant

    Ah, I hadn’t noticed the release of 6.9.2 – that seems to work for me. Thank you.

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

This topic was marked as solved, you can't post.