Sep 22nd, 2026, 9:17pm
Author |
Topic: Can't install a Linux client. (Read 5695 times) |
|
A_Guy
FabulaTech Forum Newbie

Posts: 3
|
 |
Can't install a Linux client.
on: Jun 8th, 2024, 7:55am |
Quote Modify
|
I've installed the appropriate kernel headers and required tools: gcc, make, but can't compile the kernel module. Getting these errors: root@server:/opt/ftvusbnet/module/fthc# make make -C /lib/modules/`uname -r`/build M=`pwd` modules make[1]: Entering directory '/usr/src/linux-headers-5.15.0-112-generic' CC [M] /opt/ftvusbnet/module/fthc/main.o CC [M] /opt/ftvusbnet/module/fthc/hcd.o /opt/ftvusbnet/module/fthc/hcd.c: In function ‘fthc_get_frame’: /opt/ftvusbnet/module/fthc/hcd.c:555:24: error: storage size of ‘tv’ isn’t known 555 | struct timeval tv; | ^~ /opt/ftvusbnet/module/fthc/hcd.c:556:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration] 556 | do_gettimeofday(&tv); | ^~~~~~~~~~~~~~~ | do_settimeofday64 /opt/ftvusbnet/module/fthc/hcd.c:555:24: warning: unused variable ‘tv’ [-Wunused-variable] 555 | struct timeval tv; | ^~ /opt/ftvusbnet/module/fthc/hcd.c:558:1: error: control reaches end of non-void function [-Werror=return-type] 558 | } | ^ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:297: /opt/ftvusbnet/module/fthc/hcd.o] Error 1 make[1]: *** [Makefile:1911: /opt/ftvusbnet/module/fthc] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-112-generic' make: *** [Makefile:23: all] Error 2 uname -a: Linux server 5.15.0-112-generic #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Should I get a newer client from you?
|
|
IP Logged |
|
|
|
Jolik
FabulaTech Forum Newbie

Posts: 1
|
 |
Re: Can't install a Linux client.
Reply #1 on: Aug 5th, 2024, 8:05pm |
Quote Modify
|
Change function `fthc_get_frame` on `hcd.с` on: ``` static int fthc_get_frame(struct usb_hcd *hcd) { #if 0 struct timeval tv; do_gettimeofday(&tv); return tv.tv_usec / 1000; #else return ktime_get_ns() / 1000000; #endif } ```
|
|
IP Logged |
|
|
|
A_Guy
FabulaTech Forum Newbie

Posts: 3
|
 |
Re: Can't install a Linux client.
Reply #3 on: Aug 8th, 2024, 9:06am |
Quote Modify
|
I have already sent you a client app request a few days ago. Still haven't heard from you
|
|
IP Logged |
|
|
|