Date: Mon, 10 Jun 2013 08:03:21 +0000 (UTC) From: Vasil Dimov <vd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320441 - head/databases/gnats4/files Message-ID: <201306100803.r5A83LZ9081801@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vd Date: Mon Jun 10 08:03:20 2013 New Revision: 320441 URL: http://svnweb.freebsd.org/changeset/ports/320441 Log: databases/gnats4: Fix build failure on FreeBSD 10 gnats/gnats.h contains its own prototypes of asprintf() and vasprintf() which conflict with the system ones: In file included from edit.c:21: ./gnats.h:140:12: error: conflicting types for 'asprintf' extern int asprintf (char **buf, const char *fmt, ...); ^ /usr/include/stdio.h:396:6: note: previous declaration is here int asprintf(char **, const char *, ...) __printflike(2, 3); Just remove the prototypes from gnats.h. Reported by: miwi@ Added: head/databases/gnats4/files/patch-gnats__gnats.h (contents, props changed) Added: head/databases/gnats4/files/patch-gnats__gnats.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/gnats4/files/patch-gnats__gnats.h Mon Jun 10 08:03:20 2013 (r320441) @@ -0,0 +1,12 @@ +--- gnats/gnats.h.orig 2013-06-10 10:33:17.000000000 +0300 ++++ gnats/gnats.h 2013-06-10 10:33:26.000000000 +0300 +@@ -137,9 +137,6 @@ + # define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) + #endif + +-extern int asprintf (char **buf, const char *fmt, ...); +-extern int vasprintf (char **buf, const char *fmt, va_list args); +- + #if ! HAVE_DECL_UNSETENV + extern void unsetenv (const char *name); + #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306100803.r5A83LZ9081801>