Guest User

Untitled

a guest
Nov 24th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.07 KB | None | 0 0
  1. root ~ $ rpmbuild --rebuild lin_tape-3.0.16-1.src.rpm ELEMENTS-DEFAULT
  2. Installing lin_tape-3.0.16-1.src.rpm
  3. Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lqGFW1
  4. + umask 022
  5. + cd /root/rpmbuild/BUILD
  6. + cd /root/rpmbuild/BUILD
  7. + rm -rf lin_tape-3.0.16
  8. + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.16.tgz
  9. + /usr/bin/tar -xf -
  10. + STATUS=0
  11. + '[' 0 -ne 0 ']'
  12. + cd lin_tape-3.0.16
  13. + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  14. + exit 0
  15. Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NbjokU
  16. + umask 022
  17. + cd /root/rpmbuild/BUILD
  18. + cd lin_tape-3.0.16
  19. ++ echo x86_64-redhat-linux-gnu
  20. ++ cut -f 1 -d -
  21. + p=x86_64
  22. + '[' x86_64 == i386 ']'
  23. + '[' x86_64 == i586 ']'
  24. + '[' x86_64 == i686 ']'
  25. + '[' x86_64 == ppc64 ']'
  26. + '[' x86_64 == powerpc ']'
  27. + '[' x86_64 == powerpc64 ']'
  28. + '[' x86_64 == s390 ']'
  29. + '[' x86_64 == s390x ']'
  30. + '[' x86_64 == ia64 ']'
  31. + '[' x86_64 == x86_64 ']'
  32. + proc=AMD
  33. + make KERNEL=4.11.6-ELEMENTS PROC=x86_64 driver
  34. make -C /lib/modules/4.11.6-ELEMENTS/build SUBDIRS=/root/rpmbuild/BUILD/lin_tape-3.0.16 PWD=/root/rpmbuild/BU ILD/lin_tape-3.0.16 clean
  35. make[1]: Entering directory `/usr/src/kernels/linux-4.11.6'
  36. make[1]: Leaving directory `/usr/src/kernels/linux-4.11.6'
  37. mkdir bldtmp
  38. make KERNEL=4.11.6-ELEMENTS compileclean lin_tape.ko
  39. make[1]: Entering directory `/root/rpmbuild/BUILD/lin_tape-3.0.16'
  40. rm -f *.o
  41. export PWD
  42. make -C /lib/modules/4.11.6-ELEMENTS/build SUBDIRS=/root/rpmbuild/BUILD/lin_tape-3.0.16 PWD=/root/rpmbuild/BU ILD/lin_tape-3.0.16 modules
  43. make[2]: Entering directory `/usr/src/kernels/linux-4.11.6'
  44. CC [M] /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.o
  45. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:255:2: error: unknown field ‘owner’ specified in initializer
  46. .owner = THIS_MODULE,
  47. ^
  48. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:255:2: warning: missing braces around initializer [-Wmissing-brac es]
  49. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:255:2: warning: (near initialization for ‘st_template.gendrv’) [- Wmissing-braces]
  50. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:255:2: warning: initialization from incompatible pointer type [en abled by default]
  51. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:255:2: warning: (near initialization for ‘st_template.gendrv.nam ’) [enabled by default]
  52. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c: In function ‘st_chk_result’:
  53. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:480:4: warning: passing argument 1 of ‘__scsi_print_sense’ from i ncompatible pointer type [enabled by default]
  54. __scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
  55. ^
  56. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:79:0:
  57. ./include/scsi/scsi_dbg.h:18:13: note: expected ‘const struct scsi_device *’ but argument is of type ‘char *’
  58. extern void __scsi_print_sense(const struct scsi_device *, const char *name,
  59. ^
  60. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:480:4: warning: passing argument 3 of ‘__scsi_print_sense’ makes pointer from integer without a cast [enabled by default]
  61. __scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
  62. ^
  63. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:79:0:
  64. ./include/scsi/scsi_dbg.h:18:13: note: expected ‘const unsigned char *’ but argument is of type ‘int’
  65. extern void __scsi_print_sense(const struct scsi_device *, const char *name,
  66. ^
  67. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:480:4: error: too few arguments to function ‘__scsi_print_sense’
  68. __scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
  69. ^
  70. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:79:0:
  71. ./include/scsi/scsi_dbg.h:18:13: note: declared here
  72. extern void __scsi_print_sense(const struct scsi_device *, const char *name,
  73. ^
  74. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c: In function ‘st_allocate_request’:
  75. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:538:3: error: implicit declaration of function ‘signal_pending’ [ -Werror=implicit-function-declaration]
  76. if (signal_pending(current))
  77. ^
  78. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c: In function ‘st_scsi_execute_end’:
  79. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:559:37: error: ‘struct request’ has no member named ‘resid_len’
  80. STp->buffer->cmdstat.residual = req->resid_len;
  81. ^
  82. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c: In function ‘st_scsi_execute’:
  83. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:612:5: error: ‘struct request’ has no member named ‘cmd_type’
  84. req->cmd_type = REQ_TYPE_BLOCK_PC;
  85. ^
  86. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:612:18: error: ‘REQ_TYPE_BLOCK_PC’ undeclared (first use in this function)
  87. req->cmd_type = REQ_TYPE_BLOCK_PC;
  88. ^
  89. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:612:18: note: each undeclared identifier is reported only once fo r each function it appears in
  90. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:613:20: error: ‘REQ_QUIET’ undeclared (first use in this function )
  91. req->cmd_flags |= REQ_QUIET;
  92. ^
  93. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:627:5: error: ‘struct request’ has no member named ‘cmd_len’
  94. req->cmd_len = COMMAND_SIZE(cmd[0]);
  95. ^
  96. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:628:12: error: ‘struct request’ has no member named ‘cmd’
  97. memset(req->cmd, 0, BLK_MAX_CDB);
  98. ^
  99. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:629:12: error: ‘struct request’ has no member named ‘cmd’
  100. memcpy(req->cmd, cmd, req->cmd_len);
  101. ^
  102. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:629:27: error: ‘struct request’ has no member named ‘cmd_len’
  103. memcpy(req->cmd, cmd, req->cmd_len);
  104. ^
  105. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:630:5: error: ‘struct request’ has no member named ‘sense’
  106. req->sense = SRpnt->sense;
  107. ^
  108. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:631:5: error: ‘struct request’ has no member named ‘sense_len’
  109. req->sense_len = 0;
  110. ^
  111. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c: In function ‘st_ioctl’:
  112. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:3513:2: error: implicit declaration of function ‘scsi_nonblockabl e_ioctl’ [-Werror=implicit-function-declaration]
  113. retval = scsi_nonblockable_ioctl(STp->device, cmd_in, p,
  114. ^
  115. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c: At top level:
  116. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:4810:2: error: unknown field ‘dev_attrs’ specified in initializer
  117. .dev_attrs = st_dev_attrs,
  118. ^
  119. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:4810:2: warning: initialization from incompatible pointer type [e nabled by default]
  120. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:4810:2: warning: (near initialization for ‘st_sysfs_class.owner’) [enabled by default]
  121. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c: In function ‘sgl_map_user_pages’:
  122. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:5214:3: warning: passing argument 1 of ‘get_user_pages’ makes int eger from pointer without a cast [enabled by default]
  123. NULL);
  124. ^
  125. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:50:0:
  126. ./include/linux/mm.h:1308:6: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct ’
  127. long get_user_pages(unsigned long start, unsigned long nr_pages,
  128. ^
  129. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:5214:3: warning: passing argument 2 of ‘get_user_pages’ makes int eger from pointer without a cast [enabled by default]
  130. NULL);
  131. ^
  132. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:50:0:
  133. ./include/linux/mm.h:1308:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  134. long get_user_pages(unsigned long start, unsigned long nr_pages,
  135. ^
  136. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:5214:3: warning: passing argument 4 of ‘get_user_pages’ makes poi nter from integer without a cast [enabled by default]
  137. NULL);
  138. ^
  139. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:50:0:
  140. ./include/linux/mm.h:1308:6: note: expected ‘struct page **’ but argument is of type ‘int’
  141. long get_user_pages(unsigned long start, unsigned long nr_pages,
  142. ^
  143. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:5214:3: warning: passing argument 5 of ‘get_user_pages’ makes poi nter from integer without a cast [enabled by default]
  144. NULL);
  145. ^
  146. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:50:0:
  147. ./include/linux/mm.h:1308:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’
  148. long get_user_pages(unsigned long start, unsigned long nr_pages,
  149. ^
  150. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:5214:3: error: too many arguments to function ‘get_user_pages’
  151. NULL);
  152. ^
  153. In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:50:0:
  154. ./include/linux/mm.h:1308:6: note: declared here
  155. long get_user_pages(unsigned long start, unsigned long nr_pages,
  156. ^
  157. /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:5235:4: error: implicit declaration of function ‘page_cache_relea se’ [-Werror=implicit-function-declaration]
  158. page_cache_release(pages[j]);
  159. ^
  160. cc1: some warnings being treated as errors
  161. make[3]: *** [/root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.o] Error 1
  162. make[2]: *** [_module_/root/rpmbuild/BUILD/lin_tape-3.0.16] Error 2
  163. make[2]: Leaving directory `/usr/src/kernels/linux-4.11.6'
  164. make[1]: *** [lin_tape.ko] Error 2
  165. make[1]: Leaving directory `/root/rpmbuild/BUILD/lin_tape-3.0.16'
  166. make: *** [bldtmp/lin_tape-4.11.6-ELEMENTS.ko] Error 2
  167. error: Bad exit status from /var/tmp/rpm-tmp.NbjokU (%build)
  168.  
  169.  
  170. RPM build errors:
  171. Bad exit status from /var/tmp/rpm-tmp.NbjokU (%build)
  172. root ~ exitcode 1 $ grep| less /var/log/messages ELEMENTS-DEFAULT
  173. Usage: grep [OPTION]... PATTERN [FILE]...
  174. Try 'grep --help' for more information.
  175. Nov 20 03:34:01 ELEMENTS-DEFAULT systemd: Removed slice user-0.slice.
  176. Nov 20 03:34:01 ELEMENTS-DEFAULT systemd: Stopping user-0.slice.
  177. Nov 20 03:37:07 ELEMENTS-DEFAULT dhclient[732]: DHCPREQUEST on eno1 to 192.168.77.110 port 67 (xid=0x6dbed328)
  178. Nov 20 03:37:07 ELEMENTS-DEFAULT dhclient[732]: DHCPACK from 192.168.77.110 (xid=0x6dbed328)
  179. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): address 192.168.73.59
  180. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): plen 21 (255.255.248.0)
  181. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): gateway 192.168.77.1
  182. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): server identifier 192.168.77.110
  183. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): lease time 600
  184. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): nameserver '192.168.77.100'
  185. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): domain name 'syslink.intern'
  186. Nov 20 03:37:07 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145427.1479] dhcp4 (eno1): state changed bound -> bound
  187. Nov 20 03:37:07 ELEMENTS-DEFAULT dbus-daemon: dbus[679]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
  188. Nov 20 03:37:07 ELEMENTS-DEFAULT dbus[679]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
  189. Nov 20 03:37:07 ELEMENTS-DEFAULT dhclient[732]: bound to 192.168.73.59 -- renewal in 290 seconds.
  190. Nov 20 03:37:07 ELEMENTS-DEFAULT systemd: Starting Network Manager Script Dispatcher Service...
  191. Nov 20 03:37:07 ELEMENTS-DEFAULT dbus-daemon: dbus[679]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
  192. Nov 20 03:37:07 ELEMENTS-DEFAULT dbus[679]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
  193. Nov 20 03:37:07 ELEMENTS-DEFAULT systemd: Started Network Manager Script Dispatcher Service.
  194. Nov 20 03:37:07 ELEMENTS-DEFAULT nm-dispatcher: req:1 'dhcp4-change' [eno1]: new request (4 scripts)
  195. Nov 20 03:37:07 ELEMENTS-DEFAULT nm-dispatcher: req:1 'dhcp4-change' [eno1]: start running ordered scripts...
  196. Nov 20 03:40:01 ELEMENTS-DEFAULT systemd: Created slice user-0.slice.
  197. Nov 20 03:40:01 ELEMENTS-DEFAULT systemd: Starting user-0.slice.
  198. Nov 20 03:40:01 ELEMENTS-DEFAULT systemd: Started Session 615 of user root.
  199. Nov 20 03:40:01 ELEMENTS-DEFAULT systemd: Starting Session 615 of user root.
  200. Nov 20 03:40:01 ELEMENTS-DEFAULT systemd: Removed slice user-0.slice.
  201. Nov 20 03:40:01 ELEMENTS-DEFAULT systemd: Stopping user-0.slice.
  202. Nov 20 03:41:57 ELEMENTS-DEFAULT dhclient[732]: DHCPREQUEST on eno1 to 192.168.77.110 port 67 (xid=0x6dbed328)
  203. Nov 20 03:41:57 ELEMENTS-DEFAULT dhclient[732]: DHCPACK from 192.168.77.110 (xid=0x6dbed328)
  204. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): address 192.168.73.59
  205. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): plen 21 (255.255.248.0)
  206. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): gateway 192.168.77.1
  207. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): server identifier 192.168.77.110
  208. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): lease time 600
  209. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): nameserver '192.168.77.100'
  210. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): domain name 'syslink.intern'
  211. Nov 20 03:41:57 ELEMENTS-DEFAULT NetworkManager[687]: <info> [1511145717.9983] dhcp4 (eno1): state changed bound -> bound
  212. Nov 20 03:41:57 ELEMENTS-DEFAULT dbus[679]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
  213. Nov 20 03:41:57 ELEMENTS-DEFAULT dbus-daemon: dbus[679]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
  214. Nov 20 03:41:57 ELEMENTS-DEFAULT dhclient[732]: bound to 192.168.73.59 -- renewal in 269 seconds.
  215. Nov 20 03:41:58 ELEMENTS-DEFAULT systemd: Starting Network Manager Script Dispatcher Service...
  216. Nov 20 03:41:58 ELEMENTS-DEFAULT dbus-daemon: dbus[679]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
  217. Nov 20 03:41:58 ELEMENTS-DEFAULT dbus[679]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
  218. Nov 20 03:41:58 ELEMENTS-DEFAULT systemd: Started Network Manager Script Dispatcher Service.
  219. Nov 20 03:41:58 ELEMENTS-DEFAULT nm-dispatcher: req:1 'dhcp4-change' [eno1]: new request (4 scripts)
  220. Nov 20 03:41:58 ELEMENTS-DEFAULT nm-dispatcher: req:1 'dhcp4-change' [eno1]: start running ordered scripts...
  221. Nov 20 03:46:27 ELEMENTS-DEFAULT dhclient[732]: DHCPREQUEST on eno1 to 192.168.77.110 port 67 (xid=0x6dbed328)
Add Comment
Please, Sign In to add comment