Portál AbcLinuxu, 27. října 2025 05:13
# make
make -C /lib/modules/2.6.39.4/build M=/root/LKM modules
make[1]: Entering directory `/usr/src/linux-source-2.6.39.4'
WARNING: Symbol version dump /usr/src/linux-source-2.6.39.4/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /root/LKM/smodule.o
/root/LKM/smodule.c:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_init’
/root/LKM/smodule.c:36: error: expected declaration specifiers or ‘...’ before ‘{’ token
/root/LKM/smodule.c:36: warning: function declaration isn’t a prototype
/root/LKM/smodule.c:36: error: ‘my_exit’ declared as function returning a function
/root/LKM/smodule.c:38: error: expected identifier or ‘(’ before ‘}’ token
/root/LKM/smodule.c: In function ‘__inittest’:
/root/LKM/smodule.c:40: error: ‘my_init’ undeclared (first use in this function)
/root/LKM/smodule.c:40: error: (Each undeclared identifier is reported only once
/root/LKM/smodule.c:40: error: for each function it appears in.)
/root/LKM/smodule.c: In function ‘__exittest’:
/root/LKM/smodule.c:41: warning: return from incompatible pointer type
make[2]: *** [/root/LKM/smodule.o] Error 1
make[1]: *** [_module_/root/LKM] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.39.4'
make: *** [all] Error 2
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.