Bug 208361

Summary: net-mgmt/arpwatch: error: use of undeclared identifier 'zeroflag'
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (pi)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2016-03-28 16:22:06 UTC
Update or arpwatch fails due to the error listed below on CURRENT (FreeBSD 11.0-CURRENT #5 r297337: Mon Mar 28 11:09:43 CEST 2016):

--- arpsnmp.o ---
--- arpwatch.o ---
./arpwatch.c:144:40: warning: unknown attribute 'volatile' ignored [-Wunknown-attributes]
__dead  void usage(void) __attribute__((volatile));
./arpwatch.c:211:4: error: use of undeclared identifier 'zeroflag'
                        zeroflag = 1;
DECLWAITSTATUS=int  -DARPDIR=\"/usr/local/arpwatch\" -DPATH_SENDMAIL=\"/usr/sbin/sendmail\" -I. -c ./arpsnmp.c
--- arpwatch.o ---
./arpwatch.c:436:40: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                syslog(LOG_ERR, "short (want %d)\n", sizeof(*eh) + sizeof(*ea));
                                             ~~      ^~~~~~~~~~~~~~~~~~~~~~~~~
--- version.o ---
--- arpwatch.o ---
./arpwatch.c:588:40: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
DECLWAITSTATUS=int  -DARPDIR=\"/usr/local/arpwatch\" -DPATH_SENDMAIL=\"/usr/sbin/sendmail\" -I. -c ./version.c
--- arpwatch.o ---
                syslog(LOG_ERR, "short (want %d)\n", sizeof(*fh) + sizeof(*ea));
                                             ~~      ^~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 1 error generated.
*** [arpwatch.o] Error code 1
Comment 1 commit-hook freebsd_committer 2016-03-28 16:24:56 UTC
A commit references this bug:

Author: pi
Date: Mon Mar 28 16:24:26 UTC 2016
New revision: 412061
URL: https://svnweb.freebsd.org/changeset/ports/412061

  net-mgmt/arpwatch: add missing files for -z flag

  PR:		208361
  Reported by:	ohartman@zedat.fu-berlin.de

Comment 2 Kurt Jaeger freebsd_committer 2016-03-28 16:25:37 UTC
Thanks for reporting, I failed to add two files in the initial commit. Fixed.