Date: Thu, 24 May 2012 16:14:14 -0100 From: Jan Beich <jbeich@tormail.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/168311: [patch] sysutils/uhidd: unbreak after yacc update in r235723 Message-ID: <1SXbc3-0003Ev-VF@internal.tormail.org> Resent-Message-ID: <201205241720.q4OHK2AY083166@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1SXbc3-0003Ev-VF>