Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

error compile lime module #86

Closed
ghost opened this issue Jan 3, 2021 · 3 comments
Closed

error compile lime module #86

ghost opened this issue Jan 3, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 3, 2021

gcc version 10.2.1 20201221
kernel 5.10.4

make -C /lib/modules/5.10.4-051004-generic/build M="/home//Downloads/LiME-master/src" modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.4-051004-generic'
CC [M] /home/
/Downloads/LiME-master/src/tcp.o
/home//Downloads/LiME-master/src/tcp.c: In function ‘setup_tcp’:
/home/
/Downloads/LiME-master/src/tcp.c:77:10: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
77 | fs = get_fs();
| ^~~~~~
| sget_fc
/home//Downloads/LiME-master/src/tcp.c:77:10: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
/home/
/Downloads/LiME-master/src/tcp.c:78:5: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
78 | set_fs(KERNEL_DS);
| ^~~~~~
| sget_fc
/home//Downloads/LiME-master/src/tcp.c:78:12: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
78 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
/home/
/Downloads/LiME-master/src/tcp.c:78:12: note: each undeclared identifier is reported only once for each function it appears in
/home//Downloads/LiME-master/src/tcp.c:49:12: warning: unused variable ‘opt’ [-Wunused-variable]
49 | int r, opt;
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: /home/
/Downloads/LiME-master/src/tcp.o] Error 1
make[1]: *** [Makefile:1805: /home/______/Downloads/LiME-master/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.4-051004-generic'
make: *** [Makefile:35: default] Error 2

@frispete
Copy link

frispete commented Jan 3, 2021

You might want to try my fixes from: https://github.com/frispete/LiME

A brief feedback is welcome, if you do.

@ghost
Copy link
Author

ghost commented Jan 4, 2021

it works, thanks.

@frispete
Copy link

frispete commented Jan 5, 2021

Great, thanks.

@frispete frispete mentioned this issue Jan 5, 2021
@kd8bny kd8bny closed this as completed Jan 6, 2021
@kd8bny kd8bny linked a pull request Jan 6, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants