------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/ncurses-6.1.20190525.txz SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> atop-2.0.2.b3_3 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> atop-2.0.2.b3_3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by atop-2.0.2.b3_3 for building SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> atop-2.0.2.b3_3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by atop-2.0.2.b3_3 for building => SHA256 Checksum OK for samm-git-atop-freebsd-2.0.2.b3-atop-2.0.2.fbsd.beta3_GH0.tar.gz. SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> atop-2.0.2.b3_3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by atop-2.0.2.b3_3 for building ===> Extracting for atop-2.0.2.b3_3 => SHA256 Checksum OK for samm-git-atop-freebsd-2.0.2.b3-atop-2.0.2.fbsd.beta3_GH0.tar.gz. Extracted Memory Use: 0.82M SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for atop-2.0.2.b3_3 ===> Applying ports patches for atop-2.0.2.b3_3 ===> Cleanly applied ports patch(es) patch-atop.c patch-atop.h patch-photosyst.c SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- ===> atop-2.0.2.b3_3 depends on file: /usr/local/lib/libncurses.so.6 - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> atop-2.0.2.b3_3 depends on file: /usr/local/lib/libncurses.so.6 - found ===> Configuring for atop-2.0.2.b3_3 SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> Building for atop-2.0.2.b3_3 --- atop.o --- --- version.o --- --- various.o --- --- deviate.o --- --- procdbase.o --- --- acctproc.o --- --- photoproc.o --- --- photosyst.o --- --- rawlog.o --- --- ifprop.o --- --- atop.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c atop.c --- version.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c version.c --- various.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c various.c --- deviate.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c deviate.c --- procdbase.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c procdbase.c --- acctproc.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c acctproc.c --- photosyst.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c photosyst.c --- rawlog.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c rawlog.c --- ifprop.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c ifprop.c --- photoproc.o --- cc -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -DFREEBSD -c photoproc.c --- procdbase.o --- procdbase.c:61:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: procdbase.c,v 1.8 2010/04/23 12:19:35 gerlof Exp $"; ^~~~~ --- various.o --- In file included from various.c:118: acctproc.h:147:8: error: redefinition of 'struct acct' struct acct { ^~~~ In file included from acctproc.h:53, from various.c:118: /usr/include/sys/acct.h:53:8: note: originally defined here struct acct { ^~~~ In file included from various.c:118: acctproc.h:161:2: error: unknown type name '__dev_t' __dev_t ac_tty; /* controlling tty */ ^~~~~~~ acctproc.h:165:3: error: unknown type name '__dev_t' __dev_t ac_align; /* force v1 compatible alignment */ ^~~~~~~ various.c: In function 'cleanstop': various.c:574:1: warning: type of 'exitcode' defaults to 'int' [-Wimplicit-int] cleanstop(exitcode) ^~~~~~~~~ At top level: various.c:101:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: various.c,v 1.21 2010/11/12 06:16:16 gerlof Exp $"; ^~~~~ *** [various.o] Error code 1 make[1]: stopped in /construction/sysutils/atop/atop-freebsd-atop-2.0.2.fbsd.beta3 --- atop.o --- In file included from atop.c:294: acctproc.h:147:8: error: redefinition of 'struct acct' struct acct { ^~~~ In file included from acctproc.h:53, from atop.c:294: /usr/include/sys/acct.h:53:8: note: originally defined here struct acct { ^~~~ In file included from atop.c:294: acctproc.h:161:2: error: unknown type name '__dev_t' __dev_t ac_tty; /* controlling tty */ ^~~~~~~ acctproc.h:165:3: error: unknown type name '__dev_t' __dev_t ac_align; /* force v1 compatible alignment */ ^~~~~~~ atop.c: In function 'main': atop.c:668:6: warning: implicit declaration of function 'devstat_checkversion'; did you mean 'checkversion'? [-Wimplicit-function-declaration] if (devstat_checkversion(NULL) < 0) ^~~~~~~~~~~~~~~~~~~~ checkversion At top level: atop.c:274:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: atop.c,v 1.49 2010/10/23 14:01:00 gerlof Exp $"; ^~~~~ *** [atop.o] Error code 1 make[1]: stopped in /construction/sysutils/atop/atop-freebsd-atop-2.0.2.fbsd.beta3 --- acctproc.o --- In file included from acctproc.c:135: acctproc.h:147:8: error: redefinition of 'struct acct' struct acct { ^~~~ In file included from acctproc.h:53, from acctproc.c:135: /usr/include/sys/acct.h:53:8: note: originally defined here struct acct { ^~~~ In file included from acctproc.c:135: acctproc.h:161:2: error: unknown type name '__dev_t' __dev_t ac_tty; /* controlling tty */ ^~~~~~~ acctproc.h:165:3: error: unknown type name '__dev_t' __dev_t ac_align; /* force v1 compatible alignment */ ^~~~~~~ --- ifprop.o --- ifprop.c: In function 'link_speed': ifprop.c:108:5: error: duplicate case value case IFM_10G_LR: ^~~~ ifprop.c:102:5: note: previously used here case IFM_HPNA_1: ^~~~ --- acctproc.o --- acctproc.c:116:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: acctproc.c,v 1.28 2010/04/23 12:20:19 gerlof Exp $"; ^~~~~ --- ifprop.o --- *** [ifprop.o] Error code 1 make[1]: stopped in /construction/sysutils/atop/atop-freebsd-atop-2.0.2.fbsd.beta3 --- acctproc.o --- *** [acctproc.o] Error code 1 make[1]: stopped in /construction/sysutils/atop/atop-freebsd-atop-2.0.2.fbsd.beta3 --- deviate.o --- deviate.c:171:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: deviate.c,v 1.45 2010/10/23 14:02:03 gerlof Exp $"; ^~~~~ --- photoproc.o --- photoproc.c: In function 'proccmd': photoproc.c:397:12: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD))) ^~~~~~~ kp_flags photoproc.c:397:41: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD))) ^~~~~~~ kp_flags photoproc.c:397:51: error: 'P_KTHREAD' undeclared (first use in this function); did you mean 'RFTHREAD'? ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD))) ^~~~~~~~~ RFTHREAD photoproc.c:397:51: note: each undeclared identifier is reported only once for each function it appears in photoproc.c:399:56: error: 'struct kinfo_proc' has no member named 'ki_comm'; did you mean 'kp_comm'? snprintf(curtask->gen.cmdline, CMDLEN-1, "{%s}", pp->ki_comm); ^~~~~~~ kp_comm photoproc.c: In function 'procthr': photoproc.c:407:14: error: 'struct kinfo_proc' has no member named 'ki_ocomm'; did you mean 'kp_comm'? strlen(pp->ki_ocomm) ? pp->ki_ocomm : pp->ki_comm); ^~~~~~~~ kp_comm photoproc.c:407:30: error: 'struct kinfo_proc' has no member named 'ki_ocomm'; did you mean 'kp_comm'? strlen(pp->ki_ocomm) ? pp->ki_ocomm : pp->ki_comm); ^~~~~~~~ kp_comm photoproc.c:407:45: error: 'struct kinfo_proc' has no member named 'ki_comm'; did you mean 'kp_comm'? strlen(pp->ki_ocomm) ? pp->ki_ocomm : pp->ki_comm); ^~~~~~~ kp_comm photoproc.c: In function 'photoproc': photoproc.c:463:13: error: 'struct kinfo_proc' has no member named 'ki_pid'; did you mean 'kp_pid'? if(pbase->ki_pid) { ^~~~~~ kp_pid photoproc.c:464:33: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) ^~~~~~~ kp_flags photoproc.c:464:65: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) ^~~~~~~ kp_flags photoproc.c:464:75: error: 'P_KTHREAD' undeclared (first use in this function); did you mean 'RFTHREAD'? if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) ^~~~~~~~~ RFTHREAD photoproc.c:472:24: error: 'struct kinfo_proc' has no member named 'ki_pid'; did you mean 'kp_pid'? if(prev_pid==pbase->ki_pid && prev_curtask) { ^~~~~~ kp_pid photoproc.c:494:19: error: 'struct kinfo_proc' has no member named 'ki_stat'; did you mean 'kp_stat'? switch (pbase->ki_stat) { ^~~~~~~ kp_stat photoproc.c:495:13: error: 'SRUN' undeclared (first use in this function); did you mean 'LSRUN'? case SRUN: ^~~~ LSRUN photoproc.c:500:9: error: 'SSLEEP' undeclared (first use in this function); did you mean 'LSSLEEP'? case SSLEEP: ^~~~~~ LSSLEEP photoproc.c:503:9: error: 'SLOCK' undeclared (first use in this function); did you mean 'F_LOCK'? case SLOCK: ^~~~~ F_LOCK photoproc.c:508:9: error: 'SWAIT' undeclared (first use in this function) case SWAIT: ^~~~~ photoproc.c:523:20: error: 'struct kinfo_proc' has no member named 'ki_pid'; did you mean 'kp_pid'? prev_pid=pbase->ki_pid; ^~~~~~ kp_pid photoproc.c: In function 'countprocs': photoproc.c:576:16: error: 'struct kinfo_proc' has no member named 'ki_pid'; did you mean 'kp_pid'? if(pbase->ki_pid) { ^~~~~~ kp_pid photoproc.c:577:32: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) ^~~~~~~ kp_flags photoproc.c:577:64: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) ^~~~~~~ kp_flags photoproc.c:577:74: error: 'P_KTHREAD' undeclared (first use in this function); did you mean 'RFTHREAD'? if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) ^~~~~~~~~ RFTHREAD photoproc.c: In function 'procstat': photoproc.c:674:12: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? if ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD)) ^~~~~~~ kp_flags photoproc.c:674:41: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? if ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD)) ^~~~~~~ kp_flags photoproc.c:674:51: error: 'P_KTHREAD' undeclared (first use in this function); did you mean 'RFTHREAD'? if ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD)) ^~~~~~~~~ RFTHREAD photoproc.c:676:54: error: 'struct kinfo_proc' has no member named 'ki_comm'; did you mean 'kp_comm'? snprintf(curtask->gen.name,PNAMLEN-1, "{%s}", pp->ki_comm); ^~~~~~~ kp_comm photoproc.c:678:35: error: 'struct kinfo_proc' has no member named 'ki_comm'; did you mean 'kp_comm'? strncpy(curtask->gen.name, pp->ki_comm, PNAMLEN-1); ^~~~~~~ kp_comm photoproc.c:682:60: error: 'struct kinfo_proc' has no member named 'ki_ocomm'; did you mean 'kp_comm'? snprintf(curtask->gen.name,PNAMLEN-1, "[%s]", strlen(pp->ki_ocomm) ? pp->ki_ocomm : pp->ki_comm); ^~~~~~~~ kp_comm photoproc.c:682:76: error: 'struct kinfo_proc' has no member named 'ki_ocomm'; did you mean 'kp_comm'? snprintf(curtask->gen.name,PNAMLEN-1, "[%s]", strlen(pp->ki_ocomm) ? pp->ki_ocomm : pp->ki_comm); ^~~~~~~~ kp_comm photoproc.c:682:91: error: 'struct kinfo_proc' has no member named 'ki_comm'; did you mean 'kp_comm'? snprintf(curtask->gen.name,PNAMLEN-1, "[%s]", strlen(pp->ki_ocomm) ? pp->ki_ocomm : pp->ki_comm); ^~~~~~~ kp_comm photoproc.c:688:10: warning: implicit declaration of function 'PRI_BASE'; did you mean 'CR4_PAE'? [-Wimplicit-function-declaration] switch (PRI_BASE(pp->ki_pri.pri_class)) { ^~~~~~~~ CR4_PAE photoproc.c:688:23: error: 'struct kinfo_proc' has no member named 'ki_pri'; did you mean 'kp_pid'? switch (PRI_BASE(pp->ki_pri.pri_class)) { ^~~~~~ kp_pid photoproc.c:689:11: error: 'PRI_REALTIME' undeclared (first use in this function); did you mean 'RTP_PRIO_REALTIME'? case PRI_REALTIME: ^~~~~~~~~~~~ RTP_PRIO_REALTIME photoproc.c:690:34: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? curtask->cpu.rtprio = ((pp->ki_flag & P_KTHREAD) ? pp->ki_pri.pri_native : ^~~~~~~ kp_flags photoproc.c:690:61: error: 'struct kinfo_proc' has no member named 'ki_pri'; did you mean 'kp_pid'? curtask->cpu.rtprio = ((pp->ki_flag & P_KTHREAD) ? pp->ki_pri.pri_native : ^~~~~~ kp_pid photoproc.c:691:15: error: 'struct kinfo_proc' has no member named 'ki_pri'; did you mean 'kp_pid'? pp->ki_pri.pri_user) - PRI_MIN_REALTIME; ^~~~~~ kp_pid photoproc.c:691:34: error: 'PRI_MIN_REALTIME' undeclared (first use in this function); did you mean 'RTP_PRIO_REALTIME'? pp->ki_pri.pri_user) - PRI_MIN_REALTIME; ^~~~~~~~~~~~~~~~ RTP_PRIO_REALTIME photoproc.c:693:11: error: 'PRI_IDLE' undeclared (first use in this function); did you mean 'CP_IDLE'? case PRI_IDLE: ^~~~~~~~ CP_IDLE photoproc.c:694:34: error: 'struct kinfo_proc' has no member named 'ki_flag'; did you mean 'kp_flags'? curtask->cpu.rtprio = ((pp->ki_flag & P_KTHREAD) ? pp->ki_pri.pri_native : ^~~~~~~ kp_flags photoproc.c:694:61: error: 'struct kinfo_proc' has no member named 'ki_pri'; did you mean 'kp_pid'? curtask->cpu.rtprio = ((pp->ki_flag & P_KTHREAD) ? pp->ki_pri.pri_native : ^~~~~~ kp_pid photoproc.c:695:15: error: 'struct kinfo_proc' has no member named 'ki_pri'; did you mean 'kp_pid'? pp->ki_pri.pri_user) - PRI_MIN_IDLE; ^~~~~~ kp_pid photoproc.c:695:34: error: 'PRI_MIN_IDLE' undeclared (first use in this function); did you mean 'PRIO_MIN'? pp->ki_pri.pri_user) - PRI_MIN_IDLE; ^~~~~~~~~~~~ PRIO_MIN photoproc.c:706:14: error: 'struct kinfo_proc' has no member named 'ki_stat'; did you mean 'kp_stat'? switch (pp->ki_stat) { ^~~~~~~ kp_stat photoproc.c:707:7: error: 'SRUN' undeclared (first use in this function); did you mean 'LSRUN'? case SRUN: ^~~~ LSRUN photoproc.c:710:7: error: 'SLOCK' undeclared (first use in this function); did you mean 'F_LOCK'? case SLOCK: /* Blocked on a lock. */ ^~~~~ F_LOCK photoproc.c:713:7: error: 'SSLEEP' undeclared (first use in this function); did you mean 'LSSLEEP'? case SSLEEP: ^~~~~~ LSSLEEP photoproc.c:725:7: error: 'SWAIT' undeclared (first use in this function) case SWAIT: ^~~~~ photoproc.c:730:30: error: 'struct kinfo_proc' has no member named 'ki_pid'; did you mean 'kp_pid'? curtask->gen.tgid = pp->ki_pid; /* FreeBSD is not using thread groups */ ^~~~~~ kp_pid photoproc.c:731:41: error: 'struct kinfo_proc' has no member named 'ki_pid'; did you mean 'kp_pid'? curtask->gen.pid = (isproc) ? pp->ki_pid : pp->ki_tid; ^~~~~~ kp_pid photoproc.c:731:54: error: 'struct kinfo_proc' has no member named 'ki_tid'; did you mean 'kp_uid'? curtask->gen.pid = (isproc) ? pp->ki_pid : pp->ki_tid; ^~~~~~ kp_uid photoproc.c:732:30: error: 'struct kinfo_proc' has no member named 'ki_ppid'; did you mean 'kp_ppid'? curtask->gen.ppid = pp->ki_ppid; ^~~~~~~ kp_ppid photoproc.c:733:30: error: 'struct kinfo_proc' has no member named 'ki_ruid'; did you mean 'kp_ruid'? curtask->gen.ruid = pp->ki_ruid; ^~~~~~~ kp_ruid photoproc.c:734:30: error: 'struct kinfo_proc' has no member named 'ki_uid'; did you mean 'kp_uid'? curtask->gen.euid = pp->ki_uid;; ^~~~~~ kp_uid photoproc.c:735:30: error: 'struct kinfo_proc' has no member named 'ki_svuid'; did you mean 'kp_svuid'? curtask->gen.suid = pp->ki_svuid;; ^~~~~~~~ kp_svuid photoproc.c:737:30: error: 'struct kinfo_proc' has no member named 'ki_rgid'; did you mean 'kp_rgid'? curtask->gen.rgid = pp->ki_rgid; ^~~~~~~ kp_rgid photoproc.c:738:30: error: 'struct kinfo_proc' has no member named 'ki_pgid'; did you mean 'kp_pgid'? curtask->gen.egid = pp->ki_pgid; ^~~~~~~ kp_pgid photoproc.c:739:30: error: 'struct kinfo_proc' has no member named 'ki_svgid'; did you mean 'kp_svgid'? curtask->gen.sgid = pp->ki_svgid; ^~~~~~~~ kp_svgid photoproc.c:741:30: error: 'struct kinfo_proc' has no member named 'ki_jid'; did you mean 'kp_uid'? curtask->gen.jid = pp->ki_jid; ^~~~~~ kp_uid photoproc.c:742:41: error: 'struct kinfo_proc' has no member named 'ki_numthreads'; did you mean 'kp_nthreads'? curtask->gen.nthr = (isproc) ? pp->ki_numthreads : 1; ^~~~~~~~~~~~~ kp_nthreads photoproc.c:745:30: error: 'struct kinfo_proc' has no member named 'ki_start'; did you mean 'kp_start'? curtask->gen.btime = pp->ki_start.tv_sec; ^~~~~~~~ kp_start photoproc.c:748:38: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->cpu.utime = ((count_t)pp->ki_rusage.ru_utime.tv_sec + (float)pp->ki_rusage.ru_utime.tv_usec/1000000) * hertz; ^~ photoproc.c:748:77: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->cpu.utime = ((count_t)pp->ki_rusage.ru_utime.tv_sec + (float)pp->ki_rusage.ru_utime.tv_usec/1000000) * hertz; ^~ photoproc.c:749:38: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->cpu.stime = ((count_t)pp->ki_rusage.ru_stime.tv_sec + (float)pp->ki_rusage.ru_stime.tv_usec/1000000) * hertz; ^~ photoproc.c:749:77: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->cpu.stime = ((count_t)pp->ki_rusage.ru_stime.tv_sec + (float)pp->ki_rusage.ru_stime.tv_usec/1000000) * hertz; ^~ photoproc.c:750:30: error: 'struct kinfo_proc' has no member named 'ki_pri'; did you mean 'kp_pid'? curtask->cpu.prio = pp->ki_pri.pri_level - PZERO; /* from freebsd top */ ^~~~~~ kp_pid photoproc.c:750:49: error: 'PZERO' undeclared (first use in this function); did you mean 'NZERO'? curtask->cpu.prio = pp->ki_pri.pri_level - PZERO; /* from freebsd top */ ^~~~~ NZERO photoproc.c:751:30: error: 'struct kinfo_proc' has no member named 'ki_nice'; did you mean 'kp_nice'? curtask->cpu.nice = pp->ki_nice; ^~~~~~~ kp_nice photoproc.c:752:30: error: 'struct kinfo_proc' has no member named 'ki_pri'; did you mean 'kp_pid'? curtask->cpu.policy = pp->ki_pri.pri_class; // it is different value then in Linux ^~~~~~ kp_pid photoproc.c:753:33: error: 'struct kinfo_proc' has no member named 'ki_lastcpu' curtask->cpu.curcpu = (int)pp->ki_lastcpu; ^~ photoproc.c:755:28: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->mem.minflt = pp->ki_rusage.ru_minflt; ^~ photoproc.c:756:28: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->mem.majflt = pp->ki_rusage.ru_majflt; ^~ photoproc.c:757:30: error: 'struct kinfo_proc' has no member named 'ki_tsize'; did you mean 'kp_tsid'? curtask->mem.vexec = pp->ki_tsize * (pagesize/1024); ^~~~~~~~ kp_tsid photoproc.c:758:30: error: 'struct kinfo_proc' has no member named 'ki_size'; did you mean 'kp_sid'? curtask->mem.vmem = pp->ki_size / 1024; ^~~~~~~ kp_sid photoproc.c:759:30: error: 'struct kinfo_proc' has no member named 'ki_rssize'; did you mean 'kp_vm_rssize'? curtask->mem.rmem = pp->ki_rssize * (pagesize/1024); ^~~~~~~~~ kp_vm_rssize photoproc.c:762:30: error: 'struct kinfo_proc' has no member named 'ki_dsize'; did you mean 'kp_sid'? curtask->mem.vdata = pp->ki_dsize * (pagesize/1024); ^~~~~~~~ kp_sid photoproc.c:763:30: error: 'struct kinfo_proc' has no member named 'ki_ssize'; did you mean 'kp_sid'? curtask->mem.vstack = pp->ki_ssize * (pagesize/1024); ^~~~~~~~ kp_sid photoproc.c:764:31: error: 'struct kinfo_proc' has no member named 'ki_size'; did you mean 'kp_sid'? curtask->mem.vlibs = (pp->ki_size/pagesize - pp->ki_dsize - ^~~~~~~ kp_sid photoproc.c:764:54: error: 'struct kinfo_proc' has no member named 'ki_dsize'; did you mean 'kp_sid'? curtask->mem.vlibs = (pp->ki_size/pagesize - pp->ki_dsize - ^~~~~~~~ kp_sid photoproc.c:765:7: error: 'struct kinfo_proc' has no member named 'ki_ssize'; did you mean 'kp_sid'? pp->ki_ssize -pp->ki_tsize - 1) * (pagesize/1024); // from linprocfs.c ^~~~~~~~ kp_sid photoproc.c:765:21: error: 'struct kinfo_proc' has no member named 'ki_tsize'; did you mean 'kp_tsid'? pp->ki_ssize -pp->ki_tsize - 1) * (pagesize/1024); // from linprocfs.c ^~~~~~~~ kp_tsid photoproc.c:768:28: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->dsk.rio = pp->ki_rusage.ru_inblock; /* Available data is in blocks only */ ^~ photoproc.c:769:28: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->dsk.rsz = pp->ki_rusage.ru_inblock; ^~ photoproc.c:770:28: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->dsk.wio = pp->ki_rusage.ru_oublock; ^~ photoproc.c:771:28: error: 'struct kinfo_proc' has no member named 'ki_rusage' curtask->dsk.wsz = pp->ki_rusage.ru_oublock; ^~ At top level: photoproc.c:139:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: photoproc.c,v 1.33 2010/04/23 12:19:35 gerlof Exp $"; ^~~~~ *** [photoproc.o] Error code 1 make[1]: stopped in /construction/sysutils/atop/atop-freebsd-atop-2.0.2.fbsd.beta3 --- photosyst.o --- In file included from photosyst.c:289: /usr/include/netinet/tcp_var.h:339:8: error: redefinition of 'struct tcp_stats' struct tcp_stats { ^~~~~~~~~ In file included from photosyst.h:24, from photosyst.c:177: netstats.h:62:8: note: originally defined here struct tcp_stats { ^~~~~~~~~ In file included from /usr/include/sys/filedesc.h:47, from /usr/include/sys/proc.h:45, from /usr/include/sys/user.h:75, from photosyst.c:298: /usr/include/sys/namecache.h:134:18: error: field 'nc_lock' has incomplete type struct lock nc_lock; ^~~~~~~ In file included from /usr/include/sys/proc.h:57, from /usr/include/sys/user.h:75, from photosyst.c:298: /usr/include/sys/eventvar.h:60:17: error: field 'kq_kqinfo' has incomplete type struct kqinfo kq_kqinfo; ^~~~~~~~~ In file included from /usr/include/sys/proc.h:61, from /usr/include/sys/user.h:75, from photosyst.c:298: /usr/include/sys/varsym.h:37:17: error: field 'vx_lock' has incomplete type struct lock vx_lock; ^~~~~~~ In file included from /usr/include/sys/user.h:75, from photosyst.c:298: /usr/include/sys/proc.h:117:14: error: field 'pg_lock' has incomplete type struct lock pg_lock; ^~~~~~~ /usr/include/sys/proc.h:282:15: error: field 'p_klist' has incomplete type struct klist p_klist; /* knotes attached to this process */ ^~~~~~~ In file included from /usr/include/vm/vm_map.h:96, from /usr/include/sys/user.h:90, from photosyst.c:298: /usr/include/vm/vm_object.h:138:14: error: field 'backing_lk' has incomplete type struct lock backing_lk; /* lock for backing_list only */ ^~~~~~~~~~ In file included from /usr/include/sys/user.h:90, from photosyst.c:298: /usr/include/vm/vm_map.h:346:15: error: field 'lock' has incomplete type struct lock lock; /* Lock for map data */ ^~~~ photosyst.c: In function 'photosyst': photosyst.c:1295:21: warning: implicit declaration of function 'devstat_getnumdevs'; did you mean 'getnumdevs'? [-Wimplicit-function-declaration] if ((num_devices = devstat_getnumdevs(NULL)) > 0) { ^~~~~~~~~~~~~~~~~~ getnumdevs photosyst.c:1311:7: warning: implicit declaration of function 'devstat_getdevs' [-Wimplicit-function-declaration] if (devstat_getdevs(NULL, &cur_statinfo) == -1) ^~~~~~~~~~~~~~~ photosyst.c:1323:7: warning: implicit declaration of function 'devstat_selectdevs'; did you mean 'selectdevs'? [-Wimplicit-function-declaration] if (devstat_selectdevs(&dev_select, &num_selected, ^~~~~~~~~~~~~~~~~~ selectdevs photosyst.c:1338:20: error: 'struct statinfo' has no member named 'snap_time'; did you mean 'busy_time'? last_statinfo.snap_time = cur_statinfo.snap_time; ^~~~~~~~~ busy_time photosyst.c:1338:45: error: 'struct statinfo' has no member named 'snap_time'; did you mean 'busy_time'? last_statinfo.snap_time = cur_statinfo.snap_time; ^~~~~~~~~ busy_time --- rawlog.o --- rawlog.c:138:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: rawlog.c,v 1.32 2010/11/26 06:06:35 gerlof Exp $"; ^~~~~ --- photosyst.o --- photosyst.c:1378:23: error: 'struct statinfo' has no member named 'snap_time'; did you mean 'busy_time'? etime = cur_statinfo.snap_time - last_statinfo.snap_time; ^~~~~~~~~ busy_time photosyst.c:1378:49: error: 'struct statinfo' has no member named 'snap_time'; did you mean 'busy_time'? etime = cur_statinfo.snap_time - last_statinfo.snap_time; ^~~~~~~~~ busy_time photosyst.c:1398:10: warning: implicit declaration of function 'devstat_compute_statistics'; did you mean 'compute_stats'? [-Wimplicit-function-declaration] if (devstat_compute_statistics(&cur_statinfo.dinfo->devices[di], ^~~~~~~~~~~~~~~~~~~~~~~~~~ compute_stats photosyst.c:1400:10: error: 'DSM_TOTAL_BYTES_READ' undeclared (first use in this function) DSM_TOTAL_BYTES_READ, &total_bytes_read, ^~~~~~~~~~~~~~~~~~~~ photosyst.c:1400:10: note: each undeclared identifier is reported only once for each function it appears in photosyst.c:1401:10: error: 'DSM_TOTAL_BYTES_WRITE' undeclared (first use in this function) DSM_TOTAL_BYTES_WRITE, &total_bytes_write, ^~~~~~~~~~~~~~~~~~~~~ photosyst.c:1402:10: error: 'DSM_TOTAL_TRANSFERS_READ' undeclared (first use in this function) DSM_TOTAL_TRANSFERS_READ, &total_transfers_read, ^~~~~~~~~~~~~~~~~~~~~~~~ photosyst.c:1403:10: error: 'DSM_TOTAL_TRANSFERS_WRITE' undeclared (first use in this function) DSM_TOTAL_TRANSFERS_WRITE, &total_transfers_write, ^~~~~~~~~~~~~~~~~~~~~~~~~ photosyst.c:1404:3: error: 'DSM_MS_PER_TRANSACTION' undeclared (first use in this function) DSM_MS_PER_TRANSACTION, &ms_per_transaction, ^~~~~~~~~~~~~~~~~~~~~~ photosyst.c:1405:3: error: 'DSM_BUSY_PCT' undeclared (first use in this function); did you mean 'DST_AUST'? DSM_BUSY_PCT, &busy_pct, ^~~~~~~~~~~~ DST_AUST photosyst.c:1406:3: error: 'DSM_QUEUE_LENGTH' undeclared (first use in this function); did you mean 'ISA_HOLE_LENGTH'? DSM_QUEUE_LENGTH, &queue_len, ^~~~~~~~~~~~~~~~ ISA_HOLE_LENGTH photosyst.c:1407:3: error: 'DSM_NONE' undeclared (first use in this function); did you mean 'DST_NONE'? DSM_NONE) != 0) ^~~~~~~~ DST_NONE photosyst.c:1477:16: error: storage size of 'ipstat' isn't known struct ipstat ipstat; ^~~~~~ photosyst.c:1561:24: error: storage size of 'tcpstat' isn't known struct tcpstat tcpstat; ^~~~~~~ photosyst.c:1599:66: error: dereferencing pointer to incomplete type 'struct xinpgen' for (ptr = (struct xinpgen *)(void *)((char *)xinpgen + xinpgen->xig_len); ^~ photosyst.c:1600:29: error: invalid application of 'sizeof' to incomplete type 'struct xinpgen' ptr->xig_len > sizeof(struct xinpgen); ^~~~~~ photosyst.c:1604:21: error: 'struct inpcb' has no member named 'inp_vflag'; did you mean 'inp_flags'? ((tp->xt_inp.inp_vflag & INP_IPV4) || (tp->xt_inp.inp_vflag & INP_IPV6)) == 0) ^~~~~~~~~ inp_flags photosyst.c:1604:33: error: 'INP_IPV4' undeclared (first use in this function); did you mean 'INP_ISIPV4'? ((tp->xt_inp.inp_vflag & INP_IPV4) || (tp->xt_inp.inp_vflag & INP_IPV6)) == 0) ^~~~~~~~ INP_ISIPV4 photosyst.c:1604:58: error: 'struct inpcb' has no member named 'inp_vflag'; did you mean 'inp_flags'? ((tp->xt_inp.inp_vflag & INP_IPV4) || (tp->xt_inp.inp_vflag & INP_IPV6)) == 0) ^~~~~~~~~ inp_flags photosyst.c:1604:70: error: 'INP_IPV6' undeclared (first use in this function); did you mean 'INP_ISIPV6'? ((tp->xt_inp.inp_vflag & INP_IPV4) || (tp->xt_inp.inp_vflag & INP_IPV6)) == 0) ^~~~~~~~ INP_ISIPV6 photosyst.c:1660:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (i=0; i <= ICMP6_MAXTYPE; i++) ^~~ photosyst.c:1663:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' si->net.icmpv6.Icmp6InErrors = icmp6stat.icp6s_badcode + icmp6stat.icp6s_tooshort + ^~ photosyst.c:1561:24: warning: unused variable 'tcpstat' [-Wunused-variable] struct tcpstat tcpstat; ^~~~~~~ photosyst.c:1477:16: warning: unused variable 'ipstat' [-Wunused-variable] struct ipstat ipstat; ^~~~~~ At top level: photosyst.c:152:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: photosyst.c,v 1.38 2010/11/19 07:40:40 gerlof Exp $"; ^~~~~ *** [photosyst.o] Error code 1 make[1]: stopped in /construction/sysutils/atop/atop-freebsd-atop-2.0.2.fbsd.beta3 --- rawlog.o --- rawlog.c: In function 'rawread': rawlog.c:525:42: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 236 [-Wformat-truncation=] snprintf(rawname, RAWNAMESZ, "%s/atop_%s", ^~ rawlog.c:527:5: savedname); ~~~~~~~~~ rawlog.c:525:4: note: 'snprintf' output between 21 and 276 bytes into a destination of size 256 snprintf(rawname, RAWNAMESZ, "%s/atop_%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BASEPATH, ~~~~~~~~~ savedname); ~~~~~~~~~~ rawlog.c:599:54: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 244 and 499 [-Wformat-truncation=] snprintf(command, sizeof command, "gunzip -c %s > %s", ^~ tmpname1, tmpname2); ~~~~~~~~ rawlog.c:599:3: note: 'snprintf' output between 14 and 524 bytes into a destination of size 512 snprintf(command, sizeof command, "gunzip -c %s > %s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tmpname1, tmpname2); ~~~~~~~~~~~~~~~~~~~ 6 errors make[1]: stopped in /construction/sysutils/atop/atop-freebsd-atop-2.0.2.fbsd.beta3 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /xports/sysutils/atop FAILED 00:00:01