Date: Wed, 21 Jan 2015 12:58:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 196964] net-mgmt/nagios-plugins: Fix for check_dhcp (not only) on FreeBSD 10 Message-ID: <bug-196964-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196964 Bug ID: 196964 Summary: net-mgmt/nagios-plugins: Fix for check_dhcp (not only) on FreeBSD 10 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: cejkar@fit.vutbr.cz Flags: maintainer-feedback?(mat@FreeBSD.org) Assignee: mat@FreeBSD.org Created attachment 151948 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151948&action=edit check_dhcp.c fix The bug is reported here: https://github.com/nagios-plugins/nagios-plugins/issues/70 There is a bug in getting MAC address of network interface on BSD systems, where fourth parameter in sysctl() has to be size_t * and not int *. Unfortunately, using gcc -O2 the bug is hidden and contrary to compiler warning, check_dhcp seems to be working. However, when you use gcc -O0 or gcc -O1 or clang in FreeBSD 10 on amd64, the bug is exposed: ./check_dhcp -i em0 -s 127.0.0.1 Error: Couldn't get hardware address from em0. sysctl 2 error - No such file or directory. Until it is fixed in upstream, please add the patch to the current nagios-plugins 2.0.3. Thank you very much. --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Auto-assigned to maintainer mat@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196964-13>