From aakuusta@gmail.com  Tue Sep  6 04:39:04 2011
Return-Path: <aakuusta@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 714E0106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Sep 2011 04:39:04 +0000 (UTC)
	(envelope-from aakuusta@gmail.com)
Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54])
	by mx1.freebsd.org (Postfix) with ESMTP id 085258FC19
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Sep 2011 04:39:00 +0000 (UTC)
Received: by ewy1 with SMTP id 1so3002088ewy.13
        for <FreeBSD-gnats-submit@freebsd.org>; Mon, 05 Sep 2011 21:38:59 -0700 (PDT)
Received: by 10.213.14.199 with SMTP id h7mr756422eba.77.1315283939442;
        Mon, 05 Sep 2011 21:38:59 -0700 (PDT)
Received: from nil (rainbowwarrior.torservers.net [77.247.181.164])
        by mx.google.com with ESMTPS id g65sm12553997eeg.12.2011.09.05.21.38.38
        (version=SSLv3 cipher=OTHER);
        Mon, 05 Sep 2011 21:38:58 -0700 (PDT)
Message-Id: <861uvucmkh.fsf@gmail.com>
Date: Tue, 06 Sep 2011 08:38:22 +0400
From: h h <aakuusta@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] net-p2p/mldonkey: clang build fails

>Number:         160498
>Category:       ports
>Synopsis:       [patch] net-p2p/mldonkey: clang build fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rene
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 06 04:40:02 UTC 2011
>Closed-Date:    Thu Sep 15 21:44:51 UTC 2011
>Last-Modified:  Thu Sep 15 21:44:51 UTC 2011
>Originator:     h h
>Release:        FreeBSD 9.0-BETA2 r225402M amd64
>Organization:
>Environment:
see ports/160492 for ocaml part
>Description:
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: net-p2p/mldonkey/Makefile
===================================================================
RCS file: /a/.csup/ports/net-p2p/mldonkey/Makefile,v
retrieving revision 1.85
diff -u -p -r1.85 Makefile
--- net-p2p/mldonkey/Makefile	24 Jul 2011 18:05:23 -0000	1.85
+++ net-p2p/mldonkey/Makefile	6 Sep 2011 04:31:38 -0000
@@ -143,6 +143,7 @@ post-patch:
 		${WRKDIR}/wrapper.sh
 	@${REINPLACE_CMD} -E \
 		-e 's|%%AUTOCONF%%|${AUTOCONF}|' \
+		-e 's/-O6//' \
 		${BUILD_WRKSRC}/config/Makefile.in
 # update server.met provider
 .for file in \
Index: net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.cc
===================================================================
RCS file: net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.cc
diff -N net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.cc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.cc	6 Sep 2011 04:21:40 -0000
@@ -0,0 +1,11 @@
+--- src/utils/lib/CryptoPP.cc~
++++ src/utils/lib/CryptoPP.cc
+@@ -5413,7 +5413,7 @@ template <class T> const T& AbstractEucl
+ 	Element g[3]={b, a};
+ 	unsigned int i0=0, i1=1, i2=2;
+ 
+-	while (!Equal(g[i1], this->Identity()))
++	while (!this->Equal(g[i1], this->Identity()))
+ 	{
+ 		g[i2] = Mod(g[i0], g[i1]);
+ 		unsigned int t = i0; i0 = i1; i1 = i2; i2 = t;
Index: net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.h
===================================================================
RCS file: net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.h
diff -N net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ net-p2p/mldonkey/files/patch-src__utils__lib__CryptoPP.h	6 Sep 2011 04:32:13 -0000
@@ -0,0 +1,28 @@
+--- src/utils/lib/CryptoPP.h~
++++ src/utils/lib/CryptoPP.h
+@@ -695,6 +695,7 @@ class CRYPTOPP_DLL NullNameValuePairs : 
+ {
+ public:
+ 	bool GetVoidValue(const char* /* name */, const std::type_info& /* valueType */, void* /* pValue */) const {return false;}
++	NullNameValuePairs() { }
+ };
+ 
+ //! _
+@@ -2632,7 +2633,7 @@ public:
+ 
+ 	pointer allocate(size_type n, const void * = NULL)
+ 	{
+-		CheckSize(n);
++		this->CheckSize(n);
+ 		if (n == 0)
+ 			return NULL;
+ 		return new T[n];
+@@ -5611,7 +5612,7 @@ template <class T, class B, class BASE> 
+ {
+ 	this->ThrowIfInvalidTruncatedSize(size);
+ 
+-	PadLastBlock(this->BlockSize() - 2*sizeof(HashWordType));
++	this->PadLastBlock(this->BlockSize() - 2*sizeof(HashWordType));
+ 	CorrectEndianess(this->m_data, this->m_data, this->BlockSize() - 2*sizeof(HashWordType));
+ 
+ 	this->m_data[this->m_data.size()-2] = B::ToEnum() ? this->GetBitCountHi() : this->GetBitCountLo();
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->rene 
Responsible-Changed-By: rene 
Responsible-Changed-When: Tue Sep 6 06:22:47 UTC 2011 
Responsible-Changed-Why:  
Grab 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160498 
State-Changed-From-To: open->closed 
State-Changed-By: rene 
State-Changed-When: Thu Sep 15 21:44:29 UTC 2011 
State-Changed-Why:  
Committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160498 
>Unformatted:
