Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2011 00:46:32 +0200 (CEST)
From:      Niclas Zeising <niclas.zeising@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158182: [PATCH] fix devel/pwlib to build with clang
Message-ID:  <201106222246.p5MMkWbl009342@vincent.daemonic.se>
Resent-Message-ID: <201106222250.p5MMoBfM005707@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         158182
>Category:       ports
>Synopsis:       [PATCH] fix devel/pwlib 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:50: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@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64


	
>Description:
	devel/pwlib doesn't build with clang.
>How-To-Repeat:
	
>Fix:

	Attached patch makes devel/pwlib build with clang.

--- devel.pwlib.clangfix.patch begins here ---
Index: files/patch-include-ptlib-array.h
===================================================================
RCS file: files/patch-include-ptlib-array.h
diff -N files/patch-include-ptlib-array.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-include-ptlib-array.h	22 Jun 2011 22:44:30 -0000
@@ -0,0 +1,11 @@
+--- include/ptlib/array.h.orig	2011-06-23 00:28:13.000000000 +0200
++++ include/ptlib/array.h	2011-06-23 00:28:34.000000000 +0200
+@@ -644,7 +644,7 @@
+       T t;
+       stream >> t;
+       if (!stream.fail())
+-        SetAt(index, t);
++        this->SetAt(index, t);
+     }
+ };
+ 
--- devel.pwlib.clangfix.patch ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106222246.p5MMkWbl009342>