ports/168164: [PATCH] net/socat: Fix build with clang

Baptiste Daroussin bapt at FreeBSD.org
Sun May 20 12:40:11 UTC 2012


>Number:         168164
>Category:       ports
>Synopsis:       [PATCH] net/socat: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 20 12:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Baptiste Daroussin
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD azathoth.lan 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r233418M: Sat Mar 24 13:45:31 CET
>Description:
This patch fixes build with clang, clang complaining about unused comparison
that are use in the configure test to determine the size of some types

Port maintainer (ehaupt at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_5 (mode: change, diff: CVS)
>How-To-Repeat:
>Fix:

--- socat-1.7.2.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/socat/Makefile,v
retrieving revision 1.35
diff -u -u -r1.35 Makefile
--- Makefile	14 May 2012 18:42:14 -0000	1.35
+++ Makefile	20 May 2012 12:37:23 -0000
@@ -21,6 +21,9 @@
 USE_RC_SUBR=	socat
 USE_OPENSSL=	yes
 MAKE_JOBS_SAFE=	yes
+.if ${CC} == clang
+CFLAGS+=	-Wno-unused-comparison
+.endif
 
 PORTSCOUT=	skipv:2.0.0-b2
 
--- socat-1.7.2.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list