[cmake-developers] Unexpected bad status for file DOWNLOAD for http://*.xz URLs
Eric Noulard
eric.noulard at gmail.com
Fri Jul 12 17:41:53 EDT 2013
2013/7/12 Alan W. Irwin <irwin at beluga.phys.uvic.ca>:
>
> I just double-checked with ldd that Debian wheezy cmake links to
> libcurl-gnutls.so (linked to the gnutls library to provide the
> SSL capabilities) rather than libcurl.so (linked to the openssl
> library to provide the SSL capabilities). The result of my test
> with the Debian version of cmake is
>
> software at raven> /usr/bin/cmake -P test.cmake
> -- [download 0% complete]
> -- Download status = 35;"SSL connect error"
>
> However, note I also got this same result when I built a version of
> CMake linked to libcurl-gnutls.so so it is likely there is currently
> some incompatibility between CMake and libcurl-gnutls.so to cause this
> connect error issue.
I bet that this is curl SSL option.
Now on Debian Jessie (testing) and CMake 2.8.11.1 from Jessie repo
I get:
/usr/bin/cmake -P gg.cmake
-- [download 0% complete]
-- Download status = 51;"SSL peer certificate or SSH remote key was not OK"
which leads me to this:
http://stackoverflow.com/questions/14192837/ssl-peer-certificate-or-ssh-remote-key-was-not-ok
> The point is CMake makes it much too easy to fall into the trap of
> using the libcurl-gnutls.so library rather than libcurl.so. So to
> avoid such problems in the future I recommend that either CMake
> blacklist use of libcurl-gnutls.so or, better yet, solve the
> incompatibility issue with it.
What makes you think that "there is" an incompatibility?
May be the culprit IS "libcurl-gnutls.so" itself?
Which other program you know is using it etc...
On Debian the curl executable seems to be linked against libcurl.so
the openssl falvour of libcurl, so that when you test with curl you test
with openssl not gnutls.
I don't really know where the trouble is but may be it's not in the
CMake code at all.
--
Erk
L'élection n'est pas la démocratie -- http://www.le-message.org
More information about the cmake-developers
mailing list