ports/164974: [PATCH] mail/libspf2 doesn't build with Clang.
James Kelly
james at hicag.org
Sat Feb 11 04:40:11 UTC 2012
>Number: 164974
>Category: ports
>Synopsis: [PATCH] mail/libspf2 doesn't build with Clang.
>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: Sat Feb 11 04:40:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: James Kelly
>Release: 9.0-STABLE
>Organization:
>Environment:
FreeBSD trilobite.build.stf.ord.tilted.net 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri Feb 10 15:46:00 CST 2012 jjk at trilobite.build.stf.ord.tilted.net:/.amd_mnt/FreeBSD_9/obj/amd64.amd64/.amd_mnt/FreeBSD_9/src/sys/GREENHOUSE amd64
>Description:
mail/libspf2 doesn't build with Clang due to the way it uses __VA_ARGS__ in logging macros.
>How-To-Repeat:
Build mail/libspf2
>Fix:
Patch attached with submission follows:
Index: files/patch-src__include__spf_log.h
===================================================================
--- files/patch-src__include__spf_log.h (revision 0)
+++ files/patch-src__include__spf_log.h (revision 4147)
@@ -0,0 +1,17 @@
+--- ./src/include/spf_log.h.orig Sat Sep 13 22:04:44 2008
++++ ./src/include/spf_log.h Tue Feb 7 17:01:49 2012
+@@ -60,10 +60,10 @@
+
+ #if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
+
+-#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, __VA_ARGS__ )
++#define SPF_errorf( ... ) SPF_errorx( __FILE__, __LINE__, __VA_ARGS__ )
++#define SPF_warningf( ... ) SPF_warningx( __FILE__, __LINE__, __VA_ARGS__ )
++#define SPF_infof( ... ) SPF_infox( __FILE__, __LINE__, __VA_ARGS__ )
++#define SPF_debugf( ... ) SPF_debugx( __FILE__, __LINE__, __VA_ARGS__ )
+
+ #elif defined( __GNUC__ )
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list