[MacPorts] #15443: xmlrpc-c 1.06.11 build failure

MacPorts noreply at macports.org
Thu Jul 24 04:45:15 PDT 2008


#15443: xmlrpc-c 1.06.11 build failure
-------------------------------------+--------------------------------------
  Reporter:  fahrennheit451 at mac.com  |       Owner:  pguyot at kallisys.net
      Type:  defect                  |      Status:  new                
  Priority:  Normal                  |   Milestone:  Port Bugs          
 Component:  ports                   |     Version:  1.6.0              
Resolution:                          |    Keywords:  xmlrpc-c           
-------------------------------------+--------------------------------------
Comment (by brian at reichholf.at):

 Replying to [comment:1 jmr at macports.org]:
 > Assigning to maintainer.
 >
 > It looks like this is due to a change in the libcurl API. This means
 that (a) xmlrpc-c should have a dependency on curl, and (b) updating to
 the latest version should fix this problem.

 I'd like to argue that your statement is at least partly incorrect:[[BR]]
 I just installed macports and wanted to install xmlrpc-c. Curl was
 installed before xmlrpc-c due to another package depending on it, and
 still the same error as above is thrown when xmlrpc-c is being built.

 A quick search on google reveals, that Gentoo and Debian have similar
 problems when installing xmlrpc-c against curl-7.18.1 (7.18.2 is the
 version macports installed)[[BR]]
 http://bugs.gentoo.org/216139 provides a patch to solve this error (within
 xmlrpc-c NOT curl)[[BR]]
 Line 1217 in lib/curl_transport/xmlrpc_curl_transport.c reads:
 {{{
 curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT);
 }}}

 needing to be corrected to
 {{{
 curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT,1);
 }}}

 As suggested by the patch from gentoo I manually changed it after xmlrpc-c
 failed and this solved the problem instantly, and xmlrpc-c compiled
 fine.[[BR]]
 Maybe macports can supply a patch for all others?

 Here's the gentoo patch in raw text, seeing as I don't know how to commit
 it to the ports.
 Note that the line needs to be changed to 1217 (aswell as adapting the
 version), for xmlrpc-c 1.06.11!!
 {{{
 --- xmlrpc-c-1.06.09/lib/curl_transport/xmlrpc_curl_transport.c.orig
 2008-04-06 18:34:12.000000000 +0200
 +++ xmlrpc-c-1.06.09/lib/curl_transport/xmlrpc_curl_transport.c 2008-04-06
 18:34:35.000000000 +0200
 @@ -1214,7 +1214,7 @@
              curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE,
                               curlSetupP->sslEngine);
          if (curlSetupP->sslEngineDefault)
 -            curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT);
 +            curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT,1);
          if (curlSetupP->sslVersion != XMLRPC_SSLVERSION_DEFAULT)
              curl_easy_setopt(curlSessionP, CURLOPT_SSLVERSION,
                               curlSetupP->sslVersion);
 }}}

 regards,[[BR]]
 -Brian

-- 
Ticket URL: <http://trac.macports.org/ticket/15443#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list