Date: Sat, 22 Mar 2003 15:16:06 +1100 From: Peter Kostouros <kpeter@melbpc.org.au> To: ports@FreeBSD.ORG Subject: port gkrellm 2.1.7a_1 on Current Message-ID: <3E7BE386.1010906@melbpc.org.au>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------040909070604030901060906 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Unfortunately I cannot build port gkrellm 2.1.7: compilation complains about getdevs, selectdevs, and some structure's variables, see devstat(3). I have attached a patch that enabled compilation on my system. Can someone elaborate on the use of devstat(3)? The documentation mentions accessing the kernel devstat(9) interface via kvm(3) or sysctl(3): which is the preferred method? -- Regards Peter As always the organisation disavows knowledge of this email --------------040909070604030901060906 Content-Type: text/plain; name="gkrellm-patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gkrellm-patch" --- src/sysdeps/freebsd.c.original Sat Mar 22 09:41:09 2003 +++ src/sysdeps/freebsd.c Sat Mar 22 13:38:02 2003 @@ -390,10 +390,10 @@ int dn; gchar name[32]; - if (getdevs(&statinfo_cur) < 0) + if (devstat_getdevs(NULL, &statinfo_cur) < 0) return; ndevs = statinfo_cur.dinfo->numdevs; - if (selectdevs(&dev_select, &num_selected, &num_selections, + if (devstat_selectdevs(&dev_select, &num_selected, &num_selections, &select_generation, statinfo_cur.dinfo->generation, statinfo_cur.dinfo->devices, ndevs, NULL, 0, NULL, 0, @@ -418,7 +418,7 @@ snprintf(name, sizeof(name), "%s%d", dev->device_name, dev->unit_number); gkrellm_disk_assign_data_by_name(name, - dev->bytes_read, dev->bytes_written); + dev->bytes[DEVSTAT_READ], dev->bytes[DEVSTAT_WRITE]); } free(dev_select); } --------------040909070604030901060906-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E7BE386.1010906>