Summary: | xmlrpc-c won't compile with curl-7.18.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dmitriy Turovec <D.Turovec> |
Component: | Current packages | Assignee: | Wulf Krueger (RETIRED) <philantrop> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andrey.melentyev, askwar, dagger, heiko.baums, james, leonidp.lists, morgoth6, natanael.copa, portage, seventhguardian, tetromino, znmeb |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
correction of the call of "curl_easy_setopt"
patch of the ebuild for use xmlrpc-c-1.06.09-curl-opt.patch |
Description
Dmitriy Turovec
2008-04-04 05:47:26 UTC
The correction to this problem is quite easy. The problematic line is: curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT); But the curl_easy_setopt() accepts three params and if I am not wrong it should looks like: curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT, 1); Works fine witch this small change. Created attachment 148879 [details, diff]
correction of the call of "curl_easy_setopt"
Here a patch to include the illusion's correction
Created attachment 148881 [details, diff]
patch of the ebuild for use xmlrpc-c-1.06.09-curl-opt.patch
it works and compiles on ~ppc
(In reply to comment #3) > Created an attachment (id=148881) [edit] > patch of the ebuild for use xmlrpc-c-1.06.09-curl-opt.patch > > it works and compiles on ~ppc > same for ~amd64 Yeah. The patch is fine. Tested on ~x86. Thanks guys. *** Bug 217945 has been marked as a duplicate of this bug. *** (In reply to comment #6) > *** Bug 217945 has been marked as a duplicate of this bug. *** > sorry for a duplicate bug, somehow I didn't see this one. The patches work fine for me as well. Any idea about when this might make it to the tree? *** Bug 218640 has been marked as a duplicate of this bug. *** (In reply to comment #1) > The correction to this problem is quite easy. The problematic line is: > > curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT); > > But the curl_easy_setopt() accepts three params and if I am not wrong it should > looks like: > > curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT, 1); > > Works fine witch this small change. > Are you sure it should not be: curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT, curlSetupP->sslEngineDefault); Thats more how the surrounding code looks like. Did you report upstream? Acording to curl documentation 1 is a correct value in this case (Look at the note): -------- CURLOPT_SSLENGINE_DEFAULT Sets the actual crypto engine as the default for (asymmetric) crypto operations. If the crypto device cannot be set, CURLE_SSL_ENGINE_SETFAILED is returned. Note that even though this option doesn't need any parameter, in some configurations curl_easy_setopt might be defined as a macro taking exactly three arguments. Therefore, it's recommended to pass 1 as parameter to this option. -------- And I am affraid I has not enough time to report it upstream yet ;( This problem shows up on x86 as well as AMD64. Noting applies to x86 as the bug is in the AMD64 group only. Is it possible we can put the existing patch up into the tree, even if its masked. Thanks I've committed the fix (I have to do a similar one to mediatomb too, 1 is the correct value). |