Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2010
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.83 KB | None | 0 0
  1. root@Dockstar:/tmp/hd-idle-1.01# make
  2. gcc -g  -Wall   -c -o hd-idle.o hd-idle.c
  3. hd-idle.c:90:20: error: stdlib.h: No such file or directory
  4. hd-idle.c:91:19: error: stdio.h: No such file or directory
  5. hd-idle.c:92:20: error: string.h: No such file or directory
  6. hd-idle.c:93:18: error: time.h: No such file or directory
  7. hd-idle.c:94:19: error: ctype.h: No such file or directory
  8. hd-idle.c:95:19: error: errno.h: No such file or directory
  9. hd-idle.c:96:20: error: unistd.h: No such file or directory
  10. hd-idle.c:98:19: error: fcntl.h: No such file or directory
  11. hd-idle.c:99:23: error: sys/types.h: No such file or directory
  12. hd-idle.c:100:22: error: sys/stat.h: No such file or directory
  13. hd-idle.c:101:23: error: sys/ioctl.h: No such file or directory
  14. hd-idle.c:102:21: error: scsi/sg.h: No such file or directory
  15. hd-idle.c:103:23: error: scsi/scsi.h: No such file or directory
  16. hd-idle.c:121: error: expected specifier-qualifier-list before 'time_t'
  17. hd-idle.c: In function 'main':
  18. hd-idle.c:152: warning: implicit declaration of function 'malloc'
  19. hd-idle.c:152: warning: incompatible implicit declaration of built-in function 'malloc'
  20. hd-idle.c:152: error: 'NULL' undeclared (first use in this function)
  21. hd-idle.c:152: error: (Each undeclared identifier is reported only once
  22. hd-idle.c:152: error: for each function it appears in.)
  23. hd-idle.c:153: warning: implicit declaration of function 'fprintf'
  24. hd-idle.c:153: warning: incompatible implicit declaration of built-in function 'fprintf'
  25. hd-idle.c:153: error: 'stderr' undeclared (first use in this function)
  26. hd-idle.c:154: warning: implicit declaration of function 'exit'
  27. hd-idle.c:154: warning: incompatible implicit declaration of built-in function 'exit'
  28. hd-idle.c:162: warning: implicit declaration of function 'getopt'
  29. hd-idle.c:167: error: 'optarg' undeclared (first use in this function)
  30. hd-idle.c:173: warning: incompatible implicit declaration of built-in function 'fprintf'
  31. hd-idle.c:184: warning: implicit declaration of function 'atoi'
  32. hd-idle.c:197: warning: implicit declaration of function 'printf'
  33. hd-idle.c:197: warning: incompatible implicit declaration of built-in function 'printf'
  34. hd-idle.c:201: warning: incompatible implicit declaration of built-in function 'fprintf'
  35. hd-idle.c:201: error: 'optopt' undeclared (first use in this function)
  36. hd-idle.c:229: error: 'FILE' undeclared (first use in this function)
  37. hd-idle.c:229: error: 'fp' undeclared (first use in this function)
  38. hd-idle.c:232: warning: implicit declaration of function 'fopen'
  39. hd-idle.c:233: warning: implicit declaration of function 'perror'
  40. hd-idle.c:237: warning: implicit declaration of function 'memset'
  41. hd-idle.c:237: warning: incompatible implicit declaration of built-in function 'memset'
  42. hd-idle.c:239: warning: implicit declaration of function 'fgets'
  43. hd-idle.c:240: warning: implicit declaration of function 'sscanf'
  44. hd-idle.c:240: warning: incompatible implicit declaration of built-in function 'sscanf'
  45. hd-idle.c:241: error: 'DISKSTATS' has no member named 'reads'
  46. hd-idle.c:241: error: 'DISKSTATS' has no member named 'writes'
  47. hd-idle.c:243: error: 'time_t' undeclared (first use in this function)
  48. hd-idle.c:243: error: expected ';' before 'now'
  49. hd-idle.c:248: warning: implicit declaration of function 'isalpha'
  50. hd-idle.c:253: warning: incompatible implicit declaration of built-in function 'printf'
  51. hd-idle.c:253: error: 'DISKSTATS' has no member named 'reads'
  52. hd-idle.c:253: error: 'DISKSTATS' has no member named 'writes'
  53. hd-idle.c:261: warning: incompatible implicit declaration of built-in function 'fprintf'
  54. hd-idle.c:264: warning: implicit declaration of function 'memcpy'
  55. hd-idle.c:264: warning: incompatible implicit declaration of built-in function 'memcpy'
  56. hd-idle.c:265: error: 'DISKSTATS' has no member named 'last_io'
  57. hd-idle.c:265: error: 'now' undeclared (first use in this function)
  58. hd-idle.c:266: error: 'DISKSTATS' has no member named 'spinup'
  59. hd-idle.c:266: error: 'DISKSTATS' has no member named 'last_io'
  60. hd-idle.c:276: warning: implicit declaration of function 'strcmp'
  61. hd-idle.c:282: error: 'DISKSTATS' has no member named 'reads'
  62. hd-idle.c:282: error: 'DISKSTATS' has no member named 'reads'
  63. hd-idle.c:282: error: 'DISKSTATS' has no member named 'writes'
  64. hd-idle.c:282: error: 'DISKSTATS' has no member named 'writes'
  65. hd-idle.c:283: error: 'DISKSTATS' has no member named 'spun_down'
  66. hd-idle.c:285: error: 'DISKSTATS' has no member named 'last_io'
  67. hd-idle.c:287: error: 'DISKSTATS' has no member named 'spindown'
  68. hd-idle.c:288: error: 'DISKSTATS' has no member named 'spun_down'
  69. hd-idle.c:294: error: 'DISKSTATS' has no member named 'spun_down'
  70. hd-idle.c:299: error: 'DISKSTATS' has no member named 'spinup'
  71. hd-idle.c:301: error: 'DISKSTATS' has no member named 'reads'
  72. hd-idle.c:301: error: 'DISKSTATS' has no member named 'reads'
  73. hd-idle.c:302: error: 'DISKSTATS' has no member named 'writes'
  74. hd-idle.c:302: error: 'DISKSTATS' has no member named 'writes'
  75. hd-idle.c:303: error: 'DISKSTATS' has no member named 'last_io'
  76. hd-idle.c:304: error: 'DISKSTATS' has no member named 'spun_down'
  77. hd-idle.c:309: warning: implicit declaration of function 'fclose'
  78. hd-idle.c:310: warning: implicit declaration of function 'sleep'
  79. hd-idle.c: In function 'daemonize':
  80. hd-idle.c:323: warning: implicit declaration of function 'fork'
  81. hd-idle.c:325: warning: incompatible implicit declaration of built-in function 'exit'
  82. hd-idle.c:327: warning: implicit declaration of function '_exit'
  83. hd-idle.c:327: warning: incompatible implicit declaration of built-in function '_exit'
  84. hd-idle.c:332: warning: implicit declaration of function 'setsid'
  85. hd-idle.c:335: warning: incompatible implicit declaration of built-in function 'exit'
  86. hd-idle.c:337: warning: incompatible implicit declaration of built-in function '_exit'
  87. hd-idle.c:341: warning: implicit declaration of function 'chdir'
  88. hd-idle.c:342: warning: implicit declaration of function 'getdtablesize'
  89. hd-idle.c:344: warning: implicit declaration of function 'close'
  90. hd-idle.c:348: warning: implicit declaration of function 'open'
  91. hd-idle.c:348: error: 'O_RDONLY' undeclared (first use in this function)
  92. hd-idle.c:349: error: 'O_WRONLY' undeclared (first use in this function)
  93. hd-idle.c: In function 'get_diskstats':
  94. hd-idle.c:358: error: 'NULL' undeclared (first use in this function)
  95. hd-idle.c: In function 'spindown_disk':
  96. hd-idle.c:370: error: storage size of 'io_hdr' isn't known
  97. hd-idle.c:375: warning: incompatible implicit declaration of built-in function 'printf'
  98. hd-idle.c:378: warning: incompatible implicit declaration of built-in function 'memset'
  99. hd-idle.c:380: error: 'SG_DXFER_NONE' undeclared (first use in this function)
  100. hd-idle.c:390: warning: implicit declaration of function 'snprintf'
  101. hd-idle.c:390: warning: incompatible implicit declaration of built-in function 'snprintf'
  102. hd-idle.c:391: error: 'O_RDONLY' undeclared (first use in this function)
  103. hd-idle.c:397: warning: implicit declaration of function 'ioctl'
  104. hd-idle.c:397: error: 'SG_IO' undeclared (first use in this function)
  105. hd-idle.c:403: warning: incompatible implicit declaration of built-in function 'fprintf'
  106. hd-idle.c:403: error: 'stderr' undeclared (first use in this function)
  107. hd-idle.c:370: warning: unused variable 'io_hdr'
  108. hd-idle.c: In function 'log_spinup':
  109. hd-idle.c:413: error: 'FILE' undeclared (first use in this function)
  110. hd-idle.c:413: error: 'fp' undeclared (first use in this function)
  111. hd-idle.c:415: error: 'NULL' undeclared (first use in this function)
  112. hd-idle.c:424: error: 'time_t' undeclared (first use in this function)
  113. hd-idle.c:424: error: expected ';' before 'now'
  114. hd-idle.c:428: warning: implicit declaration of function 'strftime'
  115. hd-idle.c:428: warning: incompatible implicit declaration of built-in function 'strftime'
  116. hd-idle.c:428: warning: implicit declaration of function 'localtime'
  117. hd-idle.c:428: error: 'now' undeclared (first use in this function)
  118. hd-idle.c:430: warning: incompatible implicit declaration of built-in function 'fprintf'
  119. hd-idle.c:433: error: 'DISKSTATS' has no member named 'spindown'
  120. hd-idle.c:433: error: 'DISKSTATS' has no member named 'spinup'
  121. hd-idle.c:434: warning: implicit declaration of function 'time'
  122. hd-idle.c:434: error: 'DISKSTATS' has no member named 'spindown'
  123. hd-idle.c:441: warning: implicit declaration of function 'sync'
  124. hd-idle.c: In function 'disk_name':
  125. hd-idle.c:456: error: 'ssize_t' undeclared (first use in this function)
  126. hd-idle.c:456: error: expected ';' before 'len'
  127. hd-idle.c:465: error: 'len' undeclared (first use in this function)
  128. hd-idle.c:465: warning: implicit declaration of function 'readlink'
  129. hd-idle.c:466: error: 'errno' undeclared (first use in this function)
  130. hd-idle.c:466: error: 'EINVAL' undeclared (first use in this function)
  131. hd-idle.c:472: warning: implicit declaration of function 'strncpy'
  132. hd-idle.c:472: warning: incompatible implicit declaration of built-in function 'strncpy'
  133. hd-idle.c:474: warning: implicit declaration of function 'strlen'
  134. hd-idle.c:474: warning: incompatible implicit declaration of built-in function 'strlen'
  135. hd-idle.c:479: warning: incompatible implicit declaration of built-in function 'strlen'
  136. hd-idle.c:479: warning: implicit declaration of function 'isdigit'
  137. hd-idle.c:486: warning: implicit declaration of function 'strrchr'
  138. hd-idle.c:486: warning: incompatible implicit declaration of built-in function 'strrchr'
  139. hd-idle.c:486: error: 'NULL' undeclared (first use in this function)
  140. hd-idle.c:492: warning: implicit declaration of function 'strdup'
  141. hd-idle.c:492: warning: incompatible implicit declaration of built-in function 'strdup'
  142. hd-idle.c:493: warning: incompatible implicit declaration of built-in function 'fprintf'
  143. hd-idle.c:493: error: 'stderr' undeclared (first use in this function)
  144. hd-idle.c:494: warning: incompatible implicit declaration of built-in function 'exit'
  145. hd-idle.c:498: warning: incompatible implicit declaration of built-in function 'printf'
  146. make: *** [hd-idle.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement