Knowledge Base
Searching in : Trouble report
ID:TR10V11232
Added on: 2024-10-21
Last Update: 2025-01-16
Solved in version: 8.15.3
Platform: All Linux Platforms
Product: NoMachine Device Services
Severity: Minor
Status: Solved
Print this article

The nxusb module doesn't compile on Kernel 6.11.3-200.fc40.x86_64

The nxusb module doesn't compile on Linux distributions with Kernel 6.11.3-200.fc40.x86_64 (e.g. Fedora 40). 
 
When trying to compile it by hand:
 
$ cd /usr/NX/share/src/nxusb/
$ sudo make 
 
the following error occurs: 
 
/usr/NX/share/src/nxusb/nxusb-vhci-hcd.c:1354:23: error: initialization of ‘void (*)(struct platform_device *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’
 
As a workaround, modify file  /usr/NX/share/src/nxusb/nxusb-vhci-hcd.c and replace line 1351:
remove     = vhci_hcd_remove,
 
with:      
remove     = (void *) vhci_hcd_remove,
 

SOLVED, Released in version 8.15.3