The build took 00h 00m 59s and was NOT successful.
The program in this build is written in the following languages, according to sloccount:
SLOC | Language |
---|---|
7,630 |
ansic |
7,630 |
total |
The process tree of the build process is here.
Several sub-process invocations were improper; see the process tree for details. Summary:
To avoid scrolling, you may jump to the last line of the
invocation of makepkg
that was used to build this
package.
Removed vanilla repositories from pacman.conf and added:
Copied permanent toolchain into container-local sysroot
/toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
/toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
/toolchain_root/sysroot --> /sysroot/sysroot
/toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
/toolchain_root/lib --> /sysroot/lib
/toolchain_root/SOURCES --> /sysroot/SOURCES
/toolchain_root/lib64 --> /sysroot/lib64
/toolchain_root/share --> /sysroot/share
/toolchain_root/bin --> /sysroot/bin
/toolchain_root/COPYING --> /sysroot/COPYING
/toolchain_root/COPYING3 --> /sysroot/COPYING3
/toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
/toolchain_root/include --> /sysroot/include
/toolchain_root/libexec --> /sysroot/libexec
CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
==> Making package: nmon 16f-1 (Tue Apr 4 20:54:08 UTC 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
cc1: error: no include path in which to search for stdc-predef.h
lmon16f.c:55:19: error: no include path in which to search for stdio.h
#include
^
lmon16f.c:56:20: error: no include path in which to search for stdlib.h
#include
^
lmon16f.c:57:20: error: no include path in which to search for unistd.h
#include
^
lmon16f.c:58:20: error: no include path in which to search for string.h
#include
^
lmon16f.c:59:19: error: no include path in which to search for ctype.h
#include
^
lmon16f.c:60:21: error: no include path in which to search for ncurses.h
#include
^
lmon16f.c:61:20: error: no include path in which to search for signal.h
#include
^
lmon16f.c:62:17: error: no include path in which to search for pwd.h
#include
^
lmon16f.c:63:19: error: no include path in which to search for fcntl.h
#include
^
lmon16f.c:64:18: error: no include path in which to search for math.h
#include
^
lmon16f.c:65:18: error: no include path in which to search for time.h
#include
^
lmon16f.c:66:23: error: no include path in which to search for sys/errno.h
#include
^
lmon16f.c:67:23: error: no include path in which to search for sys/types.h
#include
^
lmon16f.c:68:22: error: no include path in which to search for sys/stat.h
#include
^
lmon16f.c:69:23: error: no include path in which to search for sys/ioctl.h
#include
^
lmon16f.c:70:25: error: no include path in which to search for sys/utsname.h
#include
^
lmon16f.c:71:22: error: no include path in which to search for sys/time.h
#include
^
lmon16f.c:72:24: error: no include path in which to search for sys/socket.h
#include
^
lmon16f.c:73:22: error: no include path in which to search for sys/wait.h
#include
^
lmon16f.c:76:1: error: unknown type name 'WINDOW'
WINDOW *padwelcome = NULL;
^
lmon16f.c:76:22: error: 'NULL' undeclared here (not in a function)
WINDOW *padwelcome = NULL;
^
lmon16f.c:77:1: error: unknown type name 'WINDOW'
WINDOW *padtop = NULL;
^
lmon16f.c:78:1: error: unknown type name 'WINDOW'
WINDOW *padmem = NULL;
^
lmon16f.c:79:1: error: unknown type name 'WINDOW'
WINDOW *padlarge = NULL;
^
lmon16f.c:80:1: error: unknown type name 'WINDOW'
WINDOW *padpage = NULL;
^
lmon16f.c:81:1: error: unknown type name 'WINDOW'
WINDOW *padker = NULL;
^
lmon16f.c:82:1: error: unknown type name 'WINDOW'
WINDOW *padnet = NULL;
^
lmon16f.c:83:1: error: unknown type name 'WINDOW'
WINDOW *padneterr = NULL;
^
lmon16f.c:84:1: error: unknown type name 'WINDOW'
WINDOW *padnfs = NULL;
^
lmon16f.c:85:1: error: unknown type name 'WINDOW'
WINDOW *padres = NULL;
^
lmon16f.c:86:1: error: unknown type name 'WINDOW'
WINDOW *padsmp = NULL;
^
lmon16f.c:87:1: error: unknown type name 'WINDOW'
WINDOW *padutil = NULL;
^
lmon16f.c:88:1: error: unknown type name 'WINDOW'
WINDOW *padwide = NULL;
^
lmon16f.c:89:1: error: unknown type name 'WINDOW'
WINDOW *padgpu = NULL;
^
lmon16f.c:90:1: error: unknown type name 'WINDOW'
WINDOW *padmhz = NULL;
^
lmon16f.c:91:1: error: unknown type name 'WINDOW'
WINDOW *padlong = NULL;
^
lmon16f.c:92:1: error: unknown type name 'WINDOW'
WINDOW *paddisk = NULL;
^
lmon16f.c:93:1: error: unknown type name 'WINDOW'
WINDOW *paddg = NULL;
^
lmon16f.c:94:1: error: unknown type name 'WINDOW'
WINDOW *padmap = NULL;
^
lmon16f.c:95:1: error: unknown type name 'WINDOW'
WINDOW *padjfs = NULL;
^
lmon16f.c:99:1: error: unknown type name 'WINDOW'
WINDOW *padverb = NULL;
^
lmon16f.c:100:1: error: unknown type name 'WINDOW'
WINDOW *padhelp = NULL;
^
lmon16f.c: In function 'check_call_string':
lmon16f.c:248:5: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
if (strlen(callback) > 256) {
^
lmon16f.c:248:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(callback) > 256) {
^
lmon16f.c:249:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
fprintf(stderr, "ERROR nmon: ignoring %s - too long\n", name);
^
lmon16f.c:249:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
lmon16f.c:249:10: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "ERROR nmon: ignoring %s - too long\n", name);
^
lmon16f.c:249:10: note: each undeclared identifier is reported only once for each function it appears in
lmon16f.c: In function 'error':
lmon16f.c:269:5: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
strncpy(errorstr, err, 69);
^
lmon16f.c:269:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
lmon16f.c: In function 'lscpu_init':
lmon16f.c:430:5: error: unknown type name 'FILE'
FILE *pop;
^
lmon16f.c:438:5: warning: implicit declaration of function 'popen' [-Wimplicit-function-declaration]
pop = popen("/usr/bin/lscpu 2>/dev/null", "r");
^
lmon16f.c:438:9: warning: assignment makes pointer from integer without a cast [enabled by default]
pop = popen("/usr/bin/lscpu 2>/dev/null", "r");
^
lmon16f.c:443:6: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
if (fgets(tmpstr, LSCPU_STRLEN, pop) == NULL)
^
lmon16f.c:445:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
tmpstr[strlen(tmpstr) - 1] = 0; /* remove newline */
^
lmon16f.c:446:6: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
if (strncmp("Architecture:", tmpstr, strlen("Architecture:"))
^
lmon16f.c:448:3: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
lscpu.arch = malloc(strlen(&tmpstr[NUMBER_COL]) + 1);
^
lmon16f.c:448:16: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
lscpu.arch = malloc(strlen(&tmpstr[NUMBER_COL]) + 1);
^
lmon16f.c:449:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
strcpy(lscpu.arch, &tmpstr[NUMBER_COL]);
^
lmon16f.c:449:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
lmon16f.c:452:22: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
lscpu.byte_order = malloc(strlen(&tmpstr[NUMBER_COL]) + 1);
^
lmon16f.c:453:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(lscpu.byte_order, &tmpstr[NUMBER_COL]);
^
lmon16f.c:466:3: warning: implicit declaration of function 'sscanf' [-Wimplicit-function-declaration]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.cpus);
^
lmon16f.c:466:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
lmon16f.c:471:22: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
lscpu.cpu_online = malloc(strlen(&tmpstr[NUMBER_COL]) + 1);
^
lmon16f.c:472:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(lscpu.cpu_online, &tmpstr[NUMBER_COL]);
^
lmon16f.c:478:7: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
malloc(strlen(&tmpstr[NUMBER_COL]) + 1);
^
lmon16f.c:479:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(lscpu.cpu_offline, &tmpstr[NUMBER_COL]);
^
lmon16f.c:482:17: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
lscpu.model = malloc(strlen(&tmpstr[NUMBER_COL]) + 1);
^
lmon16f.c:483:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(lscpu.model, &tmpstr[NUMBER_COL]);
^
lmon16f.c:486:22: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
lscpu.model_name = malloc(strlen(&tmpstr[NUMBER_COL]) + 1);
^
lmon16f.c:487:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(lscpu.model_name, &tmpstr[NUMBER_COL]);
^
lmon16f.c:492:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.threads);
^
lmon16f.c:497:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.cores);
^
lmon16f.c:500:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.sockets);
^
lmon16f.c:504:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.numa_nodes);
^
lmon16f.c:507:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.mhz);
^
lmon16f.c:511:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.mhz_max);
^
lmon16f.c:515:3: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&tmpstr[NUMBER_COL], "%d", &lscpu.mhz_min);
^
lmon16f.c:518:2: warning: implicit declaration of function 'pclose' [-Wimplicit-function-declaration]
pclose(pop);
^
lmon16f.c: At top level:
lmon16f.c:534:5: error: unknown type name 'FILE'
FILE *fp;
^
lmon16f.c: In function 'proc_read':
lmon16f.c:567:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
if ((proc[num].fp = fopen(proc[num].filename, "r")) == NULL) {
^
lmon16f.c:567:20: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((proc[num].fp = fopen(proc[num].filename, "r")) == NULL) {
^
lmon16f.c:568:6: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
sprintf(buf, "failed to open file %s", proc[num].filename);
^
lmon16f.c:568:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
lmon16f.c:574:5: warning: implicit declaration of function 'rewind' [-Wimplicit-function-declaration]
rewind(proc[num].fp);
^
lmon16f.c:139:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
#define MALLOC(argument) malloc(argument)
^
lmon16f.c:582:18: note: in expansion of macro 'MALLOC'
proc[num].buf = MALLOC(512);
^
lmon16f.c:587:2: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
size = fread(proc[num].buf, 1, proc[num].size - 1, proc[num].fp);
^
lmon16f.c:591:2: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
proc[num].buf = REALLOC(proc[num].buf, proc[num].size);
^
lmon16f.c:141:41: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
#define REALLOC(argument1,argument2) realloc(argument1,argument2)
^
lmon16f.c:591:18: note: in expansion of macro 'REALLOC'
proc[num].buf = REALLOC(proc[num].buf, proc[num].size);
^
lmon16f.c:636:2: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
fclose(proc[num].fp);
^
lmon16f.c: At top level:
lmon16f.c:643:20: error: no include path in which to search for dirent.h
#include
^
lmon16f.c:708:20: error: no include path in which to search for mntent.h
#include
^
lmon16f.c:709:19: error: no include path in which to search for fstab.h
#include
^
lmon16f.c:710:22: error: no include path in which to search for sys/stat.h
#include
^
lmon16f.c:711:24: error: no include path in which to search for sys/statfs.h
#include
^
lmon16f.c:712:20: error: no include path in which to search for net/if.h
#include
^
lmon16f.c:715:1: error: unknown type name 'time_t'
time_t timer; /* used to work out the hour/min/second */
^
lmon16f.c:811:1: error: unknown type name 'FILE'
FILE *fp; /* filepointer for spreadsheet output */
^
lmon16f.c:814:27: error: unknown type name 'time_t'
char *timestamp(int loop, time_t eon)
^
lmon16f.c: In function 'find_release':
lmon16f.c:831:5: error: unknown type name 'FILE'
FILE *pop;
^
lmon16f.c:838:9: warning: assignment makes pointer from integer without a cast [enabled by default]
pop = popen("cat /etc/*ease 2>/dev/null", "r");
^
lmon16f.c:845:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
tmpstr[strlen(tmpstr) - 1] = 0; /* remove newline */
^
lmon16f.c:139:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
#define MALLOC(argument) malloc(argument)
^
lmon16f.c:846:16: note: in expansion of macro 'MALLOC'
easy[i] = MALLOC(strlen(tmpstr) + 1);
^
lmon16f.c:847:6: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(easy[i], tmpstr);
^
lmon16f.c:851:9: warning: assignment makes pointer from integer without a cast [enabled by default]
pop = popen("/usr/bin/lsb_release -idrc 2>/dev/null", "r");
^
lmon16f.c:857:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
tmpstr[strlen(tmpstr) - 1] = 0; /* remove newline */
^
lmon16f.c:139:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
#define MALLOC(argument) malloc(argument)
^
lmon16f.c:858:23: note: in expansion of macro 'MALLOC'
lsb_release[i] = MALLOC(strlen(tmpstr) + 1);
^
lmon16f.c:859:6: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(lsb_release[i], tmpstr);
^
lmon16f.c: In function 'args_output':
lmon16f.c:879:5: error: unknown type name 'FILE'
FILE *pop;
^
lmon16f.c:893:5: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(tmpstr, "ps -p %d -o args 2>/dev/null", pid);
^
lmon16f.c:894:9: warning: assignment makes pointer from integer without a cast [enabled by default]
pop = popen(tmpstr, "r");
^
lmon16f.c:907:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
tmpstr[strlen(tmpstr) - 1] = 0;
^
lmon16f.c:912:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "UARG,+Time,PID,ProgName,FullCommand\n");
^
lmon16f.c:929:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "UARG,%s,%07d,%s,%s\n", LOOP, pid, progname, tmpstr);
^
lmon16f.c:929:2: warning: implicit declaration of function 'timestamp' [-Wimplicit-function-declaration]
lmon16f.c:929:2: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c: In function 'args_load':
lmon16f.c:937:5: error: unknown type name 'FILE'
FILE *pop;
^
lmon16f.c:946:6: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(arglist[i].args);
^
lmon16f.c:946:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
lmon16f.c:949:9: warning: assignment makes pointer from integer without a cast [enabled by default]
pop = popen("ps -eo pid,args 2>/dev/null", "r");
^
lmon16f.c:963:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
tmpstr[strlen(tmpstr) - 1] = 0;
^
lmon16f.c:966:6: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
arglist[i].pid = atoi(tmpstr);
^
lmon16f.c:139:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
#define MALLOC(argument) malloc(argument)
^
lmon16f.c:967:24: note: in expansion of macro 'MALLOC'
arglist[i].args = MALLOC(strlen(tmpstr));
^
lmon16f.c:968:6: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(arglist[i].args, &tmpstr[6]);
^
lmon16f.c: In function 'linux_bbbp':
lmon16f.c:995:5: error: unknown type name 'FILE'
FILE *pop;
^
lmon16f.c:998:9: warning: assignment makes pointer from integer without a cast [enabled by default]
pop = popen(cmd, "r");
^
lmon16f.c:1000:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "BBBP,%03d,%s failed to run %s\n", lineno++, cmd, err);
^
lmon16f.c:1002:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "BBBP,%03d,%s\n", lineno++, name);
^
lmon16f.c:1004:12: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(str);
^
lmon16f.c: At top level:
lmon16f.c:1572:20: error: field 'tv' has incomplete type
struct timeval tv;
^
lmon16f.c: In function 'get_vm_value':
lmon16f.c:1591:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(s);
^
lmon16f.c:1601:3: warning: implicit declaration of function 'strtoll' [-Wimplicit-function-declaration]
strtoll(&proc[P_VMSTAT].line[currline][currchar + 1],
^
lmon16f.c:1604:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "%s has an unexpected format: >%s<\n",
^
lmon16f.c:1604:11: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "%s has an unexpected format: >%s<\n",
^
lmon16f.c: In function 'read_vmstat':
lmon16f.c:1625:5: warning: implicit declaration of function '__STRING' [-Wimplicit-function-declaration]
GETVM(nr_dirty);
^
lmon16f.c:1625:11: error: 'nr_dirty' undeclared (first use in this function)
GETVM(nr_dirty);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1626:11: error: 'nr_writeback' undeclared (first use in this function)
GETVM(nr_writeback);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1627:11: error: 'nr_unstable' undeclared (first use in this function)
GETVM(nr_unstable);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1628:11: error: 'nr_page_table_pages' undeclared (first use in this function)
GETVM(nr_page_table_pages);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1629:11: error: 'nr_mapped' undeclared (first use in this function)
GETVM(nr_mapped);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1630:11: error: 'nr_slab' undeclared (first use in this function)
GETVM(nr_slab);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1631:11: error: 'pgpgin' undeclared (first use in this function)
GETVM(pgpgin);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1632:11: error: 'pgpgout' undeclared (first use in this function)
GETVM(pgpgout);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1633:11: error: 'pswpin' undeclared (first use in this function)
GETVM(pswpin);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1634:11: error: 'pswpout' undeclared (first use in this function)
GETVM(pswpout);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1635:11: error: 'pgalloc_high' undeclared (first use in this function)
GETVM(pgalloc_high);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1636:11: error: 'pgalloc_normal' undeclared (first use in this function)
GETVM(pgalloc_normal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1637:11: error: 'pgalloc_dma' undeclared (first use in this function)
GETVM(pgalloc_dma);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1638:11: error: 'pgfree' undeclared (first use in this function)
GETVM(pgfree);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1639:11: error: 'pgactivate' undeclared (first use in this function)
GETVM(pgactivate);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1640:11: error: 'pgdeactivate' undeclared (first use in this function)
GETVM(pgdeactivate);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1641:11: error: 'pgfault' undeclared (first use in this function)
GETVM(pgfault);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1642:11: error: 'pgmajfault' undeclared (first use in this function)
GETVM(pgmajfault);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1643:11: error: 'pgrefill_high' undeclared (first use in this function)
GETVM(pgrefill_high);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1644:11: error: 'pgrefill_normal' undeclared (first use in this function)
GETVM(pgrefill_normal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1645:11: error: 'pgrefill_dma' undeclared (first use in this function)
GETVM(pgrefill_dma);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1646:11: error: 'pgsteal_high' undeclared (first use in this function)
GETVM(pgsteal_high);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1647:11: error: 'pgsteal_normal' undeclared (first use in this function)
GETVM(pgsteal_normal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1648:11: error: 'pgsteal_dma' undeclared (first use in this function)
GETVM(pgsteal_dma);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1649:11: error: 'pgscan_kswapd_high' undeclared (first use in this function)
GETVM(pgscan_kswapd_high);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1650:11: error: 'pgscan_kswapd_normal' undeclared (first use in this function)
GETVM(pgscan_kswapd_normal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1651:11: error: 'pgscan_kswapd_dma' undeclared (first use in this function)
GETVM(pgscan_kswapd_dma);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1652:11: error: 'pgscan_direct_high' undeclared (first use in this function)
GETVM(pgscan_direct_high);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1653:11: error: 'pgscan_direct_normal' undeclared (first use in this function)
GETVM(pgscan_direct_normal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1654:11: error: 'pgscan_direct_dma' undeclared (first use in this function)
GETVM(pgscan_direct_dma);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1655:11: error: 'pginodesteal' undeclared (first use in this function)
GETVM(pginodesteal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1656:11: error: 'slabs_scanned' undeclared (first use in this function)
GETVM(slabs_scanned);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1657:11: error: 'kswapd_steal' undeclared (first use in this function)
GETVM(kswapd_steal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1658:11: error: 'kswapd_inodesteal' undeclared (first use in this function)
GETVM(kswapd_inodesteal);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1659:11: error: 'pageoutrun' undeclared (first use in this function)
GETVM(pageoutrun);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1660:11: error: 'allocstall' undeclared (first use in this function)
GETVM(allocstall);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c:1661:11: error: 'pgrotated' undeclared (first use in this function)
GETVM(pgrotated);
^
lmon16f.c:1615:64: note: in definition of macro 'GETVM'
#define GETVM(variable) p->vm.variable = get_vm_value(__STRING(variable) );
^
lmon16f.c: In function 'cmdcheck':
lmon16f.c:1721:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(cmdlist[i]) == 0)
^
lmon16f.c: In function 'doubletime':
lmon16f.c:1733:5: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
gettimeofday(&p->tv, 0);
^
lmon16f.c: In function 'get_cpu_cnt':
lmon16f.c:1753:6: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
("This nmon supports only %d CPU threads (Logical CPUs) and the machine appears to have %d.\nnmon stopping as its unsafe to continue.\n",
^
lmon16f.c:1752:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf
^
lmon16f.c:1755:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
exit(44);
^
lmon16f.c:1755:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
lmon16f.c: In function 'proc_cpu':
lmon16f.c:1861:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[0][5],
^
lmon16f.c:1874:2: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[0][5],
^
lmon16f.c:1880:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[0][5],
^
lmon16f.c:1884:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[0][5], "%lld %lld %lld %lld",
^
lmon16f.c:1921:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[i + 1][row],
^
lmon16f.c:1931:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[i + 1][row],
^
lmon16f.c:1937:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[i + 1][row], "%lld %lld %lld %lld",
^
lmon16f.c:1980:2: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_STAT].line[intr_line][0], "intr %lld",
^
lmon16f.c:1986:12: error: storage size of 'ts' isn't known
struct tm ts;
^
lmon16f.c:1989:2: warning: implicit declaration of function 'localtime' [-Wimplicit-function-declaration]
ts = *localtime((time_t *)&boottime);
^
lmon16f.c:1989:19: error: 'time_t' undeclared (first use in this function)
ts = *localtime((time_t *)&boottime);
^
lmon16f.c:1989:27: error: expected expression before ')' token
ts = *localtime((time_t *)&boottime);
^
lmon16f.c:1990:2: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
strftime (boottime_str, 64, "%I:%M %p %d-%b-%Y", &ts);
^
lmon16f.c:1990:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
lmon16f.c:1986:12: warning: unused variable 'ts' [-Wunused-variable]
struct tm ts;
^
lmon16f.c:2007:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
memcpy((void *) &(q->cpu_total), (void *) &(p->cpu_total),
^
lmon16f.c:2007:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
lmon16f.c: In function 'proc_nfs':
lmon16f.c:2035:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(proc[P_NFS].line[lineno]);
^
lmon16f.c:2039:8: warning: implicit declaration of function 'atol' [-Wimplicit-function-declaration]
atol(&proc[P_NFS].line[lineno][i + 1]);
^
lmon16f.c:2047:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(proc[P_NFS].line[lineno]);
^
lmon16f.c:2060:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(proc[P_NFS].line[lineno]);
^
lmon16f.c:2089:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(proc[P_NFSD].line[lineno]);
^
lmon16f.c:2101:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(proc[P_NFSD].line[lineno]);
^
lmon16f.c:2115:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(proc[P_NFSD].line[lineno]);
^
lmon16f.c: In function 'proc_kernel':
lmon16f.c:2135:5: warning: implicit declaration of function 'atof' [-Wimplicit-function-declaration]
p->cpu_total.uptime = atof(proc[P_UPTIME].line[0]);
^
lmon16f.c:2136:21: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
for (i = 0; i < strlen(proc[P_UPTIME].line[0]); i++) {
^
lmon16f.c:2143:5: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_LOADAVG].line[0][0], "%f %f %f",
^
lmon16f.c: In function 'proc_disk_io':
lmon16f.c:2175:21: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
for (i = 8; i < strlen(proc[P_STAT].line[diskline]); i++) {
^
lmon16f.c:2185:8: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
ret = sscanf(str, " (%d,%d):(%ld,%ld,%ld,%ld,%ld",
^
lmon16f.c:2193:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(7);
^
lmon16f.c:2208:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(p->dk[i].dk_name, "dev-%d-%d", p->dk[i].dk_major,
^
lmon16f.c: In function 'proc_diskstats':
lmon16f.c:2217:5: error: unknown type name 'FILE'
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:2217:24: error: 'FILE' undeclared (first use in this function)
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:2217:30: error: expected expression before ')' token
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:2222:22: error: expected expression before ')' token
if (fp == (FILE *) - 1) {
^
lmon16f.c:2223:10: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fopen("/proc/diskstats", "r")) == NULL) {
^
lmon16f.c:2260:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&buf[0],
^
lmon16f.c:2280:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr,
^
lmon16f.c:2280:14: error: 'stderr' undeclared (first use in this function)
fprintf(stderr,
^
lmon16f.c:2301:14: error: expected expression before ')' token
fp = (FILE *) - 1;
^
lmon16f.c: In function 'proc_partitions':
lmon16f.c:2334:5: error: unknown type name 'FILE'
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:2334:24: error: 'FILE' undeclared (first use in this function)
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:2334:30: error: expected expression before ')' token
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:2339:22: error: expected expression before ')' token
if (fp == (FILE *) - 1) {
^
lmon16f.c:2340:10: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fopen("/proc/partitions", "r")) == NULL) {
^
lmon16f.c:2367:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&buf[0],
^
lmon16f.c:2402:14: error: expected expression before ')' token
fp = (FILE *) - 1;
^
lmon16f.c: In function 'proc_disk':
lmon16f.c:2410:17: error: storage size of 'buf' isn't known
struct stat buf;
^
lmon16f.c:2413:2: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
ret = stat("/proc/diskstats", &buf);
^
lmon16f.c:2410:17: warning: unused variable 'buf' [-Wunused-variable]
struct stat buf;
^
lmon16f.c: In function 'proc_mem_search':
lmon16f.c:2446:11: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(s);
^
lmon16f.c: At top level:
lmon16f.c:2539:16: error: unknown type name 'WINDOW'
void plot_snap(WINDOW * pad)
^
lmon16f.c:2652:15: error: unknown type name 'WINDOW'
void plot_smp(WINDOW * pad, int cpu_no, int row, double user,
^
lmon16f.c: In function 'init_pairs':
lmon16f.c:2747:5: warning: implicit declaration of function 'init_pair' [-Wimplicit-function-declaration]
COLOUR init_pair((short) 0, (short) 7, (short) 0); /* White */
^
lmon16f.c: In function 'interrupt':
lmon16f.c:2770:19: error: 'SIGCHLD' undeclared (first use in this function)
if (signum == SIGCHLD) {
^
lmon16f.c:2771:2: warning: implicit declaration of function 'waitpid' [-Wimplicit-function-declaration]
while ((child_pid = waitpid(0, &waitstatus, 0)) == -1) {
^
lmon16f.c:2772:10: error: 'errno' undeclared (first use in this function)
if (errno == EINTR) /* retry */
^
lmon16f.c:2772:19: error: 'EINTR' undeclared (first use in this function)
if (errno == EINTR) /* retry */
^
lmon16f.c:2778:2: warning: implicit declaration of function 'signal' [-Wimplicit-function-declaration]
signal(SIGCHLD, interrupt);
^
lmon16f.c:2781:19: error: 'SIGUSR1' undeclared (first use in this function)
if (signum == SIGUSR1 || signum == SIGUSR2) {
^
lmon16f.c:2781:40: error: 'SIGUSR2' undeclared (first use in this function)
if (signum == SIGUSR1 || signum == SIGUSR2) {
^
lmon16f.c:2785:19: error: 'SIGWINCH' undeclared (first use in this function)
if (signum == SIGWINCH) {
^
lmon16f.c:2786:2: warning: implicit declaration of function 'endwin' [-Wimplicit-function-declaration]
CURSE endwin(); /* stop + start curses so it works out the # of row and cols */
^
lmon16f.c:2787:2: warning: implicit declaration of function 'initscr' [-Wimplicit-function-declaration]
CURSE initscr();
^
lmon16f.c:2788:2: warning: implicit declaration of function 'cbreak' [-Wimplicit-function-declaration]
CURSE cbreak();
^
lmon16f.c:2790:2: warning: implicit declaration of function 'has_colors' [-Wimplicit-function-declaration]
COLOUR colour = has_colors();
^
lmon16f.c:2791:2: warning: implicit declaration of function 'start_color' [-Wimplicit-function-declaration]
COLOUR start_color();
^
lmon16f.c:2793:2: warning: implicit declaration of function 'clear' [-Wimplicit-function-declaration]
CURSE clear();
^
lmon16f.c:2797:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(0);
^
lmon16f.c: In function 'get_state':
lmon16f.c:2860:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(duff, "%d", n);
^
lmon16f.c: At top level:
lmon16f.c:2869:15: error: unknown type name 'uid_t'
char *getuser(uid_t uid)
^
lmon16f.c: In function 'save_word':
lmon16f.c:2913:11: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
len = strlen(in);
^
lmon16f.c:2916:2: warning: implicit declaration of function 'isalnum' [-Wimplicit-function-declaration]
if (isalnum(in[i]) || in[i] == '_' || in[i] == '-' || in[i] == '/') {
^
lmon16f.c: In function 'load_dgroup':
lmon16f.c:2940:5: error: unknown type name 'FILE'
FILE *gp;
^
lmon16f.c:139:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
#define MALLOC(argument) malloc(argument)
^
lmon16f.c:2948:19: note: in expansion of macro 'MALLOC'
dgroup_data = MALLOC(sizeof(int) * DGROUPS * DGROUPITEMS);
^
lmon16f.c:2953:8: warning: assignment makes pointer from integer without a cast [enabled by default]
gp = fopen(dgroup_filename, "r");
^
lmon16f.c:2956:2: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
perror("opening disk group file");
^
lmon16f.c:2957:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "ERROR: failed to open %s\n", dgroup_filename);
^
lmon16f.c:2957:10: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "ERROR: failed to open %s\n", dgroup_filename);
^
lmon16f.c:2958:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(9);
^
lmon16f.c:2972:6: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strlen(name) == 0) { /* was a blank line */
^
lmon16f.c:2973:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr,
^
lmon16f.c:2982:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(dgroup_name[dgroup_total_groups], name);
^
lmon16f.c:2988:3: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
if (strcmp(dk[j].dk_name, name) == 0) {
^
lmon16f.c:3000:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr,
^
lmon16f.c: In function 'list_dgroup':
lmon16f.c:3030:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "BBBG,%03d,User Defined Disk Groups Name,Disks\n",
^
lmon16f.c:3034:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "BBBG,%03d,%s", n++, dgroup_name[i]);
^
lmon16f.c:3049:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "DGBUSY,Disk Group Busy %s", hostname);
^
lmon16f.c: In function 'is_dgroup_name':
lmon16f.c:3149:36: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
if (strncmp(name, dgroup_name[i], strlen(name)) == 0)
^
lmon16f.c: In function 'hint':
lmon16f.c:3159:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("Hint for %s version %s\n", progname, VERSION);
^
lmon16f.c: In function 'help':
lmon16f.c:3190:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("---- Full Help Information for %s\n\n", SccsId);
^
lmon16f.c:3423:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(0);
^
lmon16f.c: In function 'jfs_load':
lmon16f.c:3444:17: error: storage size of 'stat_buffer' isn't known
struct stat stat_buffer;
^
lmon16f.c:3445:5: error: unknown type name 'FILE'
FILE *mfp; /* FILE pointer for mtab file */
^
lmon16f.c:3451:6: warning: implicit declaration of function 'setmntent' [-Wimplicit-function-declaration]
mfp = setmntent("/etc/mtab", "r");
^
lmon16f.c:3451:10: warning: assignment makes pointer from integer without a cast [enabled by default]
mfp = setmntent("/etc/mtab", "r");
^
lmon16f.c:3452:6: warning: implicit declaration of function 'getmntent' [-Wimplicit-function-declaration]
for (i = 0; i < JFSMAX && (mp = getmntent(mfp)) != NULL; i++) {
^
lmon16f.c:3452:36: warning: assignment makes pointer from integer without a cast [enabled by default]
for (i = 0; i < JFSMAX && (mp = getmntent(mfp)) != NULL; i++) {
^
lmon16f.c:3453:3: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
strncpy(jfs[i].device, mp->mnt_fsname, JFSNAMELEN);
^
lmon16f.c:3453:28: error: dereferencing pointer to incomplete type
strncpy(jfs[i].device, mp->mnt_fsname, JFSNAMELEN);
^
lmon16f.c:3454:26: error: dereferencing pointer to incomplete type
strncpy(jfs[i].name, mp->mnt_dir, JFSNAMELEN);
^
lmon16f.c:3455:26: error: dereferencing pointer to incomplete type
strncpy(jfs[i].type, mp->mnt_type, JFSTYPELEN);
^
lmon16f.c:3456:5: error: dereferencing pointer to incomplete type
mp->mnt_fsname[JFSNAMELEN - 1] = 0;
^
lmon16f.c:3457:5: error: dereferencing pointer to incomplete type
mp->mnt_dir[JFSNAMELEN - 1] = 0;
^
lmon16f.c:3458:5: error: dereferencing pointer to incomplete type
mp->mnt_type[JFSTYPELEN - 1] = 0;
^
lmon16f.c:3460:6: warning: implicit declaration of function 'endfsent' [-Wimplicit-function-declaration]
endfsent();
^
lmon16f.c:3469:3: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
jfs[i].fd = open(jfs[i].name, O_RDONLY);
^
lmon16f.c:3469:33: error: 'O_RDONLY' undeclared (first use in this function)
jfs[i].fd = open(jfs[i].name, O_RDONLY);
^
lmon16f.c:3481:7: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
close(jfs[i].fd);
^
lmon16f.c:3444:17: warning: unused variable 'stat_buffer' [-Wunused-variable]
struct stat stat_buffer;
^
lmon16f.c: In function 'checkinput':
lmon16f.c:3534:5: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
ioctl(fileno(stdin), FIONREAD, &bytes);
^
lmon16f.c:3534:5: warning: implicit declaration of function 'fileno' [-Wimplicit-function-declaration]
lmon16f.c:3534:18: error: 'stdin' undeclared (first use in this function)
ioctl(fileno(stdin), FIONREAD, &bytes);
^
lmon16f.c:3534:26: error: 'FIONREAD' undeclared (first use in this function)
ioctl(fileno(stdin), FIONREAD, &bytes);
^
lmon16f.c:3539:6: warning: implicit declaration of function 'getenv' [-Wimplicit-function-declaration]
p = getenv("NMON");
^
lmon16f.c:3539:8: warning: assignment makes pointer from integer without a cast [enabled by default]
p = getenv("NMON");
^
lmon16f.c:3541:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(buf, p);
^
lmon16f.c:3542:11: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
chars = strlen(buf);
^
lmon16f.c:3546:6: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
chars = read(fileno(stdin), buf, bytes);
^
lmon16f.c:3554:7: warning: implicit declaration of function 'wclear' [-Wimplicit-function-declaration]
wclear(padtop);
^
lmon16f.c:3794:7: warning: implicit declaration of function 'nocbreak' [-Wimplicit-function-declaration]
nocbreak();
^
lmon16f.c:3796:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(0);
^
lmon16f.c: In function 'proc_net':
lmon16f.c:3831:5: error: unknown type name 'FILE'
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:3831:24: error: 'FILE' undeclared (first use in this function)
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:3831:30: error: expected expression before ')' token
static FILE *fp = (FILE *) - 1;
^
lmon16f.c:3837:22: error: expected expression before ')' token
if (fp == (FILE *) - 1) {
^
lmon16f.c:3838:10: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fopen("/proc/net/dev", "r")) == NULL) {
^
lmon16f.c:3862:6: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&buf[0],
^
lmon16f.c:3873:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "sscanf wanted 16 returned = %d line=%s\n",
^
lmon16f.c:3873:14: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "sscanf wanted 16 returned = %d line=%s\n",
^
lmon16f.c:3879:14: error: expected expression before ')' token
fp = (FILE *) - 1;
^
lmon16f.c: In function 'proc_procsinfo':
lmon16f.c:3888:5: error: unknown type name 'FILE'
FILE *fp;
^
lmon16f.c:3896:5: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(filename, "/proc/%d/stat", pid);
^
lmon16f.c:3897:13: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fopen(filename, "r")) == NULL) {
^
lmon16f.c:3912:11: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
ret = sscanf(buf, "%d (%s)",
^
lmon16f.c:3915:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "procsinfo sscanf returned = %d line=%s\n", ret,
^
lmon16f.c:3915:10: error: 'stderr' undeclared (first use in this function)
fprintf(stderr, "procsinfo sscanf returned = %d line=%s\n", ret,
^
lmon16f.c:3919:29: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
p->procs[index].pi_comm[strlen(p->procs[index].pi_comm) - 1] = 0;
^
lmon16f.c:3989:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr,
^
lmon16f.c:4002:13: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fopen(filename, "r")) == NULL) {
^
lmon16f.c:4024:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr, "sscanf wanted 7 returned = %d line=%s\n", ret,
^
lmon16f.c:4032:10: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fopen(filename, "r")) != NULL) {
^
lmon16f.c: In function 'getprocs':
lmon16f.c:4139:5: error: unknown type name 'DIR'
DIR *procdir;
^
lmon16f.c:4142:5: warning: implicit declaration of function 'opendir' [-Wimplicit-function-declaration]
if ((char *) (procdir = opendir("/proc")) == NULL) {
^
lmon16f.c:4142:27: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((char *) (procdir = opendir("/proc")) == NULL) {
^
lmon16f.c:4143:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("opendir(/proc) failed");
^
lmon16f.c:4146:5: warning: implicit declaration of function 'readdir' [-Wimplicit-function-declaration]
while ((char *) (dent = readdir(procdir)) != NULL) {
^
lmon16f.c:4146:27: warning: assignment makes pointer from integer without a cast [enabled by default]
while ((char *) (dent = readdir(procdir)) != NULL) {
^
lmon16f.c:4147:10: error: dereferencing pointer to incomplete type
if (dent->d_type == 4) { /* is this a directlory */
^
lmon16f.c:4149:24: error: dereferencing pointer to incomplete type
if (isnumbers(dent->d_name)) {
^
lmon16f.c:4152:47: error: dereferencing pointer to incomplete type
count = count + proc_procsinfo(atoi(dent->d_name), count);
^
lmon16f.c:4163:5: warning: implicit declaration of function 'closedir' [-Wimplicit-function-declaration]
closedir(procdir);
^
lmon16f.c: At top level:
lmon16f.c:4181:45: error: unknown type name 'time_t'
char *cmd, int timestamp_type, int loop, time_t the_time)
^
lmon16f.c: In function 'main':
lmon16f.c:4287:5: error: unknown type name 'pid_t'
pid_t childpid = -1;
^
lmon16f.c:4295:20: error: storage size of 'uts' isn't known
struct utsname uts; /* UNIX name, version, etc */
^
lmon16f.c:4321:19: error: storage size of 'statfs_buffer' isn't known
struct statfs statfs_buffer;
^
lmon16f.c:4349:20: error: storage size of 'nmon_tv' isn't known
struct timeval nmon_tv; /* below is used to workout the nmon run, accumalate it and the
^
lmon16f.c:4402:20: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
for (i = (int) strlen(progname) - 1; i > 0; i--)
^
lmon16f.c:4415:21: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((nmon_start = getenv("NMON_START")) != NULL) {
^
lmon16f.c:4418:19: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((nmon_end = getenv("NMON_END")) != NULL) {
^
lmon16f.c:4421:19: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((nmon_tmp = getenv("NMON_ONE_IN")) != NULL) {
^
lmon16f.c:4423:6: error: 'errno' undeclared (first use in this function)
if (errno != 0) {
^
lmon16f.c:4424:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(stderr,
^
lmon16f.c:4424:14: error: 'stderr' undeclared (first use in this function)
fprintf(stderr,
^
lmon16f.c:4429:20: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((nmon_snap = getenv("NMON_SNAP")) != NULL) {
^
lmon16f.c:4432:19: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((nmon_tmp = getenv("NMON_TIMESTAMP")) != NULL) {
^
lmon16f.c:4449:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(cmdstr, "NMONCMD%d", i);
^
lmon16f.c:4450:13: warning: assignment makes pointer from integer without a cast [enabled by default]
cmdlist[i] = getenv(cmdstr);
^
lmon16f.c:4455:5: warning: implicit declaration of function 'gethostname' [-Wimplicit-function-declaration]
gethostname(hostname, sizeof(hostname));
^
lmon16f.c:4456:5: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
strcpy(fullhostname, hostname);
^
lmon16f.c:4463:5: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]
if (getuid() == 0)
^
lmon16f.c:4467:5: warning: implicit declaration of function 'uname' [-Wimplicit-function-declaration]
uname(&uts);
^
lmon16f.c:4469:5: warning: implicit declaration of function 'sysconf' [-Wimplicit-function-declaration]
ticks = sysconf(_SC_CLK_TCK);
^
lmon16f.c:4469:21: error: '_SC_CLK_TCK' undeclared (first use in this function)
ticks = sysconf(_SC_CLK_TCK);
^
lmon16f.c:4473:17: error: '_SC_PAGESIZE' undeclared (first use in this function)
if (sysconf(_SC_PAGESIZE) > 1024 * 4)
^
lmon16f.c:4479:6: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
getopt(argc, argv,
^
lmon16f.c:4484:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(0);
^
lmon16f.c:4493:22: error: 'optarg' undeclared (first use in this function)
maxloops = atoi(optarg);
^
lmon16f.c:139:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
#define MALLOC(argument) malloc(argument)
^
lmon16f.c:4496:19: note: in expansion of macro 'MALLOC'
cmdlist[0] = MALLOC(strlen(optarg) + 1); /* create buffer */
^
lmon16f.c:4514:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf
^
lmon16f.c:4537:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf
^
lmon16f.c:4550:7: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration]
("lsblk --nodeps --output NAME,TYPE --raw | grep disk | awk 'BEGIN {printf \"# This file created by: nmon -g auto\\n# It is an automatically generated disk-group file which excluses disk paritions\\n\" } { printf \"%s %s\\n\", $1, $1 }' >auto");
^
lmon16f.c:4572:6: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration]
if (chdir(optarg) == -1) {
^
lmon16f.c:4574:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("Directory attempted was:%s\n", optarg);
^
lmon16f.c:4611:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("nmon version %s\n", VERSION);
^
lmon16f.c:4640:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf
^
lmon16f.c:4670:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
memcpy(&q->cpu_total, &p->cpu_total, sizeof(struct cpu_stat));
^
lmon16f.c:139:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
#define MALLOC(argument) malloc(argument)
^
lmon16f.c:4672:13: note: in expansion of macro 'MALLOC'
p->dk = MALLOC(sizeof(struct dsk_stat) * diskmax + 1);
^
lmon16f.c:4734:12: error: 'SIGUSR1' undeclared (first use in this function)
signal(SIGUSR1, interrupt);
^
lmon16f.c:4735:12: error: 'SIGUSR2' undeclared (first use in this function)
signal(SIGUSR2, interrupt);
^
lmon16f.c:4736:12: error: 'SIGINT' undeclared (first use in this function)
signal(SIGINT, interrupt);
^
lmon16f.c:4737:12: error: 'SIGWINCH' undeclared (first use in this function)
signal(SIGWINCH, interrupt);
^
lmon16f.c:4738:12: error: 'SIGCHLD' undeclared (first use in this function)
signal(SIGCHLD, interrupt);
^
lmon16f.c:4744:2: warning: implicit declaration of function 'move' [-Wimplicit-function-declaration]
move(0, 0);
^
lmon16f.c:4745:2: warning: implicit declaration of function 'refresh' [-Wimplicit-function-declaration]
refresh();
^
lmon16f.c:4753:2: warning: implicit declaration of function 'newpad' [-Wimplicit-function-declaration]
padwelcome = newpad(24, MAXCOLS);
^
lmon16f.c:4753:13: warning: assignment makes pointer from integer without a cast [enabled by default]
padwelcome = newpad(24, MAXCOLS);
^
lmon16f.c:4754:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padmap = newpad(24, MAXCOLS);
^
lmon16f.c:4755:10: warning: assignment makes pointer from integer without a cast [enabled by default]
padhelp = newpad(24, MAXCOLS);
^
lmon16f.c:4756:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padmem = newpad(20, MAXCOLS);
^
lmon16f.c:4757:11: warning: assignment makes pointer from integer without a cast [enabled by default]
padlarge = newpad(20, MAXCOLS);
^
lmon16f.c:4758:10: warning: assignment makes pointer from integer without a cast [enabled by default]
padpage = newpad(20, MAXCOLS);
^
lmon16f.c:4759:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padres = newpad(20, MAXCOLS);
^
lmon16f.c:4760:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padsmp = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4761:10: warning: assignment makes pointer from integer without a cast [enabled by default]
padutil = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4762:10: warning: assignment makes pointer from integer without a cast [enabled by default]
padlong = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4763:10: warning: assignment makes pointer from integer without a cast [enabled by default]
padwide = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4764:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padmhz = newpad(24, MAXCOLS);
^
lmon16f.c:4765:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padgpu = newpad(10, MAXCOLS);
^
lmon16f.c:4766:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padnet = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4767:12: warning: assignment makes pointer from integer without a cast [enabled by default]
padneterr = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4768:10: warning: assignment makes pointer from integer without a cast [enabled by default]
paddisk = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4769:8: warning: assignment makes pointer from integer without a cast [enabled by default]
paddg = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4770:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padjfs = newpad(MAXROWS, MAXCOLS);
^
lmon16f.c:4771:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padker = newpad(12, MAXCOLS);
^
lmon16f.c:4772:10: warning: assignment makes pointer from integer without a cast [enabled by default]
padverb = newpad(8, MAXCOLS);
^
lmon16f.c:4773:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padnfs = newpad(25, MAXCOLS);
^
lmon16f.c:4774:9: warning: assignment makes pointer from integer without a cast [enabled by default]
padtop = newpad(MAXROWS, MAXCOLS * 2);
^
lmon16f.c:4779:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
timer = time(0);
^
lmon16f.c:4780:6: warning: assignment makes pointer from integer without a cast [enabled by default]
tim = localtime(&timer);
^
lmon16f.c:4781:5: error: dereferencing pointer to incomplete type
tim->tm_year += 1900 - 2000; /* read localtime() manual page!! */
^
lmon16f.c:4782:5: error: dereferencing pointer to incomplete type
tim->tm_mon += 1; /* because it is 0 to 11 */
^
lmon16f.c:4784:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(str, "/var/perf/tmp/%s_%02d.nmon", hostname,
^
lmon16f.c:4785:10: error: dereferencing pointer to incomplete type
tim->tm_mday);
^
lmon16f.c:4791:10: error: dereferencing pointer to incomplete type
tim->tm_year,
^
lmon16f.c:4792:10: error: dereferencing pointer to incomplete type
tim->tm_mon, tim->tm_mday, tim->tm_hour, tim->tm_min);
^
lmon16f.c:4792:23: error: dereferencing pointer to incomplete type
tim->tm_mon, tim->tm_mday, tim->tm_hour, tim->tm_min);
^
lmon16f.c:4792:37: error: dereferencing pointer to incomplete type
tim->tm_mon, tim->tm_mday, tim->tm_hour, tim->tm_min);
^
lmon16f.c:4792:51: error: dereferencing pointer to incomplete type
tim->tm_mon, tim->tm_mday, tim->tm_hour, tim->tm_min);
^
lmon16f.c:4795:3: warning: implicit declaration of function 'fdopen' [-Wimplicit-function-declaration]
if ((fp = fdopen(1, "w")) == 0) {
^
lmon16f.c:4795:11: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fdopen(1, "w")) == 0) {
^
lmon16f.c:4797:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(41);
^
lmon16f.c:4800:11: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((fp = fopen(str, "w")) == 0) {
^
lmon16f.c:4802:7: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("nmon: output filename=%s\n", str);
^
lmon16f.c:4803:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(42);
^
lmon16f.c:4807:2: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
fflush(NULL);
^
lmon16f.c:4808:2: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
if (!debug && (childpid = fork()) != 0) {
^
lmon16f.c:4810:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("%d\n", childpid);
^
lmon16f.c:4811:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(0); /* parent returns OK */
^
lmon16f.c:4818:6: warning: implicit declaration of function 'setpgrp' [-Wimplicit-function-declaration]
setpgrp(); /* become process group leader */
^
lmon16f.c:4819:13: error: 'SIGHUP' undeclared (first use in this function)
signal(SIGHUP, SIG_IGN); /* ignore hangups */
^
lmon16f.c:4819:21: error: 'SIG_IGN' undeclared (first use in this function)
signal(SIGHUP, SIG_IGN); /* ignore hangups */
^
lmon16f.c:4824:6: warning: implicit declaration of function 'child_start' [-Wimplicit-function-declaration]
child_start(CHLD_START, nmon_start, time_stamp_type, 1, timer);
^
lmon16f.c:4828:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "AAA,progname,%s\n", progname);
^
lmon16f.c:4839:6: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "AAA,user,%s\n", getenv("USER"));
^
lmon16f.c:4843:50: error: dereferencing pointer to incomplete type
fprintf(fp, "AAA,time,%02d:%02d.%02d\n", tim->tm_hour,
^
lmon16f.c:4844:10: error: dereferencing pointer to incomplete type
tim->tm_min, tim->tm_sec);
^
lmon16f.c:4844:23: error: dereferencing pointer to incomplete type
tim->tm_min, tim->tm_sec);
^
lmon16f.c:4845:49: error: dereferencing pointer to incomplete type
fprintf(fp, "AAA,date,%02d-%3s-%02d\n", tim->tm_mday,
^
lmon16f.c:4846:16: error: dereferencing pointer to incomplete type
month[tim->tm_mon - 1], tim->tm_year + 2000);
^
lmon16f.c:4846:34: error: dereferencing pointer to incomplete type
month[tim->tm_mon - 1], tim->tm_year + 2000);
^
lmon16f.c:4888:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:5127:2: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
sleep(1); /* to get the first stats to cover this one second and avoids divide by zero issues */
^
lmon16f.c:5146:6: warning: assignment makes pointer from integer without a cast [enabled by default]
tim = localtime(&timer);
^
lmon16f.c:5169:6: warning: implicit declaration of function 'box' [-Wimplicit-function-declaration]
box(stdscr, 0, 0);
^
lmon16f.c:5169:10: error: 'stdscr' undeclared (first use in this function)
box(stdscr, 0, 0);
^
lmon16f.c:5170:6: warning: implicit declaration of function 'mvprintw' [-Wimplicit-function-declaration]
mvprintw(x, 1, "nmon");
^
lmon16f.c:5177:11: error: dereferencing pointer to incomplete type
tim->tm_hour, tim->tm_min, tim->tm_sec);
^
lmon16f.c:5177:25: error: dereferencing pointer to incomplete type
tim->tm_hour, tim->tm_min, tim->tm_sec);
^
lmon16f.c:5177:38: error: dereferencing pointer to incomplete type
tim->tm_hour, tim->tm_min, tim->tm_sec);
^
lmon16f.c:5178:6: warning: implicit declaration of function 'wnoutrefresh' [-Wimplicit-function-declaration]
wnoutrefresh(stdscr);
^
lmon16f.c:5183:3: warning: implicit declaration of function 'wattrset' [-Wimplicit-function-declaration]
COLOUR wattrset(padwelcome, COLOR_PAIR(2));
^
lmon16f.c:5183:3: warning: implicit declaration of function 'COLOR_PAIR' [-Wimplicit-function-declaration]
lmon16f.c:5194:3: warning: implicit declaration of function 'mvwprintw' [-Wimplicit-function-declaration]
mvwprintw(padwelcome, x + 0, 3,
^
lmon16f.c:5375:3: warning: implicit declaration of function 'pnoutrefresh' [-Wimplicit-function-declaration]
pnoutrefresh(padwelcome, 0, 0, x, 1, LINES - 2, COLS - 2);
^
lmon16f.c:5375:40: error: 'LINES' undeclared (first use in this function)
pnoutrefresh(padwelcome, 0, 0, x, 1, LINES - 2, COLS - 2);
^
lmon16f.c:5375:51: error: 'COLS' undeclared (first use in this function)
pnoutrefresh(padwelcome, 0, 0, x, 1, LINES - 2, COLS - 2);
^
lmon16f.c:5387:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "ZZZZ,%s,%02d:%02d:%02d,%02d-%s-%4d\n", LOOP,
^
lmon16f.c:5388:7: error: dereferencing pointer to incomplete type
tim->tm_hour, tim->tm_min, tim->tm_sec,
^
lmon16f.c:5388:21: error: dereferencing pointer to incomplete type
tim->tm_hour, tim->tm_min, tim->tm_sec,
^
lmon16f.c:5388:34: error: dereferencing pointer to incomplete type
tim->tm_hour, tim->tm_min, tim->tm_sec,
^
lmon16f.c:5389:7: error: dereferencing pointer to incomplete type
tim->tm_mday, month[tim->tm_mon],
^
lmon16f.c:5389:27: error: dereferencing pointer to incomplete type
tim->tm_mday, month[tim->tm_mon],
^
lmon16f.c:5390:7: error: dereferencing pointer to incomplete type
tim->tm_year + 1900);
^
lmon16f.c:5394:6: warning: implicit declaration of function 'mvwhline' [-Wimplicit-function-declaration]
BANNER(padverb, "Verbose Mode");
^
lmon16f.c:4381:49: error: 'ACS_HLINE' undeclared (first use in this function)
#define BANNER(pad,string) {mvwhline(pad, 0, 0, ACS_HLINE,COLS-2); \
^
lmon16f.c:5394:6: note: in expansion of macro 'BANNER'
BANNER(padverb, "Verbose Mode");
^
lmon16f.c:5394:6: warning: implicit declaration of function 'wmove' [-Wimplicit-function-declaration]
lmon16f.c:5394:6: warning: implicit declaration of function 'wattron' [-Wimplicit-function-declaration]
lmon16f.c:4383:53: error: 'A_STANDOUT' undeclared (first use in this function)
wattron(pad,A_STANDOUT); \
^
lmon16f.c:5394:6: note: in expansion of macro 'BANNER'
BANNER(padverb, "Verbose Mode");
^
lmon16f.c:5394:6: warning: implicit declaration of function 'wprintw' [-Wimplicit-function-declaration]
lmon16f.c:5394:6: warning: implicit declaration of function 'wattroff' [-Wimplicit-function-declaration]
lmon16f.c:5580:6: warning: implicit declaration of function 'plot_snap' [-Wimplicit-function-declaration]
plot_snap(padlong);
^
lmon16f.c:5588:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:5596:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "BBBR,0,Reconfig,action,old,new\n");
^
lmon16f.c:5599:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "BBBR,%03d,%s,cpuchg,%d,%d\n", bbbr_line++,
^
lmon16f.c:5600:8: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
LOOP, old_cpus, cpus);
^
lmon16f.c:5709:4: warning: implicit declaration of function 'plot_smp' [-Wimplicit-function-declaration]
plot_smp(padsmp, i + 1, 3 + i,
^
lmon16f.c:5729:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
RRD fprintf(fp,
^
lmon16f.c:5739:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
100.0);
^
lmon16f.c:5795:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
RRD fprintf(fp,
^
lmon16f.c:5802:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
(double) cpu_steal / (double) cpu_sum * 100.0);
^
lmon16f.c:6140:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:6148:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:6157:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
RAWTOTAL(guest_nice) / elapsed);
^
lmon16f.c:6166:8: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
RAW(guest_nice) / elapsed);
^
lmon16f.c:6476:8: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_CPUINFO].line[lineno][DATACOL],
^
lmon16f.c:6516:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "MHZ,%s", LOOP);
^
lmon16f.c:6516:7: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:6522:4: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
sscanf(&proc[P_CPUINFO].line[lineno][DATACOL],
^
lmon16f.c:6663:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, str_p, LOOP, p->mem.memtotal / 1024.0,
^
lmon16f.c:6754:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:6758:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "HUGEPAGES,%s,%ld,%ld,%.1f\n",
^
lmon16f.c:6761:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
p->mem.hugefree, p->mem.hugesize / 1024.0);
^
lmon16f.c:6859:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:6881:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, str_p,
^
lmon16f.c:7038:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, str_p, LOOP, (float) p->cpu_total.running, /*runqueue */
^
lmon16f.c:7200:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "NFSCLIV2,NFS Client v2");
^
lmon16f.c:7206:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "NFSSVRV2,NFS Server v2");
^
lmon16f.c:7213:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "NFSCLIV3,NFS Client v3");
^
lmon16f.c:7219:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "NFSSVRV3,NFS Server v3");
^
lmon16f.c:7226:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "NFSCLIV4,NFS Client v4");
^
lmon16f.c:7232:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "NFSSVRV4,NFS Server v4");
^
lmon16f.c:7241:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7243:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"NFSCLIV2,%s", LOOP);
^
lmon16f.c:7243:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7251:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7253:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"NFSSVRV2,%s", LOOP);
^
lmon16f.c:7253:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7261:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7263:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"NFSCLIV3,%s", LOOP);
^
lmon16f.c:7263:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7271:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7273:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"NFSSVRV3,%s", LOOP);
^
lmon16f.c:7273:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7282:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7284:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"NFSCLIV4,%s", LOOP);
^
lmon16f.c:7284:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7292:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7294:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"NFSSVRV4,%s", LOOP);
^
lmon16f.c:7294:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7394:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7396:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
LOOP);
^
lmon16f.c:7396:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7408:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"NETPACKET,%s", LOOP);
^
lmon16f.c:7408:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7487:6: warning: implicit declaration of function 'fstatfs' [-Wimplicit-function-declaration]
fstatfs(jfs[k].fd,
^
lmon16f.c:7534:12: warning: implicit declaration of function 'ceil' [-Wimplicit-function-declaration]
ceil(fs_size_used),
^
lmon16f.c:7534:12: warning: incompatible implicit declaration of built-in function 'ceil' [enabled by default]
lmon16f.c:7567:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7569:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"JFSFILE,%s", LOOP);
^
lmon16f.c:7569:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:7895:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7899:5: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]
dskgrp(i), LOOP);
^
lmon16f.c:7899:5: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]
lmon16f.c:7910:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7913:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
"\nDISKREAD%s,%s", dskgrp(i), LOOP);
^
lmon16f.c:7913:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
lmon16f.c:7919:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7922:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
"\nDISKWRITE%s,%s", dskgrp(i), LOOP);
^
lmon16f.c:7922:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
lmon16f.c:7928:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7931:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
"\nDISKXFER%s,%s", dskgrp(i), LOOP);
^
lmon16f.c:7931:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
lmon16f.c:7938:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:7941:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
"\nDISKBSIZE%s,%s", dskgrp(i), LOOP);
^
lmon16f.c:7941:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
lmon16f.c:7952:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "\nDISKREADS%s,%s", dskgrp(i),
^
lmon16f.c:7953:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
LOOP);
^
lmon16f.c:7956:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, ",%.1f", disk_read / elapsed);
^
lmon16f.c:7961:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "\nDISKWRITES%s,%s", dskgrp(i),
^
lmon16f.c:7962:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
LOOP);
^
lmon16f.c:7965:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, ",%.1f", disk_write / elapsed);
^
lmon16f.c:7968:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp, "\n");
^
lmon16f.c:8048:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:8050:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"DGBUSY,%s", LOOP);
^
lmon16f.c:8050:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:8069:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"DGREAD,%s", LOOP);
^
lmon16f.c:8069:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:8089:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"DGWRITE,%s", LOOP);
^
lmon16f.c:8089:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:8109:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"DGSIZE,%s", LOOP);
^
lmon16f.c:8109:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:8137:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
"DGXFER,%s", LOOP);
^
lmon16f.c:8137:8: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
lmon16f.c:8155:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGREADS,%s", LOOP);
^
lmon16f.c:8169:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGREADMERGE,%s", LOOP);
^
lmon16f.c:8183:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGREADSERV,%s", LOOP);
^
lmon16f.c:8197:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGWRITES,%s", LOOP);
^
lmon16f.c:8211:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGWRITEMERGE,%s", LOOP);
^
lmon16f.c:8225:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGWRITESERV,%s", LOOP);
^
lmon16f.c:8239:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGINFLIGHT,%s", LOOP);
^
lmon16f.c:8253:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGIOTIME,%s", LOOP);
^
lmon16f.c:8267:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(fp, "DGBACKLOG,%s", LOOP);
^
lmon16f.c:8288:6: warning: implicit declaration of function 'wclrtobot' [-Wimplicit-function-declaration]
wclrtobot(padtop);
^
lmon16f.c:141:41: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
#define REALLOC(argument1,argument2) realloc(argument1,argument2)
^
lmon16f.c:8294:14: note: in expansion of macro 'REALLOC'
p->procs = REALLOC(p->procs, sizeof(struct procsinfo) * adjusted_procs);
^
lmon16f.c:141:41: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
#define REALLOC(argument1,argument2) realloc(argument1,argument2)
^
lmon16f.c:8301:12: note: in expansion of macro 'REALLOC'
topper = REALLOC(topper, sizeof(struct topper) * (p->processes +1));/* add one to avoid overrun */
^
lmon16f.c:8327:3: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
qsort((void *) &topper[0], max_sorted,
^
lmon16f.c:8361:8: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
sprintf(&pgrp[0], "%d", p->procs[i].pi_pgrp);
^
lmon16f.c:8468:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
strncpy( truncated_command, args_lookup(p->procs[i].pi_pid, p->procs[i].pi_comm), 256);
^
lmon16f.c:8599:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:8619:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
);
^
lmon16f.c:8652:6: warning: implicit declaration of function 'wrefresh' [-Wimplicit-function-declaration]
wrefresh(stdscr);
^
lmon16f.c:8653:6: warning: implicit declaration of function 'doupdate' [-Wimplicit-function-declaration]
doupdate();
^
lmon16f.c:8698:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
fprintf(fp,
^
lmon16f.c:8700:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
LOOP, secs, ret);
^
lmon16f.c:8723:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
exit(0);
^
lmon16f.c:4349:20: warning: unused variable 'nmon_tv' [-Wunused-variable]
struct timeval nmon_tv; /* below is used to workout the nmon run, accumalate it and the
^
lmon16f.c:4321:19: warning: unused variable 'statfs_buffer' [-Wunused-variable]
struct statfs statfs_buffer;
^
lmon16f.c:4295:20: warning: unused variable 'uts' [-Wunused-variable]
struct utsname uts; /* UNIX name, version, etc */
^
lmon16f.c: In function 'check_call_string':
lmon16f.c:262:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lmon16f.c: In function 'doubletime':
lmon16f.c:1735:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
==> ERROR: A failure occurred in build().
Aborting...