From: Michael Hanke <mih@debian.org>
Subject: Explicitly cast away constness to prevent build failure

GCC 4.5 refuses to compile SOAP unless const-type mismatch is addressed.
This happens with Debian's (outdated) version of gsoap.
--- a/src/condor_daemon_core.V6/soap_core.cpp
+++ b/src/condor_daemon_core.V6/soap_core.cpp
@@ -51,7 +51,8 @@
 struct soap *
 dc_soap_accept(Sock *socket, const struct soap *soap)
 {
-	struct soap *cursoap = soap_copy(soap);
+	// soap_copy doesn't take const
+	struct soap *cursoap = soap_copy(const_cast<struct soap*>(soap));
 	ASSERT(cursoap);
 
 		// Mimic a gsoap soap_accept as follows:
