Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@Dockstar:/tmp/hd-idle-1.01# make
- gcc -g -Wall -c -o hd-idle.o hd-idle.c
- hd-idle.c:90:20: error: stdlib.h: No such file or directory
- hd-idle.c:91:19: error: stdio.h: No such file or directory
- hd-idle.c:92:20: error: string.h: No such file or directory
- hd-idle.c:93:18: error: time.h: No such file or directory
- hd-idle.c:94:19: error: ctype.h: No such file or directory
- hd-idle.c:95:19: error: errno.h: No such file or directory
- hd-idle.c:96:20: error: unistd.h: No such file or directory
- hd-idle.c:98:19: error: fcntl.h: No such file or directory
- hd-idle.c:99:23: error: sys/types.h: No such file or directory
- hd-idle.c:100:22: error: sys/stat.h: No such file or directory
- hd-idle.c:101:23: error: sys/ioctl.h: No such file or directory
- hd-idle.c:102:21: error: scsi/sg.h: No such file or directory
- hd-idle.c:103:23: error: scsi/scsi.h: No such file or directory
- hd-idle.c:121: error: expected specifier-qualifier-list before 'time_t'
- hd-idle.c: In function 'main':
- hd-idle.c:152: warning: implicit declaration of function 'malloc'
- hd-idle.c:152: warning: incompatible implicit declaration of built-in function 'malloc'
- hd-idle.c:152: error: 'NULL' undeclared (first use in this function)
- hd-idle.c:152: error: (Each undeclared identifier is reported only once
- hd-idle.c:152: error: for each function it appears in.)
- hd-idle.c:153: warning: implicit declaration of function 'fprintf'
- hd-idle.c:153: warning: incompatible implicit declaration of built-in function 'fprintf'
- hd-idle.c:153: error: 'stderr' undeclared (first use in this function)
- hd-idle.c:154: warning: implicit declaration of function 'exit'
- hd-idle.c:154: warning: incompatible implicit declaration of built-in function 'exit'
- hd-idle.c:162: warning: implicit declaration of function 'getopt'
- hd-idle.c:167: error: 'optarg' undeclared (first use in this function)
- hd-idle.c:173: warning: incompatible implicit declaration of built-in function 'fprintf'
- hd-idle.c:184: warning: implicit declaration of function 'atoi'
- hd-idle.c:197: warning: implicit declaration of function 'printf'
- hd-idle.c:197: warning: incompatible implicit declaration of built-in function 'printf'
- hd-idle.c:201: warning: incompatible implicit declaration of built-in function 'fprintf'
- hd-idle.c:201: error: 'optopt' undeclared (first use in this function)
- hd-idle.c:229: error: 'FILE' undeclared (first use in this function)
- hd-idle.c:229: error: 'fp' undeclared (first use in this function)
- hd-idle.c:232: warning: implicit declaration of function 'fopen'
- hd-idle.c:233: warning: implicit declaration of function 'perror'
- hd-idle.c:237: warning: implicit declaration of function 'memset'
- hd-idle.c:237: warning: incompatible implicit declaration of built-in function 'memset'
- hd-idle.c:239: warning: implicit declaration of function 'fgets'
- hd-idle.c:240: warning: implicit declaration of function 'sscanf'
- hd-idle.c:240: warning: incompatible implicit declaration of built-in function 'sscanf'
- hd-idle.c:241: error: 'DISKSTATS' has no member named 'reads'
- hd-idle.c:241: error: 'DISKSTATS' has no member named 'writes'
- hd-idle.c:243: error: 'time_t' undeclared (first use in this function)
- hd-idle.c:243: error: expected ';' before 'now'
- hd-idle.c:248: warning: implicit declaration of function 'isalpha'
- hd-idle.c:253: warning: incompatible implicit declaration of built-in function 'printf'
- hd-idle.c:253: error: 'DISKSTATS' has no member named 'reads'
- hd-idle.c:253: error: 'DISKSTATS' has no member named 'writes'
- hd-idle.c:261: warning: incompatible implicit declaration of built-in function 'fprintf'
- hd-idle.c:264: warning: implicit declaration of function 'memcpy'
- hd-idle.c:264: warning: incompatible implicit declaration of built-in function 'memcpy'
- hd-idle.c:265: error: 'DISKSTATS' has no member named 'last_io'
- hd-idle.c:265: error: 'now' undeclared (first use in this function)
- hd-idle.c:266: error: 'DISKSTATS' has no member named 'spinup'
- hd-idle.c:266: error: 'DISKSTATS' has no member named 'last_io'
- hd-idle.c:276: warning: implicit declaration of function 'strcmp'
- hd-idle.c:282: error: 'DISKSTATS' has no member named 'reads'
- hd-idle.c:282: error: 'DISKSTATS' has no member named 'reads'
- hd-idle.c:282: error: 'DISKSTATS' has no member named 'writes'
- hd-idle.c:282: error: 'DISKSTATS' has no member named 'writes'
- hd-idle.c:283: error: 'DISKSTATS' has no member named 'spun_down'
- hd-idle.c:285: error: 'DISKSTATS' has no member named 'last_io'
- hd-idle.c:287: error: 'DISKSTATS' has no member named 'spindown'
- hd-idle.c:288: error: 'DISKSTATS' has no member named 'spun_down'
- hd-idle.c:294: error: 'DISKSTATS' has no member named 'spun_down'
- hd-idle.c:299: error: 'DISKSTATS' has no member named 'spinup'
- hd-idle.c:301: error: 'DISKSTATS' has no member named 'reads'
- hd-idle.c:301: error: 'DISKSTATS' has no member named 'reads'
- hd-idle.c:302: error: 'DISKSTATS' has no member named 'writes'
- hd-idle.c:302: error: 'DISKSTATS' has no member named 'writes'
- hd-idle.c:303: error: 'DISKSTATS' has no member named 'last_io'
- hd-idle.c:304: error: 'DISKSTATS' has no member named 'spun_down'
- hd-idle.c:309: warning: implicit declaration of function 'fclose'
- hd-idle.c:310: warning: implicit declaration of function 'sleep'
- hd-idle.c: In function 'daemonize':
- hd-idle.c:323: warning: implicit declaration of function 'fork'
- hd-idle.c:325: warning: incompatible implicit declaration of built-in function 'exit'
- hd-idle.c:327: warning: implicit declaration of function '_exit'
- hd-idle.c:327: warning: incompatible implicit declaration of built-in function '_exit'
- hd-idle.c:332: warning: implicit declaration of function 'setsid'
- hd-idle.c:335: warning: incompatible implicit declaration of built-in function 'exit'
- hd-idle.c:337: warning: incompatible implicit declaration of built-in function '_exit'
- hd-idle.c:341: warning: implicit declaration of function 'chdir'
- hd-idle.c:342: warning: implicit declaration of function 'getdtablesize'
- hd-idle.c:344: warning: implicit declaration of function 'close'
- hd-idle.c:348: warning: implicit declaration of function 'open'
- hd-idle.c:348: error: 'O_RDONLY' undeclared (first use in this function)
- hd-idle.c:349: error: 'O_WRONLY' undeclared (first use in this function)
- hd-idle.c: In function 'get_diskstats':
- hd-idle.c:358: error: 'NULL' undeclared (first use in this function)
- hd-idle.c: In function 'spindown_disk':
- hd-idle.c:370: error: storage size of 'io_hdr' isn't known
- hd-idle.c:375: warning: incompatible implicit declaration of built-in function 'printf'
- hd-idle.c:378: warning: incompatible implicit declaration of built-in function 'memset'
- hd-idle.c:380: error: 'SG_DXFER_NONE' undeclared (first use in this function)
- hd-idle.c:390: warning: implicit declaration of function 'snprintf'
- hd-idle.c:390: warning: incompatible implicit declaration of built-in function 'snprintf'
- hd-idle.c:391: error: 'O_RDONLY' undeclared (first use in this function)
- hd-idle.c:397: warning: implicit declaration of function 'ioctl'
- hd-idle.c:397: error: 'SG_IO' undeclared (first use in this function)
- hd-idle.c:403: warning: incompatible implicit declaration of built-in function 'fprintf'
- hd-idle.c:403: error: 'stderr' undeclared (first use in this function)
- hd-idle.c:370: warning: unused variable 'io_hdr'
- hd-idle.c: In function 'log_spinup':
- hd-idle.c:413: error: 'FILE' undeclared (first use in this function)
- hd-idle.c:413: error: 'fp' undeclared (first use in this function)
- hd-idle.c:415: error: 'NULL' undeclared (first use in this function)
- hd-idle.c:424: error: 'time_t' undeclared (first use in this function)
- hd-idle.c:424: error: expected ';' before 'now'
- hd-idle.c:428: warning: implicit declaration of function 'strftime'
- hd-idle.c:428: warning: incompatible implicit declaration of built-in function 'strftime'
- hd-idle.c:428: warning: implicit declaration of function 'localtime'
- hd-idle.c:428: error: 'now' undeclared (first use in this function)
- hd-idle.c:430: warning: incompatible implicit declaration of built-in function 'fprintf'
- hd-idle.c:433: error: 'DISKSTATS' has no member named 'spindown'
- hd-idle.c:433: error: 'DISKSTATS' has no member named 'spinup'
- hd-idle.c:434: warning: implicit declaration of function 'time'
- hd-idle.c:434: error: 'DISKSTATS' has no member named 'spindown'
- hd-idle.c:441: warning: implicit declaration of function 'sync'
- hd-idle.c: In function 'disk_name':
- hd-idle.c:456: error: 'ssize_t' undeclared (first use in this function)
- hd-idle.c:456: error: expected ';' before 'len'
- hd-idle.c:465: error: 'len' undeclared (first use in this function)
- hd-idle.c:465: warning: implicit declaration of function 'readlink'
- hd-idle.c:466: error: 'errno' undeclared (first use in this function)
- hd-idle.c:466: error: 'EINVAL' undeclared (first use in this function)
- hd-idle.c:472: warning: implicit declaration of function 'strncpy'
- hd-idle.c:472: warning: incompatible implicit declaration of built-in function 'strncpy'
- hd-idle.c:474: warning: implicit declaration of function 'strlen'
- hd-idle.c:474: warning: incompatible implicit declaration of built-in function 'strlen'
- hd-idle.c:479: warning: incompatible implicit declaration of built-in function 'strlen'
- hd-idle.c:479: warning: implicit declaration of function 'isdigit'
- hd-idle.c:486: warning: implicit declaration of function 'strrchr'
- hd-idle.c:486: warning: incompatible implicit declaration of built-in function 'strrchr'
- hd-idle.c:486: error: 'NULL' undeclared (first use in this function)
- hd-idle.c:492: warning: implicit declaration of function 'strdup'
- hd-idle.c:492: warning: incompatible implicit declaration of built-in function 'strdup'
- hd-idle.c:493: warning: incompatible implicit declaration of built-in function 'fprintf'
- hd-idle.c:493: error: 'stderr' undeclared (first use in this function)
- hd-idle.c:494: warning: incompatible implicit declaration of built-in function 'exit'
- hd-idle.c:498: warning: incompatible implicit declaration of built-in function 'printf'
- make: *** [hd-idle.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement