BIND10 1.1.0 build failure on CentOS 6

Mukund Sivaraman muks at isc.org
Wed Jan 15 16:32:04 UTC 2014


Hi Anand

On Tue, Jan 14, 2014 at 05:03:40PM +0100, Anand Buddhdev wrote:
> Hi BIND10 devs,
> 
> I've just tried to build BIND10 1.1.0 on our CentOS 6 build server, and
> it failed with some errors trying to compile code that uses Boost functions.
> 
> I've attached the build log to this message. If any of you could let me
> know whether this is my issue, or a bug in the code, I'd appreciate it.

Can you try this patch and tell us if it helps:

diff --git a/src/lib/util/encode/base_n.cc b/src/lib/util/encode/base_n.cc
index 8c813c3..11b1d97 100644
--- a/src/lib/util/encode/base_n.cc
+++ b/src/lib/util/encode/base_n.cc
@@ -284,7 +284,7 @@ struct BaseNTransformer {
     // For example, for base64 we need two encoded characters to represent a
     // byte, and each group consists of 4 encoded characters, so
     // MAX_PADDING_CHARS is 4 - 2 = 2.
-    static const int MAX_PADDING_CHARS =
+    static const size_t MAX_PADDING_CHARS =
         BITS_PER_GROUP / BitsPerChunk -
         (8 / BitsPerChunk + ((8 % BitsPerChunk) == 0 ? 0 : 1));
 }; 


		Mukund
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 2881 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-users/attachments/20140115/05f1bdbd/attachment.bin>


More information about the bind10-users mailing list