ports/168311: [patch] sysutils/uhidd: unbreak after yacc update in r235723

Jan Beich jbeich at tormail.org
Thu May 24 17:20:02 UTC 2012


>Number:         168311
>Category:       ports
>Synopsis:       [patch] sysutils/uhidd: unbreak after yacc update in r235723
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 24 17:20:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
$ make
clang -O2 -pipe -I. -I/usr/ports/sysutils/uhidd/work/uhidd-0.2.0/uhidd -g -fno-omit-frame-pointer -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c parser.c
parser.y:214:2: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror]
        exit(1);
        ^
parser.y:214:2: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit'
parser.y:224:10: error: implicit declaration of function 'strtoul' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        value = strtoul(hex, NULL, 16);
                ^
In file included from y.tab.c:460:
/usr/include/stdlib.h:112:3: error: conflicting types for 'strtoul'
         strtoul(const char * __restrict, char ** __restrict, int);
         ^
parser.y:224:10: note: previous implicit declaration is here
        value = strtoul(hex, NULL, 16);
                ^
3 errors generated.
*** [parser.o] Error code 1
>Fix:
--- yacc.diff begins here ---
Index: sysutils/uhidd/files/patch-uhidd-parser.y
===================================================================
RCS file: sysutils/uhidd/files/patch-uhidd-parser.y
diff -N sysutils/uhidd/files/patch-uhidd-parser.y
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ sysutils/uhidd/files/patch-uhidd-parser.y	24 May 2012 16:59:36 -0000
@@ -0,0 +1,10 @@
+--- uhidd/parser.y~
++++ uhidd/parser.y
+@@ -32,6 +32,7 @@
+ #include <err.h>
+ #include <errno.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <syslog.h>
+ 
--- yacc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list