Mantis - curl
Viewing Issue Advanced Details
4847 other feature N/A 2011-10-20 17:33 2011-10-25 20:32
jpassmore  
dam  
normal  
closed  
fixed  
none    
none  
0004847: Can SSH support be added to curl?
Please add SSH/SFTP support to curl.
SSH/SFTP support is missing:

#curl --version
curl 7.21.6 (sparc-sun-solaris2.9) libcurl/7.21.6 OpenSSL/0.9.8r zlib/1.2.5 libidn/1.22
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz
related to 0004848closed dam libcurl4 libcurl-feature.so.4 is linked against libfbopenssl.so instead of libfbopenssl.so.0 
Issue History
2011-10-20 17:33 jpassmore New Issue
2011-10-20 17:36 dam Status new => assigned
2011-10-20 17:36 dam Assigned To => dam
2011-10-20 17:44 dam Note Added: 0009349
2011-10-20 17:49 dam Relationship added related to 0004848
2011-10-20 17:50 dam Note Added: 0009350
2011-10-20 22:53 dam Note Added: 0009352
2011-10-20 22:53 dam Status assigned => feedback
2011-10-22 19:49 dam Note Added: 0009357
2011-10-25 16:04 jpassmore Note Added: 0009365
2011-10-25 20:32 dam Note Added: 0009366
2011-10-25 20:32 dam Status feedback => closed
2011-10-25 20:32 dam Resolution open => fixed

Notes
(0009349)
dam   
2011-10-20 17:44   
The problem is slightly subtle: SSH/SFTP is actually in
  libcurl4_feature CSWlibcurl4-feature 7.21.6,REV=2011.04.29 409.8 KB
which can be installed as aux-library which is used automatically instead of the minimal-feature one if installed. However, I just noticed there is a linkage problem where libcurl-feature.so.4 links to libfbopenssl.so instead of libfbopenssl.so.0 leading to an unresolvable linkage meaning the feature lib is not used:
  unstable9s# ldd -r /opt/csw/lib/libcurl-feature.so.4
        libfbopenssl.so => /opt/csw/lib/sparcv8/libfbopenssl.so

This can be circumvented by installing the dev package:
  libfbopenssl_dev CSWlibfbopenssl-dev 0.0.4,REV=2011.07.09 2.5 KB

After this the feature lib is correctly used:

unstable9s# curl --version
curl 7.21.6 (sparc-sun-solaris2.9) libcurl/7.21.6 OpenSSL/0.9.8r zlib/1.2.5 c-ares/1.7.4 libidn/1.22 libssh2/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile NTLM SPNEGO SSL libz

Please use this workaround for now until libcurl4-feature is fixed.
(0009350)
dam   
2011-10-20 17:50   
To be precise: to enable the supported features for you please do
   pkgutil -i libcurl4_feature libfbopenssl_dev
(0009352)
dam   
2011-10-20 22:53   
Updated packages for the latest 7.21.7 with additional RTMP support is available at
  http://buildfarm.opencsw.org/experimental.html#curl [^]
Please verify if this fixes your issue.


Best regards

  -- Dago
(0009357)
dam   
2011-10-22 19:49   
An updated curl 7.22.0,REV=2011.10.21 has been released into current/.
(0009365)
jpassmore   
2011-10-25 16:04   
Works perfectly now. Thanks for the fast response!
(0009366)
dam   
2011-10-25 20:32   
Closing as verified by reporter.