SHARE
TWEET

Untitled

a guest Jul 7th, 2010 268 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ./VBoxLinuxAdditions-x86.run
  2. Verifying archive integrity... All good.
  3. Uncompressing VirtualBox 3.2.6 Guest Additions for Linux........
  4. VirtualBox Guest Additions installer
  5. Removing installed version 3.2.6 of VirtualBox Guest Additions...
  6. Building the VirtualBox Guest Additions kernel modules ...fail!
  7. Your system does not seem to be set up to build kernel modules.
  8. Look at /var/log/vboxadd-install.log to find out what went wrong.  Once you have corrected it, you can
  9. run
  10.  
  11.   /etc/init.d/vboxadd setup
  12.  
  13. to build them.
  14. Doing non-kernel setup of the Guest Additions ...done.
  15. Installing the Window System drivers
  16. Installing X.Org Server 1.5 modules ...done.
  17. Setting up the Window System to use the Guest Additions ...done.
  18. You may need to restart the hal service and the Window System (or just restart
  19. the guest system) to enable the Guest Additions.
  20.  
  21. Installing graphics libraries and desktop services components ...done.
  22. root@bt:~# cat /var/log/vboxadd-install.log
  23. make KBUILD_VERBOSE=1 -C /lib/modules/2.6.34/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
  24. test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
  25.         echo;                                                           \
  26.         echo "  ERROR: Kernel configuration is invalid.";               \
  27.         echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
  28.         echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
  29.         echo;                                                           \
  30.         /bin/false)
  31. mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
  32. make -f scripts/Makefile.build obj=/tmp/vbox.0
  33.   gcc -Wp,-MD,/tmp/vbox.0/.test.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -I/usr/src/linux-headers-2.6.34/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=core2 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -I/lib/modules/2.6.34/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)"  -c -o /tmp/vbox.0/test.o /tmp/vbox.0/test.c
  34. In file included from include/linux/prefetch.h:13,
  35.                  from include/linux/list.h:6,
  36.                  from include/linux/module.h:9,
  37.                  from /tmp/vbox.0/test.c:11:
  38. include/linux/types.h:4:23: error: asm/types.h: No such file or directory
  39. In file included from include/linux/types.h:14,
  40.                  from include/linux/prefetch.h:13,
  41.                  from include/linux/list.h:6,
  42.                  from include/linux/module.h:9,
  43.                  from /tmp/vbox.0/test.c:11:
  44. include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or directory
  45. In file included from include/linux/prefetch.h:13,
  46.                  from include/linux/list.h:6,
  47.                  from include/linux/module.h:9,
  48.                  from /tmp/vbox.0/test.c:11:
  49. include/linux/types.h:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__kernel_dev_t'
  50. include/linux/types.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dev_t'
  51. include/linux/types.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ino_t'
  52. include/linux/types.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mode_t'
  53. include/linux/types.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nlink_t'
  54. include/linux/types.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'off_t'
  55. include/linux/types.h:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pid_t'
  56. include/linux/types.h:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'daddr_t'
  57. include/linux/types.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suseconds_t'
  58. include/linux/types.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'timer_t'
  59. include/linux/types.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clockid_t'
  60. include/linux/types.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uid_t'
  61. include/linux/types.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gid_t'
  62. include/linux/types.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uid16_t'
  63. include/linux/types.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gid16_t'
  64. include/linux/types.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'old_uid_t'
  65. include/linux/types.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'old_gid_t'
  66. include/linux/types.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'loff_t'
  67. include/linux/types.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'size_t'
  68. include/linux/types.h:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ssize_t'
  69. include/linux/types.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ptrdiff_t'
  70. include/linux/types.h:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'time_t'
  71. include/linux/types.h:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clock_t'
  72. include/linux/types.h:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'caddr_t'
  73. include/linux/types.h:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_int8_t'
  74. include/linux/types.h:103: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int8_t'
  75. include/linux/types.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_int16_t'
  76. include/linux/types.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int16_t'
  77. include/linux/types.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_int32_t'
  78. include/linux/types.h:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int32_t'
  79. include/linux/types.h:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uint8_t'
  80. include/linux/types.h:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uint16_t'
  81. include/linux/types.h:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uint32_t'
  82. include/linux/types.h:116: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uint64_t'
  83. include/linux/types.h:117: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_int64_t'
  84. include/linux/types.h:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int64_t'
  85. include/linux/types.h:135: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sector_t'
  86. include/linux/types.h:136: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'blkcnt_t'
  87. include/linux/types.h:168: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le16'
  88. include/linux/types.h:169: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be16'
  89. include/linux/types.h:170: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le32'
  90. include/linux/types.h:171: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be32'
  91. include/linux/types.h:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le64'
  92. include/linux/types.h:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be64'
  93. include/linux/types.h:175: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sum16'
  94. include/linux/types.h:176: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__wsum'
  95. include/linux/types.h:185: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'phys_addr_t'
  96. include/linux/types.h:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'resource_size_t'
  97. include/linux/types.h:201: error: expected specifier-qualifier-list before '__kernel_daddr_t'
  98. In file included from include/linux/list.h:6,
  99.                  from include/linux/module.h:9,
  100.                  from /tmp/vbox.0/test.c:11:
  101. include/linux/prefetch.h:14:27: error: asm/processor.h: No such file or directory
  102. include/linux/prefetch.h:15:23: error: asm/cache.h: No such file or directory
  103. In file included from include/linux/list.h:6,
  104.                  from include/linux/module.h:9,
  105.                  from /tmp/vbox.0/test.c:11:
  106. include/linux/prefetch.h:53: error: expected declaration specifiers or '...' before 'size_t'
  107. In file included from include/linux/module.h:9,
  108.                  from /tmp/vbox.0/test.c:11:
  109. include/linux/list.h:7:24: error: asm/system.h: No such file or directory
  110. In file included from include/linux/module.h:9,
  111.                  from /tmp/vbox.0/test.c:11:
  112. include/linux/list.h: In function 'list_del':
  113. include/linux/list.h:106: error: implicit declaration of function '_AC'
  114. include/linux/list.h:106: error: 'UL' undeclared (first use in this function)
  115. include/linux/list.h:106: error: (Each undeclared identifier is reported only once
  116. include/linux/list.h:106: error: for each function it appears in.)
  117. include/linux/list.h: In function 'hlist_del':
  118. include/linux/list.h:593: error: 'UL' undeclared (first use in this function)
  119. In file included from include/linux/module.h:10,
  120.                  from /tmp/vbox.0/test.c:11:
  121. include/linux/stat.h:6:22: error: asm/stat.h: No such file or directory
  122. In file included from include/linux/kernel.h:11,
  123.                  from include/linux/cache.h:4,
  124.                  from include/linux/time.h:7,
  125.                  from include/linux/stat.h:60,
  126.                  from include/linux/module.h:10,
  127.                  from /tmp/vbox.0/test.c:11:
  128. include/linux/linkage.h:5:25: error: asm/linkage.h: No such file or directory
  129. In file included from include/linux/kernel.h:15,
  130.                  from include/linux/cache.h:4,
  131.                  from include/linux/time.h:7,
  132.                  from include/linux/stat.h:60,
  133.                  from include/linux/module.h:10,
  134.                  from /tmp/vbox.0/test.c:11:
  135. include/linux/bitops.h:17:24: error: asm/bitops.h: No such file or directory
  136. In file included from include/linux/kernel.h:15,
  137.                  from include/linux/cache.h:4,
  138.                  from include/linux/time.h:7,
  139.                  from include/linux/stat.h:60,
  140.                  from include/linux/module.h:10,
  141.                  from /tmp/vbox.0/test.c:11:
  142. include/linux/bitops.h: In function 'get_bitmask_order':
  143. include/linux/bitops.h:28: error: implicit declaration of function 'fls'
  144. include/linux/bitops.h: In function 'hweight_long':
  145. include/linux/bitops.h:44: error: implicit declaration of function 'hweight32'
  146. include/linux/bitops.h:44: error: implicit declaration of function 'hweight64'
  147. include/linux/bitops.h: At top level:
  148. include/linux/bitops.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rol32'
  149. include/linux/bitops.h:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ror32'
  150. include/linux/bitops.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rol16'
  151. include/linux/bitops.h:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ror16'
  152. include/linux/bitops.h:117: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rol8'
  153. include/linux/bitops.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ror8'
  154. include/linux/bitops.h: In function 'fls_long':
  155. include/linux/bitops.h:136: error: implicit declaration of function 'fls64'
  156. include/linux/bitops.h: At top level:
  157. include/linux/bitops.h:147: error: expected ')' before 'word'
  158. include/linux/bitops.h:149:5: warning: "BITS_PER_LONG" is not defined
  159. include/linux/bitops.h:152:7: warning: "BITS_PER_LONG" is not defined
  160. include/linux/bitops.h:153:2: error: #error BITS_PER_LONG not 32 or 64
  161. In file included from include/linux/kernel.h:16,
  162.                  from include/linux/cache.h:4,
  163.                  from include/linux/time.h:7,
  164.                  from include/linux/stat.h:60,
  165.                  from include/linux/module.h:10,
  166.                  from /tmp/vbox.0/test.c:11:
  167. include/linux/log2.h:32: error: expected ')' before 'n'
  168. include/linux/log2.h:40: error: expected ')' before 'n'
  169. In file included from include/linux/cache.h:4,
  170.                  from include/linux/time.h:7,
  171.                  from include/linux/stat.h:60,
  172.                  from include/linux/module.h:10,
  173.                  from /tmp/vbox.0/test.c:11:
  174. include/linux/kernel.h:19:27: error: asm/byteorder.h: No such file or directory
  175. include/linux/kernel.h:20:21: error: asm/bug.h: No such file or directory
  176. include/linux/kernel.h:71:24: error: asm/div64.h: No such file or directory
  177. In file included from include/linux/cache.h:4,
  178.                  from include/linux/time.h:7,
  179.                  from include/linux/stat.h:60,
  180.                  from include/linux/module.h:10,
  181.                  from /tmp/vbox.0/test.c:11:
  182. include/linux/kernel.h:195: error: expected declaration specifiers or '...' before 'size_t'
  183. include/linux/kernel.h:196: error: format string argument not a string type
  184. include/linux/kernel.h:197: error: expected declaration specifiers or '...' before 'size_t'
  185. include/linux/kernel.h:199: error: expected declaration specifiers or '...' before 'size_t'
  186. include/linux/kernel.h:200: error: format string argument not a string type
  187. include/linux/kernel.h:201: error: expected declaration specifiers or '...' before 'size_t'
  188. include/linux/kernel.h:355: error: expected declaration specifiers or '...' before 'size_t'
  189. include/linux/kernel.h:357: error: expected declaration specifiers or '...' before 'size_t'
  190. include/linux/kernel.h:360: error: expected declaration specifiers or '...' before 'size_t'
  191. include/linux/kernel.h:362: error: expected declaration specifiers or '...' before 'size_t'
  192. include/linux/kernel.h:368: error: expected declaration specifiers or '...' before 'u8'
  193. include/linux/kernel.h: In function 'pack_hex_byte':
  194. include/linux/kernel.h:370: error: 'byte' undeclared (first use in this function)
  195. In file included from include/linux/preempt.h:9,
  196.                  from include/linux/spinlock.h:50,
  197.                  from include/linux/seqlock.h:29,
  198.                  from include/linux/time.h:8,
  199.                  from include/linux/stat.h:60,
  200.                  from include/linux/module.h:10,
  201.                  from /tmp/vbox.0/test.c:11:
  202. include/linux/thread_info.h: At top level:
  203. include/linux/thread_info.h:26: error: expected specifier-qualifier-list before 'u32'
  204. include/linux/thread_info.h:35: error: expected specifier-qualifier-list before 'clockid_t'
  205. In file included from include/linux/preempt.h:9,
  206.                  from include/linux/spinlock.h:50,
  207.                  from include/linux/seqlock.h:29,
  208.                  from include/linux/time.h:8,
  209.                  from include/linux/stat.h:60,
  210.                  from include/linux/module.h:10,
  211.                  from /tmp/vbox.0/test.c:11:
  212. include/linux/thread_info.h:56:29: error: asm/thread_info.h: No such file or directory
  213. include/linux/thread_info.h:65: warning: 'struct thread_info' declared inside parameter list
  214. include/linux/thread_info.h:65: warning: its scope is only this definition or declaration, which is probably not what you want
  215. include/linux/thread_info.h: In function 'set_ti_thread_flag':
  216. include/linux/thread_info.h:67: error: implicit declaration of function 'set_bit'
  217. include/linux/thread_info.h:67: error: dereferencing pointer to incomplete type
  218. include/linux/thread_info.h: At top level:
  219. include/linux/thread_info.h:70: warning: 'struct thread_info' declared inside parameter list
  220. include/linux/thread_info.h: In function 'clear_ti_thread_flag':
  221. include/linux/thread_info.h:72: error: implicit declaration of function 'clear_bit'
  222. include/linux/thread_info.h:72: error: dereferencing pointer to incomplete type
  223. include/linux/thread_info.h: At top level:
  224. include/linux/thread_info.h:75: warning: 'struct thread_info' declared inside parameter list
  225. include/linux/thread_info.h: In function 'test_and_set_ti_thread_flag':
  226. include/linux/thread_info.h:77: error: implicit declaration of function 'test_and_set_bit'
  227. include/linux/thread_info.h:77: error: dereferencing pointer to incomplete type
  228. include/linux/thread_info.h: At top level:
  229. include/linux/thread_info.h:80: warning: 'struct thread_info' declared inside parameter list
  230. include/linux/thread_info.h: In function 'test_and_clear_ti_thread_flag':
  231. include/linux/thread_info.h:82: error: implicit declaration of function 'test_and_clear_bit'
  232. include/linux/thread_info.h:82: error: dereferencing pointer to incomplete type
  233. include/linux/thread_info.h: At top level:
  234. include/linux/thread_info.h:85: warning: 'struct thread_info' declared inside parameter list
  235. include/linux/thread_info.h: In function 'test_ti_thread_flag':
  236. include/linux/thread_info.h:87: error: implicit declaration of function 'test_bit'
  237. include/linux/thread_info.h:87: error: dereferencing pointer to incomplete type
  238. In file included from include/linux/spinlock.h:50,
  239.                  from include/linux/seqlock.h:29,
  240.                  from include/linux/time.h:8,
  241.                  from include/linux/stat.h:60,
  242.                  from include/linux/module.h:10,
  243.                  from /tmp/vbox.0/test.c:11:
  244. include/linux/preempt.h: At top level:
  245. include/linux/preempt.h:117: warning: 'struct task_struct' declared inside parameter list
  246. In file included from include/linux/spinlock.h:80,
  247.                  from include/linux/seqlock.h:29,
  248.                  from include/linux/time.h:8,
  249.                  from include/linux/stat.h:60,
  250.                  from include/linux/module.h:10,
  251.                  from /tmp/vbox.0/test.c:11:
  252. include/linux/spinlock_types.h:13:33: error: asm/spinlock_types.h: No such file or directory
  253. In file included from include/linux/spinlock.h:80,
  254.                  from include/linux/seqlock.h:29,
  255.                  from include/linux/time.h:8,
  256.                  from include/linux/stat.h:60,
  257.                  from include/linux/module.h:10,
  258.                  from /tmp/vbox.0/test.c:11:
  259. include/linux/spinlock_types.h:21: error: expected specifier-qualifier-list before 'arch_spinlock_t'
  260. In file included from include/linux/spinlock_types.h:94,
  261.                  from include/linux/spinlock.h:80,
  262.                  from include/linux/seqlock.h:29,
  263.                  from include/linux/time.h:8,
  264.                  from include/linux/stat.h:60,
  265.                  from include/linux/module.h:10,
  266.                  from /tmp/vbox.0/test.c:11:
  267. include/linux/rwlock_types.h:12: error: expected specifier-qualifier-list before 'arch_rwlock_t'
  268. In file included from include/linux/seqlock.h:29,
  269.                  from include/linux/time.h:8,
  270.                  from include/linux/stat.h:60,
  271.                  from include/linux/module.h:10,
  272.                  from /tmp/vbox.0/test.c:11:
  273. include/linux/spinlock.h:86:27: error: asm/spinlock.h: No such file or directory
  274. In file included from include/linux/seqlock.h:29,
  275.                  from include/linux/time.h:8,
  276.                  from include/linux/stat.h:60,
  277.                  from include/linux/module.h:10,
  278.                  from /tmp/vbox.0/test.c:11:
  279. include/linux/spinlock.h: In function 'smp_mb__after_lock':
  280. include/linux/spinlock.h:121: error: implicit declaration of function 'smp_mb'
  281. include/linux/spinlock.h: In function 'do_raw_spin_lock':
  282. include/linux/spinlock.h:139: error: implicit declaration of function 'arch_spin_lock'
  283. include/linux/spinlock.h:139: error: 'raw_spinlock_t' has no member named 'raw_lock'
  284. include/linux/spinlock.h: In function 'do_raw_spin_lock_flags':
  285. include/linux/spinlock.h:146: error: implicit declaration of function 'arch_spin_lock_flags'
  286. include/linux/spinlock.h:146: error: 'raw_spinlock_t' has no member named 'raw_lock'
  287. include/linux/spinlock.h: In function 'do_raw_spin_trylock':
  288. include/linux/spinlock.h:151: error: implicit declaration of function 'arch_spin_trylock'
  289. include/linux/spinlock.h:151: error: 'raw_spinlock_t' has no member named 'raw_lock'
  290. include/linux/spinlock.h: In function 'do_raw_spin_unlock':
  291. include/linux/spinlock.h:156: error: implicit declaration of function 'arch_spin_unlock'
  292. include/linux/spinlock.h:156: error: 'raw_spinlock_t' has no member named 'raw_lock'
  293. In file included from include/linux/spinlock.h:262,
  294.                  from include/linux/seqlock.h:29,
  295.                  from include/linux/time.h:8,
  296.                  from include/linux/stat.h:60,
  297.                  from include/linux/module.h:10,
  298.                  from /tmp/vbox.0/test.c:11:
  299. include/linux/spinlock_api_smp.h: In function '__raw_spin_lock_irqsave':
  300. include/linux/spinlock_api_smp.h:108: error: implicit declaration of function 'local_irq_save'
  301. include/linux/spinlock_api_smp.h: In function '__raw_spin_lock_irq':
  302. include/linux/spinlock_api_smp.h:126: error: implicit declaration of function 'local_irq_disable'
  303. include/linux/spinlock_api_smp.h: In function '__raw_spin_unlock_irqrestore':
  304. include/linux/spinlock_api_smp.h:161: error: implicit declaration of function 'local_irq_restore'
  305. include/linux/spinlock_api_smp.h: In function '__raw_spin_unlock_irq':
  306. include/linux/spinlock_api_smp.h:169: error: implicit declaration of function 'local_irq_enable'
  307. In file included from include/linux/spinlock_api_smp.h:194,
  308.                  from include/linux/spinlock.h:262,
  309.                  from include/linux/seqlock.h:29,
  310.                  from include/linux/time.h:8,
  311.                  from include/linux/stat.h:60,
  312.                  from include/linux/module.h:10,
  313.                  from /tmp/vbox.0/test.c:11:
  314. include/linux/rwlock_api_smp.h: In function '__raw_read_trylock':
  315. include/linux/rwlock_api_smp.h:120: error: implicit declaration of function 'arch_read_trylock'
  316. include/linux/rwlock_api_smp.h:120: error: 'rwlock_t' has no member named 'raw_lock'
  317. include/linux/rwlock_api_smp.h: In function '__raw_write_trylock':
  318. include/linux/rwlock_api_smp.h:131: error: implicit declaration of function 'arch_write_trylock'
  319. include/linux/rwlock_api_smp.h:131: error: 'rwlock_t' has no member named 'raw_lock'
  320. include/linux/rwlock_api_smp.h: In function '__raw_read_lock':
  321. include/linux/rwlock_api_smp.h:150: error: implicit declaration of function 'arch_read_lock'
  322. include/linux/rwlock_api_smp.h:150: error: 'rwlock_t' has no member named 'raw_lock'
  323. include/linux/rwlock_api_smp.h: In function '__raw_read_lock_irqsave':
  324. include/linux/rwlock_api_smp.h:160: error: implicit declaration of function 'arch_read_lock_flags'
  325. include/linux/rwlock_api_smp.h:160: error: 'rwlock_t' has no member named 'raw_lock'
  326. include/linux/rwlock_api_smp.h: In function '__raw_read_lock_irq':
  327. include/linux/rwlock_api_smp.h:170: error: 'rwlock_t' has no member named 'raw_lock'
  328. include/linux/rwlock_api_smp.h: In function '__raw_read_lock_bh':
  329. include/linux/rwlock_api_smp.h:178: error: 'rwlock_t' has no member named 'raw_lock'
  330. include/linux/rwlock_api_smp.h: In function '__raw_write_lock_irqsave':
  331. include/linux/rwlock_api_smp.h:188: error: implicit declaration of function 'arch_write_lock_flags'
  332. include/linux/rwlock_api_smp.h:188: error: 'rwlock_t' has no member named 'raw_lock'
  333. include/linux/rwlock_api_smp.h: In function '__raw_write_lock_irq':
  334. include/linux/rwlock_api_smp.h:198: error: implicit declaration of function 'arch_write_lock'
  335. include/linux/rwlock_api_smp.h:198: error: 'rwlock_t' has no member named 'raw_lock'
  336. include/linux/rwlock_api_smp.h: In function '__raw_write_lock_bh':
  337. include/linux/rwlock_api_smp.h:206: error: 'rwlock_t' has no member named 'raw_lock'
  338. include/linux/rwlock_api_smp.h: In function '__raw_write_lock':
  339. include/linux/rwlock_api_smp.h:213: error: 'rwlock_t' has no member named 'raw_lock'
  340. include/linux/rwlock_api_smp.h: In function '__raw_write_unlock':
  341. include/linux/rwlock_api_smp.h:221: error: implicit declaration of function 'arch_write_unlock'
  342. include/linux/rwlock_api_smp.h:221: error: 'rwlock_t' has no member named 'raw_lock'
  343. include/linux/rwlock_api_smp.h: In function '__raw_read_unlock':
  344. include/linux/rwlock_api_smp.h:228: error: implicit declaration of function 'arch_read_unlock'
  345. include/linux/rwlock_api_smp.h:228: error: 'rwlock_t' has no member named 'raw_lock'
  346. include/linux/rwlock_api_smp.h: In function '__raw_read_unlock_irqrestore':
  347. include/linux/rwlock_api_smp.h:236: error: 'rwlock_t' has no member named 'raw_lock'
  348. include/linux/rwlock_api_smp.h: In function '__raw_read_unlock_irq':
  349. include/linux/rwlock_api_smp.h:244: error: 'rwlock_t' has no member named 'raw_lock'
  350. include/linux/rwlock_api_smp.h: In function '__raw_read_unlock_bh':
  351. include/linux/rwlock_api_smp.h:252: error: 'rwlock_t' has no member named 'raw_lock'
  352. include/linux/rwlock_api_smp.h: In function '__raw_write_unlock_irqrestore':
  353. include/linux/rwlock_api_smp.h:261: error: 'rwlock_t' has no member named 'raw_lock'
  354. include/linux/rwlock_api_smp.h: In function '__raw_write_unlock_irq':
  355. include/linux/rwlock_api_smp.h:269: error: 'rwlock_t' has no member named 'raw_lock'
  356. include/linux/rwlock_api_smp.h: In function '__raw_write_unlock_bh':
  357. include/linux/rwlock_api_smp.h:277: error: 'rwlock_t' has no member named 'raw_lock'
  358. In file included from include/linux/seqlock.h:29,
  359.                  from include/linux/time.h:8,
  360.                  from include/linux/stat.h:60,
  361.                  from include/linux/module.h:10,
  362.                  from /tmp/vbox.0/test.c:11:
  363. include/linux/spinlock.h: In function 'spin_unlock_wait':
  364. include/linux/spinlock.h:359: error: implicit declaration of function 'arch_spin_unlock_wait'
  365. include/linux/spinlock.h:359: error: 'struct raw_spinlock' has no member named 'raw_lock'
  366. include/linux/spinlock.h: In function 'spin_is_locked':
  367. include/linux/spinlock.h:364: error: implicit declaration of function 'arch_spin_is_locked'
  368. include/linux/spinlock.h:364: error: 'struct raw_spinlock' has no member named 'raw_lock'
  369. include/linux/spinlock.h: In function 'spin_can_lock':
  370. include/linux/spinlock.h:374: error: 'struct raw_spinlock' has no member named 'raw_lock'
  371. include/linux/spinlock.h: In function 'assert_spin_locked':
  372. include/linux/spinlock.h:379: error: implicit declaration of function 'BUG_ON'
  373. include/linux/spinlock.h:379: error: 'struct raw_spinlock' has no member named 'raw_lock'
  374. include/linux/spinlock.h:386:24: error: asm/atomic.h: No such file or directory
  375. In file included from include/linux/time.h:8,
  376.                  from include/linux/stat.h:60,
  377.                  from include/linux/module.h:10,
  378.                  from /tmp/vbox.0/test.c:11:
  379. include/linux/seqlock.h: In function 'write_seqlock':
  380. include/linux/seqlock.h:64: error: implicit declaration of function 'smp_wmb'
  381. include/linux/seqlock.h: In function 'read_seqbegin':
  382. include/linux/seqlock.h:92: error: implicit declaration of function 'smp_rmb'
  383. include/linux/seqlock.h:94: error: implicit declaration of function 'cpu_relax'
  384. In file included from include/linux/time.h:9,
  385.                  from include/linux/stat.h:60,
  386.                  from include/linux/module.h:10,
  387.                  from /tmp/vbox.0/test.c:11:
  388. include/linux/math64.h:7:5: warning: "BITS_PER_LONG" is not defined
  389. include/linux/math64.h:38:7: warning: "BITS_PER_LONG" is not defined
  390. In file included from include/linux/time.h:9,
  391.                  from include/linux/stat.h:60,
  392.                  from include/linux/module.h:10,
  393.                  from /tmp/vbox.0/test.c:11:
  394. include/linux/math64.h: At top level:
  395. include/linux/math64.h:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'div_u64'
  396. include/linux/math64.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'div_s64'
  397. include/linux/math64.h:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'iter_div_u64_rem'
  398. include/linux/math64.h:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__iter_div_u64_rem'
  399. In file included from include/linux/stat.h:60,
  400.                  from include/linux/module.h:10,
  401.                  from /tmp/vbox.0/test.c:11:
  402. include/linux/time.h:15: error: expected specifier-qualifier-list before '__kernel_time_t'
  403. include/linux/time.h:21: error: expected specifier-qualifier-list before '__kernel_time_t'
  404. include/linux/time.h: In function 'timespec_equal':
  405. include/linux/time.h:48: error: 'const struct timespec' has no member named 'tv_sec'
  406. include/linux/time.h:48: error: 'const struct timespec' has no member named 'tv_sec'
  407. include/linux/time.h:48: error: 'const struct timespec' has no member named 'tv_nsec'
  408. include/linux/time.h:48: error: 'const struct timespec' has no member named 'tv_nsec'
  409. include/linux/time.h: In function 'timespec_compare':
  410. include/linux/time.h:58: error: 'const struct timespec' has no member named 'tv_sec'
  411. include/linux/time.h:58: error: 'const struct timespec' has no member named 'tv_sec'
  412. include/linux/time.h:60: error: 'const struct timespec' has no member named 'tv_sec'
  413. include/linux/time.h:60: error: 'const struct timespec' has no member named 'tv_sec'
  414. include/linux/time.h:62: error: 'const struct timespec' has no member named 'tv_nsec'
  415. include/linux/time.h:62: error: 'const struct timespec' has no member named 'tv_nsec'
  416. include/linux/time.h: In function 'timeval_compare':
  417. include/linux/time.h:67: error: 'const struct timeval' has no member named 'tv_sec'
  418. include/linux/time.h:67: error: 'const struct timeval' has no member named 'tv_sec'
  419. include/linux/time.h:69: error: 'const struct timeval' has no member named 'tv_sec'
  420. include/linux/time.h:69: error: 'const struct timeval' has no member named 'tv_sec'
  421. include/linux/time.h:71: error: 'const struct timeval' has no member named 'tv_usec'
  422. include/linux/time.h:71: error: 'const struct timeval' has no member named 'tv_usec'
  423. include/linux/time.h: At top level:
  424. include/linux/time.h:78: error: expected declaration specifiers or '...' before 'time_t'
  425. include/linux/time.h:78: error: expected declaration specifiers or '...' before 's64'
  426. include/linux/time.h: In function 'timespec_sub':
  427. include/linux/time.h:89: error: 'struct timespec' has no member named 'tv_sec'
  428. include/linux/time.h:89: error: 'struct timespec' has no member named 'tv_sec'
  429. include/linux/time.h:90: error: 'struct timespec' has no member named 'tv_nsec'
  430. include/linux/time.h:90: error: 'struct timespec' has no member named 'tv_nsec'
  431. include/linux/time.h:90: error: too many arguments to function 'set_normalized_timespec'
  432. include/linux/time.h: At top level:
  433. include/linux/time.h:131: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arch_gettimeoffset'
  434. include/linux/time.h:151: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'timekeeping_max_deferment'
  435. include/linux/time.h:153: error: expected ')' before 'nsec'
  436. include/linux/time.h:185: error: expected ')' before 'totalsecs'
  437. include/linux/time.h:194: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'timespec_to_ns'
  438. include/linux/time.h:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'timeval_to_ns'
  439. include/linux/time.h:218: warning: type defaults to 'int' in declaration of 's64'
  440. include/linux/time.h:218: error: expected ';', ',' or ')' before 'nsec'
  441. include/linux/time.h:226: warning: type defaults to 'int' in declaration of 's64'
  442. include/linux/time.h:226: error: expected ';', ',' or ')' before 'nsec'
  443. include/linux/time.h:236: error: expected declaration specifiers or '...' before 'u64'
  444. include/linux/time.h: In function 'timespec_add_ns':
  445. include/linux/time.h:238: error: 'struct timespec' has no member named 'tv_sec'
  446. include/linux/time.h:238: error: implicit declaration of function '__iter_div_u64_rem'
  447. include/linux/time.h:238: error: 'struct timespec' has no member named 'tv_nsec'
  448. include/linux/time.h:238: error: 'ns' undeclared (first use in this function)
  449. include/linux/time.h:239: error: 'struct timespec' has no member named 'tv_nsec'
  450. In file included from include/linux/module.h:10,
  451.                  from /tmp/vbox.0/test.c:11:
  452. include/linux/stat.h: At top level:
  453. include/linux/stat.h:63: error: expected specifier-qualifier-list before 'u64'
  454. In file included from include/linux/mmzone.h:9,
  455.                  from include/linux/gfp.h:4,
  456.                  from include/linux/kmod.h:22,
  457.                  from include/linux/module.h:13,
  458.                  from /tmp/vbox.0/test.c:11:
  459. include/linux/wait.h:26:25: error: asm/current.h: No such file or directory
  460. In file included from include/linux/bitmap.h:8,
  461.                  from include/linux/nodemask.h:93,
  462.                  from include/linux/mmzone.h:16,
  463.                  from include/linux/gfp.h:4,
  464.                  from include/linux/kmod.h:22,
  465.                  from include/linux/module.h:13,
  466.                  from /tmp/vbox.0/test.c:11:
  467. include/linux/string.h:16: error: expected declaration specifiers or '...' before 'size_t'
  468. In file included from include/linux/bitmap.h:8,
  469.                  from include/linux/nodemask.h:93,
  470.                  from include/linux/mmzone.h:16,
  471.                  from include/linux/gfp.h:4,
  472.                  from include/linux/kmod.h:22,
  473.                  from include/linux/module.h:13,
  474.                  from /tmp/vbox.0/test.c:11:
  475. include/linux/string.h:21:24: error: asm/string.h: No such file or directory
  476. include/linux/string.h:27: error: expected declaration specifiers or '...' before '__kernel_size_t'
  477. include/linux/string.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlcpy'
  478. include/linux/string.h:36: error: expected declaration specifiers or '...' before '__kernel_size_t'
  479. include/linux/string.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlcat'
  480. include/linux/string.h:45: error: expected declaration specifiers or '...' before '__kernel_size_t'
  481. include/linux/string.h:48: error: expected declaration specifiers or '...' before '__kernel_size_t'
  482. include/linux/string.h:54: error: expected declaration specifiers or '...' before 'size_t'
  483. include/linux/string.h:60: error: expected declaration specifiers or '...' before 'size_t'
  484. include/linux/string.h:78: error: expected declaration specifiers or '...' before 'size_t'
  485. include/linux/string.h:81: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlen'
  486. include/linux/string.h:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strnlen'
  487. include/linux/string.h:93: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strspn'
  488. include/linux/string.h:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcspn'
  489. include/linux/string.h:100: error: expected declaration specifiers or '...' before '__kernel_size_t'
  490. include/linux/string.h:103: error: expected declaration specifiers or '...' before '__kernel_size_t'
  491. include/linux/string.h:106: error: expected declaration specifiers or '...' before '__kernel_size_t'
  492. include/linux/string.h:109: error: expected declaration specifiers or '...' before '__kernel_size_t'
  493. include/linux/string.h:112: error: expected declaration specifiers or '...' before '__kernel_size_t'
  494. include/linux/string.h:115: error: expected declaration specifiers or '...' before '__kernel_size_t'
  495. include/linux/string.h:119: error: expected declaration specifiers or '...' before 'size_t'
  496. include/linux/string.h:120: error: expected declaration specifiers or '...' before 'size_t'
  497. include/linux/string.h:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'memory_read_from_buffer'
  498. include/linux/string.h: In function 'strstarts':
  499. include/linux/string.h:143: error: implicit declaration of function 'strlen'
  500. include/linux/string.h:143: error: too many arguments to function 'strncmp'
  501. In file included from include/linux/nodemask.h:93,
  502.                  from include/linux/mmzone.h:16,
  503.                  from include/linux/gfp.h:4,
  504.                  from include/linux/kmod.h:22,
  505.                  from include/linux/module.h:13,
  506.                  from /tmp/vbox.0/test.c:11:
  507. include/linux/bitmap.h: In function 'bitmap_zero':
  508. include/linux/bitmap.h:156: error: 'BITS_PER_LONG' undeclared (first use in this function)
  509. include/linux/bitmap.h:160: error: too many arguments to function 'memset'
  510. include/linux/bitmap.h: In function 'bitmap_fill':
  511. include/linux/bitmap.h:166: error: 'size_t' undeclared (first use in this function)
  512. include/linux/bitmap.h:166: error: expected ';' before 'nlongs'
  513. include/linux/bitmap.h:167: error: 'BITS_PER_LONG' undeclared (first use in this function)
  514. include/linux/bitmap.h:168: error: 'nlongs' undeclared (first use in this function)
  515. include/linux/bitmap.h:169: error: too many arguments to function 'memset'
  516. include/linux/bitmap.h: In function 'bitmap_copy':
  517. include/linux/bitmap.h:177: error: 'BITS_PER_LONG' undeclared (first use in this function)
  518. include/linux/bitmap.h:181: error: too many arguments to function 'memcpy'
  519. include/linux/bitmap.h: In function 'bitmap_and':
  520. include/linux/bitmap.h:188: error: 'BITS_PER_LONG' undeclared (first use in this function)
  521. include/linux/bitmap.h: In function 'bitmap_or':
  522. include/linux/bitmap.h:196: error: 'BITS_PER_LONG' undeclared (first use in this function)
  523. include/linux/bitmap.h: In function 'bitmap_xor':
  524. include/linux/bitmap.h:205: error: 'BITS_PER_LONG' undeclared (first use in this function)
  525. include/linux/bitmap.h: In function 'bitmap_andnot':
  526. include/linux/bitmap.h:214: error: 'BITS_PER_LONG' undeclared (first use in this function)
  527. include/linux/bitmap.h: In function 'bitmap_complement':
  528. include/linux/bitmap.h:222: error: 'BITS_PER_LONG' undeclared (first use in this function)
  529. include/linux/bitmap.h: In function 'bitmap_equal':
  530. include/linux/bitmap.h:231: error: 'BITS_PER_LONG' undeclared (first use in this function)
  531. include/linux/bitmap.h: In function 'bitmap_intersects':
  532. include/linux/bitmap.h:240: error: 'BITS_PER_LONG' undeclared (first use in this function)
  533. include/linux/bitmap.h: In function 'bitmap_subset':
  534. include/linux/bitmap.h:249: error: 'BITS_PER_LONG' undeclared (first use in this function)
  535. include/linux/bitmap.h: In function 'bitmap_empty':
  536. include/linux/bitmap.h:257: error: 'BITS_PER_LONG' undeclared (first use in this function)
  537. include/linux/bitmap.h: In function 'bitmap_full':
  538. include/linux/bitmap.h:265: error: 'BITS_PER_LONG' undeclared (first use in this function)
  539. include/linux/bitmap.h: In function 'bitmap_weight':
  540. include/linux/bitmap.h:273: error: 'BITS_PER_LONG' undeclared (first use in this function)
  541. include/linux/bitmap.h: In function 'bitmap_shift_right':
  542. include/linux/bitmap.h:281: error: 'BITS_PER_LONG' undeclared (first use in this function)
  543. include/linux/bitmap.h: In function 'bitmap_shift_left':
  544. include/linux/bitmap.h:290: error: 'BITS_PER_LONG' undeclared (first use in this function)
  545. In file included from include/linux/mmzone.h:16,
  546.                  from include/linux/gfp.h:4,
  547.                  from include/linux/kmod.h:22,
  548.                  from include/linux/module.h:13,
  549.                  from /tmp/vbox.0/test.c:11:
  550. include/linux/nodemask.h:272:21: warning: "BITS_PER_LONG" is not defined
  551. In file included from include/linux/gfp.h:4,
  552.                  from include/linux/kmod.h:22,
  553.                  from include/linux/module.h:13,
  554.                  from /tmp/vbox.0/test.c:11:
  555. include/linux/mmzone.h:20:22: error: asm/page.h: No such file or directory
  556. In file included from include/linux/gfp.h:4,
  557.                  from include/linux/kmod.h:22,
  558.                  from include/linux/module.h:13,
  559.                  from /tmp/vbox.0/test.c:11:
  560. include/linux/mmzone.h: At top level:
  561. include/linux/mmzone.h:73: error: 'L1_CACHE_SHIFT' undeclared here (not in a function)
  562. include/linux/mmzone.h:73: error: requested alignment is not a constant
  563. include/linux/mmzone.h:184: error: expected specifier-qualifier-list before 's8'
  564. include/linux/mmzone.h:339: error: expected specifier-qualifier-list before 'atomic_long_t'
  565. include/linux/mmzone.h:418: error: requested alignment is not a constant
  566. In file included from include/linux/notifier.h:12,
  567.                  from include/linux/memory_hotplug.h:6,
  568.                  from include/linux/mmzone.h:642,
  569.                  from include/linux/gfp.h:4,
  570.                  from include/linux/kmod.h:22,
  571.                  from include/linux/module.h:13,
  572.                  from /tmp/vbox.0/test.c:11:
  573. include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
  574. In file included from include/linux/notifier.h:13,
  575.                  from include/linux/memory_hotplug.h:6,
  576.                  from include/linux/mmzone.h:642,
  577.                  from include/linux/gfp.h:4,
  578.                  from include/linux/kmod.h:22,
  579.                  from include/linux/module.h:13,
  580.                  from /tmp/vbox.0/test.c:11:
  581. include/linux/mutex.h: In function 'mutex_is_locked':
  582. include/linux/mutex.h:118: error: implicit declaration of function 'atomic_read'
  583. In file included from include/linux/notifier.h:14,
  584.                  from include/linux/memory_hotplug.h:6,
  585.                  from include/linux/mmzone.h:642,
  586.                  from include/linux/gfp.h:4,
  587.                  from include/linux/kmod.h:22,
  588.                  from include/linux/module.h:13,
  589.                  from /tmp/vbox.0/test.c:11:
  590. include/linux/rwsem.h:22:65: error: asm/rwsem.h: No such file or directory
  591. In file included from include/linux/memory_hotplug.h:6,
  592.                  from include/linux/mmzone.h:642,
  593.                  from include/linux/gfp.h:4,
  594.                  from include/linux/kmod.h:22,
  595.                  from include/linux/module.h:13,
  596.                  from /tmp/vbox.0/test.c:11:
  597. include/linux/notifier.h: At top level:
  598. include/linux/notifier.h:62: error: field 'rwsem' has incomplete type
  599. In file included from include/linux/mmzone.h:642,
  600.                  from include/linux/gfp.h:4,
  601.                  from include/linux/kmod.h:22,
  602.                  from include/linux/module.h:13,
  603.                  from /tmp/vbox.0/test.c:11:
  604. include/linux/memory_hotplug.h: In function 'mhp_notimplemented':
  605. include/linux/memory_hotplug.h:184: error: 'ENOSYS' undeclared (first use in this function)
  606. include/linux/memory_hotplug.h: At top level:
  607. include/linux/memory_hotplug.h:205: error: expected declaration specifiers or '...' before 'u64'
  608. include/linux/memory_hotplug.h:205: error: expected declaration specifiers or '...' before 'u64'
  609. include/linux/memory_hotplug.h:206: error: expected declaration specifiers or '...' before 'u64'
  610. include/linux/memory_hotplug.h:206: error: expected declaration specifiers or '...' before 'u64'
  611. include/linux/memory_hotplug.h:207: error: expected ')' before 'start'
  612. In file included from include/linux/gfp.h:4,
  613.                  from include/linux/kmod.h:22,
  614.                  from include/linux/module.h:13,
  615.                  from /tmp/vbox.0/test.c:11:
  616. include/linux/mmzone.h: In function 'populated_zone':
  617. include/linux/mmzone.h:675: error: 'struct zone' has no member named 'present_pages'
  618. include/linux/mmzone.h: In function 'is_highmem':
  619. include/linux/mmzone.h:713: error: 'struct zone' has no member named 'zone_pgdat'
  620. include/linux/mmzone.h: In function 'is_normal':
  621. include/linux/mmzone.h:724: error: 'struct zone' has no member named 'zone_pgdat'
  622. include/linux/mmzone.h: In function 'is_dma':
  623. include/linux/mmzone.h:739: error: 'struct zone' has no member named 'zone_pgdat'
  624. include/linux/mmzone.h: At top level:
  625. include/linux/mmzone.h:748: error: expected declaration specifiers or '...' before 'size_t'
  626. include/linux/mmzone.h:748: error: expected declaration specifiers or '...' before 'loff_t'
  627. include/linux/mmzone.h:751: error: expected declaration specifiers or '...' before 'size_t'
  628. include/linux/mmzone.h:751: error: expected declaration specifiers or '...' before 'loff_t'
  629. include/linux/mmzone.h:753: error: expected declaration specifiers or '...' before 'size_t'
  630. include/linux/mmzone.h:753: error: expected declaration specifiers or '...' before 'loff_t'
  631. include/linux/mmzone.h:755: error: expected declaration specifiers or '...' before 'size_t'
  632. include/linux/mmzone.h:755: error: expected declaration specifiers or '...' before 'loff_t'
  633. include/linux/mmzone.h:757: error: expected declaration specifiers or '...' before 'size_t'
  634. include/linux/mmzone.h:757: error: expected declaration specifiers or '...' before 'loff_t'
  635. include/linux/mmzone.h:760: error: expected declaration specifiers or '...' before 'size_t'
  636. include/linux/mmzone.h:760: error: expected declaration specifiers or '...' before 'loff_t'
  637. In file included from include/linux/topology.h:30,
  638.                  from include/linux/gfp.h:7,
  639.                  from include/linux/kmod.h:22,
  640.                  from include/linux/module.h:13,
  641.                  from /tmp/vbox.0/test.c:11:
  642. include/linux/cpumask.h:583: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cpumask_size'
  643. include/linux/cpumask.h:705: error: 'BITS_PER_LONG' undeclared here (not in a function)
  644. In file included from include/linux/topology.h:30,
  645.                  from include/linux/gfp.h:7,
  646.                  from include/linux/kmod.h:22,
  647.                  from include/linux/module.h:13,
  648.                  from /tmp/vbox.0/test.c:11:
  649. include/linux/cpumask.h:716:16: warning: "BITS_PER_LONG" is not defined
  650. include/linux/cpumask.h:747:16: warning: "BITS_PER_LONG" is not defined
  651. In file included from include/linux/topology.h:33,
  652.                  from include/linux/gfp.h:7,
  653.                  from include/linux/kmod.h:22,
  654.                  from include/linux/module.h:13,
  655.                  from /tmp/vbox.0/test.c:11:
  656. include/linux/smp.h:20: error: expected specifier-qualifier-list before 'u16'
  657. In file included from include/linux/topology.h:33,
  658.                  from include/linux/gfp.h:7,
  659.                  from include/linux/kmod.h:22,
  660.                  from include/linux/module.h:13,
  661.                  from /tmp/vbox.0/test.c:11:
  662. include/linux/smp.h:36:21: error: asm/smp.h: No such file or directory
  663. In file included from include/linux/gfp.h:7,
  664.                  from include/linux/kmod.h:22,
  665.                  from include/linux/module.h:13,
  666.                  from /tmp/vbox.0/test.c:11:
  667. include/linux/topology.h:34:26: error: asm/topology.h: No such file or directory
  668. In file included from include/linux/kmod.h:22,
  669.                  from include/linux/module.h:13,
  670.                  from /tmp/vbox.0/test.c:11:
  671. include/linux/gfp.h: In function 'allocflags_to_migratetype':
  672. include/linux/gfp.h:123: error: implicit declaration of function 'WARN_ON'
  673. In file included from include/linux/kmod.h:22,
  674.                  from include/linux/module.h:13,
  675.                  from /tmp/vbox.0/test.c:11:
  676. include/linux/gfp.h:184:24: warning: "BITS_PER_LONG" is not defined
  677. include/linux/gfp.h:185:2: error: #error ZONES_SHIFT too large to create GFP_ZONE_TABLE integer
  678. include/linux/gfp.h: In function 'alloc_pages_node':
  679. include/linux/gfp.h:286: error: implicit declaration of function 'cpu_to_node'
  680. include/linux/gfp.h:286: error: implicit declaration of function 'raw_smp_processor_id'
  681. include/linux/gfp.h: At top level:
  682. include/linux/gfp.h:319: error: expected ')' before 'size'
  683. include/linux/gfp.h:320: error: expected declaration specifiers or '...' before 'size_t'
  684. In file included from include/linux/module.h:13,
  685.                  from /tmp/vbox.0/test.c:11:
  686. include/linux/kmod.h: In function 'call_usermodehelper':
  687. include/linux/kmod.h:83: error: 'ENOMEM' undeclared (first use in this function)
  688. include/linux/kmod.h: In function 'call_usermodehelper_keys':
  689. include/linux/kmod.h:96: error: 'ENOMEM' undeclared (first use in this function)
  690. In file included from include/linux/module.h:14,
  691.                  from /tmp/vbox.0/test.c:11:
  692. include/linux/elf.h:7:21: error: asm/elf.h: No such file or directory
  693. In file included from include/linux/module.h:14,
  694.                  from /tmp/vbox.0/test.c:11:
  695. include/linux/elf.h: At top level:
  696. include/linux/elf.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf32_Addr'
  697. include/linux/elf.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf32_Half'
  698. include/linux/elf.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf32_Off'
  699. include/linux/elf.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf32_Sword'
  700. include/linux/elf.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf32_Word'
  701. include/linux/elf.h:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_Addr'
  702. include/linux/elf.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_Half'
  703. include/linux/elf.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_SHalf'
  704. include/linux/elf.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_Off'
  705. include/linux/elf.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_Sword'
  706. include/linux/elf.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_Word'
  707. include/linux/elf.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_Xword'
  708. include/linux/elf.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Elf64_Sxword'
  709. include/linux/elf.h:150: error: expected specifier-qualifier-list before 'Elf32_Sword'
  710. include/linux/elf.h:158: error: expected specifier-qualifier-list before 'Elf64_Sxword'
  711. include/linux/elf.h:173: error: expected specifier-qualifier-list before 'Elf32_Addr'
  712. include/linux/elf.h:178: error: expected specifier-qualifier-list before 'Elf64_Addr'
  713. include/linux/elf.h:183: error: expected specifier-qualifier-list before 'Elf32_Addr'
  714. include/linux/elf.h:189: error: expected specifier-qualifier-list before 'Elf64_Addr'
  715. include/linux/elf.h:195: error: expected specifier-qualifier-list before 'Elf32_Word'
  716. include/linux/elf.h:204: error: expected specifier-qualifier-list before 'Elf64_Word'
  717. include/linux/elf.h:217: error: expected specifier-qualifier-list before 'Elf32_Half'
  718. include/linux/elf.h:234: error: expected specifier-qualifier-list before 'Elf64_Half'
  719. include/linux/elf.h:256: error: expected specifier-qualifier-list before 'Elf32_Word'
  720. include/linux/elf.h:267: error: expected specifier-qualifier-list before 'Elf64_Word'
  721. include/linux/elf.h:312: error: expected specifier-qualifier-list before 'Elf32_Word'
  722. include/linux/elf.h:325: error: expected specifier-qualifier-list before 'Elf64_Word'
  723. include/linux/elf.h:401: error: expected specifier-qualifier-list before 'Elf32_Word'
  724. include/linux/elf.h:408: error: expected specifier-qualifier-list before 'Elf64_Word'
  725. include/linux/elf.h:414:5: warning: "ELF_CLASS" is not defined
  726. include/linux/elf.h:440: error: expected declaration specifiers or '...' before 'loff_t'
  727. In file included from include/linux/kobject.h:21,
  728.                  from include/linux/module.h:16,
  729.                  from /tmp/vbox.0/test.c:11:
  730. include/linux/sysfs.h:32: error: expected specifier-qualifier-list before 'mode_t'
  731. include/linux/sysfs.h:62: error: expected specifier-qualifier-list before 'mode_t'
  732. include/linux/sysfs.h:93: error: expected specifier-qualifier-list before 'size_t'
  733. include/linux/sysfs.h:116: error: expected specifier-qualifier-list before 'ssize_t'
  734. include/linux/sysfs.h:138: error: expected declaration specifiers or '...' before 'mode_t'
  735. In file included from include/linux/module.h:16,
  736.                  from /tmp/vbox.0/test.c:11:
  737. include/linux/kobject.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uevent_seqnum'
  738. include/linux/kobject.h:129: error: expected specifier-qualifier-list before 'ssize_t'
  739. include/linux/kobject.h:209: error: expected declaration specifiers or '...' before 'size_t'
  740. In file included from include/linux/module.h:17,
  741.                  from /tmp/vbox.0/test.c:11:
  742. include/linux/moduleparam.h:44: error: expected specifier-qualifier-list before 'u16'
  743. In file included from include/linux/module.h:20,
  744.                  from /tmp/vbox.0/test.c:11:
  745. include/linux/percpu.h:10:24: error: asm/percpu.h: No such file or directory
  746. include/linux/percpu.h:58:5: warning: "BITS_PER_LONG" is not defined
  747. In file included from include/linux/module.h:20,
  748.                  from /tmp/vbox.0/test.c:11:
  749. include/linux/percpu.h:75: error: expected specifier-qualifier-list before 'size_t'
  750. include/linux/percpu.h:97: error: expected declaration specifiers or '...' before 'size_t'
  751. include/linux/percpu.h:98: error: expected declaration specifiers or '...' before 'size_t'
  752. include/linux/percpu.h:99: error: expected declaration specifiers or '...' before 'size_t'
  753. include/linux/percpu.h:108: error: expected ')' before 'reserved_size'
  754. include/linux/percpu.h:116: error: expected ')' before 'reserved_size'
  755. include/linux/percpu.h:124: error: expected ')' before 'reserved_size'
  756. include/linux/percpu.h:137: error: expected ')' before 'size'
  757. include/linux/percpu.h:163: error: expected ')' before 'size'
  758. include/linux/percpu.h:165: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'per_cpu_ptr_to_phys'
  759. In file included from /tmp/vbox.0/test.c:11:
  760. include/linux/module.h:21:24: error: asm/module.h: No such file or directory
  761. In file included from include/linux/module.h:23,
  762.                  from /tmp/vbox.0/test.c:11:
  763. include/trace/events/module.h: In function 'register_trace_module_load':
  764. include/trace/events/module.h:18: error: 'ENOSYS' undeclared (first use in this function)
  765. include/trace/events/module.h: In function 'unregister_trace_module_load':
  766. include/trace/events/module.h:18: error: 'ENOSYS' undeclared (first use in this function)
  767. include/trace/events/module.h: In function 'register_trace_module_free':
  768. include/trace/events/module.h:37: error: 'ENOSYS' undeclared (first use in this function)
  769. include/trace/events/module.h: In function 'unregister_trace_module_free':
  770. include/trace/events/module.h:37: error: 'ENOSYS' undeclared (first use in this function)
  771. include/trace/events/module.h: In function 'register_trace_module_get':
  772. include/trace/events/module.h:76: error: 'ENOSYS' undeclared (first use in this function)
  773. include/trace/events/module.h: In function 'unregister_trace_module_get':
  774. include/trace/events/module.h:76: error: 'ENOSYS' undeclared (first use in this function)
  775. include/trace/events/module.h: In function 'register_trace_module_put':
  776. include/trace/events/module.h:83: error: 'ENOSYS' undeclared (first use in this function)
  777. include/trace/events/module.h: In function 'unregister_trace_module_put':
  778. include/trace/events/module.h:83: error: 'ENOSYS' undeclared (first use in this function)
  779. include/trace/events/module.h: In function 'register_trace_module_request':
  780. include/trace/events/module.h:90: error: 'ENOSYS' undeclared (first use in this function)
  781. include/trace/events/module.h: In function 'unregister_trace_module_request':
  782. include/trace/events/module.h:90: error: 'ENOSYS' undeclared (first use in this function)
  783. In file included from /tmp/vbox.0/test.c:11:
  784. include/linux/module.h: At top level:
  785. include/linux/module.h:53: error: expected specifier-qualifier-list before 'ssize_t'
  786. include/linux/module.h:305: error: field 'arch' has incomplete type
  787. include/linux/module.h:322: error: expected specifier-qualifier-list before 'Elf_Sym'
  788. include/linux/module.h: In function '__module_get':
  789. include/linux/module.h:467: error: implicit declaration of function '__verify_pcpu_ptr'
  790. include/linux/module.h:467: error: 'struct module' has no member named 'refptr'
  791. include/linux/module.h:467: error: 'struct module' has no member named 'refptr'
  792. include/linux/module.h:467: error: implicit declaration of function '__this_cpu_ptr'
  793. include/linux/module.h:467: error: 'struct module' has no member named 'refptr'
  794. include/linux/module.h:467: error: invalid type argument of 'unary *' (have 'int')
  795. include/linux/module.h:467: error: 'struct module' has no member named 'refptr'
  796. include/linux/module.h:467: error: invalid type argument of 'unary *' (have 'int')
  797. include/linux/module.h:467: error: 'struct module' has no member named 'refptr'
  798. include/linux/module.h:467: error: invalid type argument of 'unary *' (have 'int')
  799. include/linux/module.h:467: error: 'struct module' has no member named 'refptr'
  800. include/linux/module.h:467: error: invalid type argument of 'unary *' (have 'int')
  801. include/linux/module.h:469: error: 'struct module' has no member named 'refptr'
  802. include/linux/module.h:469: warning: type defaults to 'int' in declaration of 'pscr_ret__'
  803. include/linux/module.h:469: error: 'struct module' has no member named 'refptr'
  804. include/linux/module.h:469: error: 'struct module' has no member named 'refptr'
  805. include/linux/module.h:469: error: 'struct module' has no member named 'refptr'
  806. include/linux/module.h:469: error: invalid type argument of 'unary *' (have 'int')
  807. include/linux/module.h:469: error: 'struct module' has no member named 'refptr'
  808. include/linux/module.h:469: error: invalid type argument of 'unary *' (have 'int')
  809. include/linux/module.h:469: error: 'struct module' has no member named 'refptr'
  810. include/linux/module.h:469: error: invalid type argument of 'unary *' (have 'int')
  811. include/linux/module.h:469: error: 'struct module' has no member named 'refptr'
  812. include/linux/module.h:469: error: invalid type argument of 'unary *' (have 'int')
  813. include/linux/module.h: In function 'try_module_get':
  814. include/linux/module.h:482: error: 'struct module' has no member named 'refptr'
  815. include/linux/module.h:482: error: 'struct module' has no member named 'refptr'
  816. include/linux/module.h:482: error: 'struct module' has no member named 'refptr'
  817. include/linux/module.h:482: error: invalid type argument of 'unary *' (have 'int')
  818. include/linux/module.h:482: error: 'struct module' has no member named 'refptr'
  819. include/linux/module.h:482: error: invalid type argument of 'unary *' (have 'int')
  820. include/linux/module.h:482: error: 'struct module' has no member named 'refptr'
  821. include/linux/module.h:482: error: invalid type argument of 'unary *' (have 'int')
  822. include/linux/module.h:482: error: 'struct module' has no member named 'refptr'
  823. include/linux/module.h:482: error: invalid type argument of 'unary *' (have 'int')
  824. include/linux/module.h:484: error: 'struct module' has no member named 'refptr'
  825. include/linux/module.h:484: warning: type defaults to 'int' in declaration of 'pscr_ret__'
  826. include/linux/module.h:484: error: 'struct module' has no member named 'refptr'
  827. include/linux/module.h:484: error: 'struct module' has no member named 'refptr'
  828. include/linux/module.h:484: error: 'struct module' has no member named 'refptr'
  829. include/linux/module.h:484: error: invalid type argument of 'unary *' (have 'int')
  830. include/linux/module.h:484: error: 'struct module' has no member named 'refptr'
  831. include/linux/module.h:484: error: invalid type argument of 'unary *' (have 'int')
  832. include/linux/module.h:484: error: 'struct module' has no member named 'refptr'
  833. include/linux/module.h:484: error: invalid type argument of 'unary *' (have 'int')
  834. include/linux/module.h:484: error: 'struct module' has no member named 'refptr'
  835. include/linux/module.h:484: error: invalid type argument of 'unary *' (have 'int')
  836. include/linux/module.h: At top level:
  837. include/linux/module.h:715: warning: type defaults to 'int' in declaration of 'Elf_Ehdr'
  838. include/linux/module.h:715: error: expected ';', ',' or ')' before '*' token
  839. make[2]: *** [/tmp/vbox.0/test.o] Error 1
  840. make[1]: *** [_module_/tmp/vbox.0] Error 2
  841. make: *** [vboxadd_test] Error 2
  842. Creating user for the Guest Additions.
  843. Creating udev rule for the Guest Additions kernel module.
RAW Paste Data
Top