ports/158177: [PATCH] fix www/squirm to build with clang.

Niclas Zeising niclas.zeising at gmail.com
Wed Jun 22 22:20:11 UTC 2011


>Number:         158177
>Category:       ports
>Synopsis:       [PATCH] fix www/squirm to 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:   Wed Jun 22 22:20:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Niclas Zeising
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root at vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64


	
>Description:
	www/squirm does not build with clang.
>How-To-Repeat:
	
>Fix:

	Attached patch makes squirm build with clang.

--- www.squirm.clangfix.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/squirm/Makefile,v
retrieving revision 1.18
diff -u -d -r1.18 Makefile
--- Makefile	1 Sep 2005 15:16:20 -0000	1.18
+++ Makefile	22 Jun 2011 22:08:13 -0000
@@ -16,6 +16,8 @@
 
 RUN_DEPENDS=	${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
 
+USE_CSTD=gnu98
+
 SQUID_UID?=	squid
 SQUID_GID?=	squid
 
Index: files/patch-squirm.c
===================================================================
RCS file: files/patch-squirm.c
diff -N files/patch-squirm.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-squirm.c	22 Jun 2011 22:08:13 -0000
@@ -0,0 +1,11 @@
+--- squirm.c.orig	2011-06-23 00:02:30.000000000 +0200
++++ squirm.c	2011-06-23 00:02:46.000000000 +0200
+@@ -88,7 +88,7 @@
+      print buff to stdout
+   */
+   if(strlen(in_buff->url) <= 4) {
+-    logprint(LOG_FAIL, "strlen in_buff->url = [%d] in main()\n", 
++    logprint(LOG_FAIL, "strlen in_buff->url = [%zu] in main()\n", 
+ 	strlen(in_buff->url));
+     return 1;
+   }
--- www.squirm.clangfix.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list