Blame SOURCES/0002-libhdfspp_ep.patch

20b247
--- libhdfspp_ep/lib/common/util.h.orig	2021-08-31 10:12:36.331548291 -0400
20b247
+++ libhdfspp_ep/lib/common/util.h	2021-08-31 10:13:17.271857838 -0400
20b247
@@ -49,7 +49,7 @@
20b247
 // Determine size of buffer that needs to be allocated in order to serialize msg
20b247
 // in delimited format
20b247
 static inline int DelimitedPBMessageSize(const ::google::protobuf::MessageLite *msg) {
20b247
-  size_t size = msg->ByteSize();
20b247
+  size_t size = msg->ByteSizeLong();
20b247
   return ::google::protobuf::io::CodedOutputStream::VarintSize32(size) + size;
20b247
 }
20b247
 
20b247
--- libhdfspp_ep/lib/rpc/rpc_connection_impl.cc.orig	2021-09-01 09:50:08.587701925 -0400
20b247
+++ libhdfspp_ep/lib/rpc/rpc_connection_impl.cc	2021-09-01 09:50:35.856233304 -0400
20b247
@@ -55,7 +55,7 @@
20b247
 
20b247
   std::for_each(
20b247
       headers.begin(), headers.end(), [&buf](const pb::MessageLite *v) {
20b247
-        buf = pbio::CodedOutputStream::WriteVarint32ToArray(v->ByteSize(), buf);
20b247
+        buf = pbio::CodedOutputStream::WriteVarint32ToArray(v->ByteSizeLong(), buf);
20b247
         buf = v->SerializeWithCachedSizesToArray(buf);
20b247
       });
20b247
 
20b247
--- libhdfspp_ep/lib/rpc/request.cc.orig	2021-09-01 09:51:25.397381922 -0400
20b247
+++ libhdfspp_ep/lib/rpc/request.cc	2021-09-01 09:51:56.745843185 -0400
20b247
@@ -62,7 +62,7 @@
20b247
 
20b247
   std::for_each(
20b247
       headers.begin(), headers.end(), [&buf](const pb::MessageLite *v) {
20b247
-        buf = pbio::CodedOutputStream::WriteVarint32ToArray(v->ByteSize(), buf);
20b247
+        buf = pbio::CodedOutputStream::WriteVarint32ToArray(v->ByteSizeLong(), buf);
20b247
         buf = v->SerializeWithCachedSizesToArray(buf);
20b247
       });
20b247
 
20b247
@@ -78,7 +78,7 @@
20b247
   pbio::CodedOutputStream os(&ss);
20b247
   uint8_t *buf = os.GetDirectBufferForNBytesAndAdvance(len);
20b247
   assert(buf);
20b247
-  buf = pbio::CodedOutputStream::WriteVarint32ToArray(header->ByteSize(), buf);
20b247
+  buf = pbio::CodedOutputStream::WriteVarint32ToArray(header->ByteSizeLong(), buf);
20b247
   buf = header->SerializeWithCachedSizesToArray(buf);
20b247
 }
20b247
 
20b247
--- libhdfspp_ep/lib/rpc/cyrus_sasl_engine.cc.orig	2017-08-30 10:56:51.000000000 -0400
20b247
+++ libhdfspp_ep/lib/rpc/cyrus_sasl_engine.cc	2021-09-01 13:55:08.886606370 -0400
20b247
@@ -121,10 +121,10 @@
20b247
   // Create an array of callbacks that embed a pointer to this
20b247
   //   so we can call methods of the engine
20b247
   per_connection_callbacks_ = {
20b247
-    { SASL_CB_USER,     (sasl_callback_ft) & get_name, this}, // userid for authZ
20b247
-    { SASL_CB_AUTHNAME, (sasl_callback_ft) & get_name, this}, // authid for authT
20b247
-    { SASL_CB_GETREALM, (sasl_callback_ft) & getrealm, this}, // krb/gssapi realm
20b247
-    //  { SASL_CB_PASS,        (sasl_callback_ft)&getsecret,  this
20b247
+    { SASL_CB_USER,     reinterpret_cast<sasl_callback_ft &>(get_name), this}, // userid for authZ
20b247
+    { SASL_CB_AUTHNAME, reinterpret_cast<sasl_callback_ft &>(get_name), this}, // authid for authT
20b247
+    { SASL_CB_GETREALM, reinterpret_cast<sasl_callback_ft &>(getrealm), this}, // krb/gssapi realm
20b247
+    //  { SASL_CB_PASS,     reinterpret_cast<sasl_callback_ft>(getsecret), this},
20b247
     { SASL_CB_LIST_END, (sasl_callback_ft) NULL, NULL}
20b247
   };
20b247
 }
20b247
@@ -420,9 +420,9 @@
20b247
 
20b247
 
20b247
 const sasl_callback_t per_process_callbacks[] = {
20b247
-    { SASL_CB_LOG, (sasl_callback_ft) & sasl_my_log, NULL},
20b247
-    { SASL_CB_GETOPT, (sasl_callback_ft) & sasl_getopt, NULL},
20b247
-    { SASL_CB_GETPATH, (sasl_callback_ft) & get_path, NULL}, // to find th mechanisms
20b247
+    { SASL_CB_LOG, reinterpret_cast<sasl_callback_ft &>(sasl_my_log), NULL},
20b247
+    { SASL_CB_GETOPT, reinterpret_cast<sasl_callback_ft &>(sasl_getopt), NULL},
20b247
+    { SASL_CB_GETPATH, reinterpret_cast<sasl_callback_ft &>(get_path), NULL}, // to find th mechanisms
20b247
     { SASL_CB_LIST_END, (sasl_callback_ft) NULL, NULL}
20b247
   }; // callbacks_ array
20b247