razrab Astra-1-3 trunk build make lkm CC usr bin gcc-4 Kernel lib modu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
razrab@Astra-1-3:~/trunk/build$ make lkm CC=/usr/bin/gcc-4.7
Kernel: /lib/modules/3.2.0-27-generic/build
Source directory: /home/razrab/trunk/src/lkm
Build directory: /home/razrab/trunk/build/src/lkm
In file included from /home/razrab/trunk/src/lkm/lkm.c:2:0:
include/linux/printk.h:47:2: error: unknown type name ‘va_list’
include/linux/printk.h:91:8: warning: type defaults to ‘int’ in declaration of ‘asmlinkage’ [enabled by default]
include/linux/printk.h:92:1: warning: ‘format’ attribute only applies to function types [-Wattributes]
include/linux/printk.h:92:1: error: expected ‘,’ or ‘;’ before ‘void’
include/linux/printk.h:98:1: warning: data definition has no type or storage class [enabled by default]
include/linux/printk.h:98:1: warning: type defaults to ‘int’ in declaration of ‘asmlinkage’ [enabled by default]
include/linux/printk.h:99:1: warning: ‘format’ attribute only applies to function types [-Wattributes]
include/linux/printk.h:99:1: error: expected ‘,’ or ‘;’ before ‘int’
include/linux/printk.h:100:1: warning: data definition has no type or storage class [enabled by default]
include/linux/printk.h:100:1: warning: type defaults to ‘int’ in declaration of ‘asmlinkage’ [enabled by default]
include/linux/printk.h:101:1: warning: ‘format’ attribute only applies to function types [-Wattributes]
include/linux/printk.h:101:1: warning: ‘__cold__’ attribute ignored [-Wattributes]
include/linux/printk.h:101:1: error: expected ‘,’ or ‘;’ before ‘int’
In file included from /home/razrab/trunk/src/lkm/common.h:11:0,
from /home/razrab/trunk/src/lkm/lkm.c:5:
include/linux/kallsyms.h: In function ‘print_ip_sym’:
include/linux/kallsyms.h:118:2: warning: implicit declaration of function ‘printk’ [-Wimplicit-function-declaration]
/home/razrab/trunk/src/lkm/hooks/sys_setuid.c:9:1: error: ‘security_task_fix_setuid’ undeclared here (not in a function)
/home/razrab/trunk/src/lkm/hooks/sys_setuid.c:17:1: warning: ‘static_assert_check_1’ defined but not used [-Wunused-variable]
make[6]: *** [/home/razrab/trunk/build/src/lkm/hooks/sys_setuid.o] Ошибка 1
make[6]: *** Ожидание завершения заданий...
make[6]: *** [/home/razrab/trunk/build/src/lkm/lkm.o] Ошибка 1
/home/razrab/trunk/src/lkm/file_plugin/file_access.c:75:1: warning: ‘struct open_flags’ declared inside parameter list [enabled by default]
/home/razrab/trunk/src/lkm/file_plugin/file_access.c:75:1: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/razrab/trunk/src/lkm/file_plugin/file_access.c: In function ‘dump’:
/home/razrab/trunk/src/lkm/file_plugin/file_access.c:121:9: warning: passing argument 4 of ‘real_do_file_open_root’ from incompatible pointer type [enabled by default]
/home/razrab/trunk/src/lkm/file_plugin/file_access.c:121:9: note: expected ‘const struct open_flags *’ but argument is of type ‘struct open_flags *’
/home/razrab/trunk/src/lkm/audio_plugin/hooks.c:3:31: fatal error: uapi/sound/asound.h: Нет такого файла или каталога
compilation terminated.
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:24:1: error: initializer element is not constant
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:24:1: error: (near initialization for ‘sound_mutex.wait_lock’)
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c: In function ‘params_change’:
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:280:5: warning: implicit declaration of function ‘pcm_format_to_bits’ [-Wimplicit-function-declaration]
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c: In function ‘monitor_timer_function’:
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:485:12: warning: implicit declaration of function ‘from_timer’ [-Wimplicit-function-declaration]
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:485:52: error: ‘timer’ undeclared (first use in this function)
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:485:52: note: each undeclared identifier is reported only once for each function it appears in
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c: In function ‘monitor_open’:
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:656:5: warning: implicit declaration of function ‘timer_setup’ [-Wimplicit-function-declaration]
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c: In function ‘monitor_pcm_new’:
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:749:5: warning: passing argument 3 of ‘snd_pcm_set_ops’ discards ‘const’ qualifier from pointer target type [enabled by default]
In file included from /home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:13:0:
include/sound/pcm.h:863:6: note: expected ‘struct snd_pcm_ops *’ but argument is of type ‘const struct snd_pcm_ops *’
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:750:5: warning: passing argument 3 of ‘snd_pcm_set_ops’ discards ‘const’ qualifier from pointer target type [enabled by default]
In file included from /home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:13:0:
include/sound/pcm.h:863:6: note: expected ‘struct snd_pcm_ops *’ but argument is of type ‘const struct snd_pcm_ops *’
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c: In function ‘monitor_probe’:
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:1111:5: warning: implicit declaration of function ‘snd_card_new’ [-Wimplicit-function-declaration]
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c: In function ‘audio_plugin_init’:
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:1302:41: error: ‘SNDRV_PCM_IOCTL_USER_PVERSION’ undeclared (first use in this function)
/home/razrab/trunk/src/lkm/audio_plugin/virtualacard.c:1311:41: error: ‘SNDRV_PCM_IOCTL_STATUS_EXT’ undeclared (first use in this function)
/home/razrab/trunk/src/lkm/keylogger_plugin/keylogger_settings.c: In function ‘netlink_report_keylogger_event’:
/home/razrab/trunk/src/lkm/keylogger_plugin/keylogger_settings.c:36:5: error: too few arguments to function ‘tty_name’
In file included from /home/razrab/trunk/src/lkm/keylogger_plugin/keylogger_settings.c:7:0:
include/linux/tty.h:404:14: note: declared here
make[6]: *** [/home/razrab/trunk/build/src/lkm/audio_plugin/virtualacard.o] Ошибка 1
make[6]: *** [/home/razrab/trunk/build/src/lkm/keylogger_plugin/keylogger_settings.o] Ошибка 1
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c: In function ‘hash_path2’:
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:97:5: warning: passing argument 1 of ‘path_get’ discards ‘const’ qualifier from pointer target type [enabled by default]
In file included from include/linux/fs.h:383:0,
from /home/razrab/trunk/src/lkm/app_plugin/file_hashing.h:3,
from /home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:1:
include/linux/path.h:12:13: note: expected ‘struct path *’ but argument is of type ‘const struct path *’
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c: In function ‘__lambda0’:
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:118:1: warning: passing argument 2 of ‘real_filp_close’ from incompatible pointer type [enabled by default]
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:118:1: note: expected ‘fl_owner_t’ but argument is of type ‘const struct cred *’
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c: In function ‘hash_path’:
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:146:5: warning: passing argument 1 of ‘path_get’ discards ‘const’ qualifier from pointer target type [enabled by default]
In file included from include/linux/fs.h:383:0,
from /home/razrab/trunk/src/lkm/app_plugin/file_hashing.h:3,
from /home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:1:
include/linux/path.h:12:13: note: expected ‘struct path *’ but argument is of type ‘const struct path *’
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:170:5: warning: passing argument 2 of ‘real_filp_close’ from incompatible pointer type [enabled by default]
/home/razrab/trunk/src/lkm/app_plugin/file_hashing.c:170:5: note: expected ‘fl_owner_t’ but argument is of type ‘const struct cred *’
make[6]: *** [/home/razrab/trunk/build/src/lkm/audio_plugin/hooks.o] Ошибка 1
make[5]: *** [_module_/home/razrab/trunk/build/src/lkm] Ошибка 2
make[4]: *** [all] Ошибка 2
make[3]: *** [src/lkm/CMakeFiles/lkm] Ошибка 2
make[2]: *** [src/lkm/CMakeFiles/lkm.dir/all] Ошибка 2
make[1]: *** [src/lkm/CMakeFiles/lkm.dir/rule] Ошибка 2
make: *** [lkm] Ошибка 2