It fails to properly build when using NSS for the SSL support (see attached build log, there's a warning about it); when using GnuTLS instead it fails to link to libgcrypt (yes it works transitive, but it's better to link to it directly since it uses it directly!). Finally, you *have* to rebuild pycurl whenever you switch between openssl/gnutls/nss/nossl in curl itself...
Created attachment 240227 [details]
Since this bug is named "multiple problems" and not "multiple ssl problems", here is another one:
For me pycurl did not compile with net-misc/curl[-static-libs]. So this dependency needs to be fixed.
(In reply to comment #2)
It's unrelated and already fixed.
Created attachment 302299 [details]
added gcrypt linking dependency
net-libs/gnutls-2.12.16 when nettle use flag is used, is not linked against libgcrypt.so so pycrypt needs to do it in linkage time.
I modified pycurl-7.19.0-linking.patch to add -lgcrypt to compile commands of pycurl.
I got the problem when running virt-install:
goofy # virt-install
Traceback (most recent call last):
File "/usr/bin/virt-install-2.7", line 31, in <module>
import urlgrabber.progress as progress
File "/usr/lib/python2.7/site-packages/urlgrabber/__init__.py", line 54, in <module>
from grabber import urlgrab, urlopen, urlread
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 427, in <module>
ImportError: /usr/lib/python2.7/site-packages/pycurl.so: undefined symbol: gcry_control
I'm not sure if this should be changed in gnutls or here in pycurl.
But for now this patch solves the pycurl undefined symbol.
modified pycurl-7.19.0-linking.patch seems to fix the bug in a appropriate way.
If possible this patch should be pushed to portage ASAP, it is causing bug #407073 and #410885 and also the related forum thread
I can confirm this bug is still present and attachment 302299 [details] fixes it.
+ 18 Apr 2012; Jesus Rivero <email@example.com>
+ Modified patch to account for curl USE flag mixture: ssl nss gnutls. Closes
+ bug #329987
I've modified existing patch to account for some things. Added -lgrypt when curl is compiled with gnutls support, also, added an extra check for -lssl3 as dev-libs/nss provides libssl3 and not libssl, which was making pycurl not recognize the library used when curl was compiled with the nss USE flag.
I think this closes this bug. Just REOPEN if problem persists.
Problem is persisting for me.
I have adapted the patch to permit the compilation of printing stuff.
Then we really need the gcrypt library within pycurl.
Please Re open it.
Reopened patch was changed without revision bump :-/ see bug #415251.(In reply to
> Problem is persisting for me.
> I have adapted the patch to permit the compilation of printing stuff.
> Then we really need the gcrypt library within pycurl.
> Please Re open it.
And request for re open additionally.
curl-7.19.0-r1 should improve matters, can you please test and reopen if it does not?
*** Bug 408821 has been marked as a duplicate of this bug. ***