New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl compile faild with ssh2 #1146
Comments
So what fails? Show us the error. Also, note that we fixed a libssh2 build issue even in 7.51.0 for when having multiple libssh2 libs installed when configure runs. |
Thank you very much! |
Clearly the configure script first finds libssh2 successfully since it can detect it fine, and it actually links with it to make sure that it works in the configure script. But then for some reason the linker can't find it or use it when you run the makefile later. But I can't tell exactly why this happens. |
Did you perchance build/install only a static libssh2 library? When linking curl, it isn't supposed to specify libssh2 because curl doesn't use libssh2, only libcurl does. |
Stale |
When i compile with ssh2, i configured it --with-zlib=$(STAGING_DIR)/usr/ --with-ssl=$(STAGING_DIR)/usr/ --with-libssh2=$(PKG_INSTALL_DIR)/usr --enable-shared --enable-static ac_cv_func_SSLv2_client_method=no.The libcurl.so have compiled, but curl compile failed.
curl version: 7.49.1
Host setup: arm-none-linux-gnueabi
Install prefix: /usr
Compiler: arm-none-linux-gnueabi-gcc
SSL support: enabled (OpenSSL)
SSH support: enabled (libSSH2)
zlib support: enabled
GSS-API support: no (--with-gssapi)
TLS-SRP support: enabled
resolver: default (--enable-ares / --enable-threaded-resolver)
IPv6 support: enabled
Unix sockets support: enabled
IDN support: no (--with-{libidn,winidn})
Build libcurl: Shared=yes, Static=yes
Built-in manual: enabled
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
SSPI support: no (--enable-sspi)
ca cert bundle: no
ca cert path: no
ca fallback: no
LDAP support: no (--enable-ldap / --with-ldap-lib / --with-lber-lib)
LDAPS support: no (--enable-ldaps)
RTSP support: enabled
RTMP support: no (--with-librtmp)
metalink support: no (--with-libmetalink)
PSL support: no (libpsl not found)
HTTP2 support: disabled (--with-nghttp2)
Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 POP3S RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP
I found the Makefile in the src, "LIBCURL_LIBS = -lssh2 -lssh2 -lssl -lcrypto -lssl -lcrypto -lz -lrt" and "curl_LDADD = $(top_builddir)/lib/libcurl.la -lssl -lcrypto -lz -lrt".The curl_LDADD should be error, but why?The configure file has some bugs?
What should i do to build it ?
Thanks!
The text was updated successfully, but these errors were encountered: