Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Sep 2011 08:38:22 +0400
From:      h h <aakuusta@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/160498: [patch] net-p2p/mldonkey: clang build fails
Message-ID:  <861uvucmkh.fsf@gmail.com>
Resent-Message-ID: <201109060440.p864e2ID040081@freefall.freebsd.org>

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

>Number:         160498
>Category:       ports
>Synopsis:       [patch] net-p2p/mldonkey: clang build fails
>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:   Tue Sep 06 04:40:02 UTC 2011
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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