-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 compilation failed on LIBSSH2_SFTP_STATVFS' undeclared #831
Comments
#ifdef LIBSSH2_SFTP_ST_RDONLY
#define HAVE_LIBSSH2_SFTP_STATVFS
#endif and then guard the statvfs sections with |
I think we should either make libcurl build with that old libssh2 version or we should check for it and tell the user that it is too old to work... |
I assume the version I use is the one that is installed. No way to get the version of the library? Is that an old version? It's the one in the repository. |
libssh2 1.2.9 is soon five years old and there have been a bunch of releases since then. 1.7.0 is the latest these days. |
No newer version in the most used repo's of EL5. Still one year before it's EOL.
|
I don't see why not. No matter which of those you use it should work though. Is it possible you have an older libssh2 installed somewhere? |
I did this
Trying to compile the new version of Curl (curl-7.49.0.tar.gz) to update my current verions:
curl -V
curl 7.47.1
I expected the following
Compilation of this is done automatically via custombuild from DirectAdmin, this is actually the first time that it fails.
curl/libcurl version
[curl -V output perhaps?]
Curl that I'm trying to compile is curl-7.49
LibSSH2 version 1.2.9-1.el5.rf
operating system
CloudLinux Server release 5.11
error:
CC libcurl_la-ssh.lo
ssh.c: In function 'ssh_statemach_act':
ssh.c:1624: error: 'LIBSSH2_SFTP_STATVFS' undeclared (first use in this function)
ssh.c:1624: error: (Each undeclared identifier is reported only once
ssh.c:1624: error: for each function it appears in.)
ssh.c:1624: error: expected ';' before 'statvfs'
ssh.c:1627: error: 'statvfs' undeclared (first use in this function)
make[2]: *** [libcurl_la-ssh.lo] Error 1
make[2]: Leaving directory
/usr/local/directadmin/custombuild/curl-7.49.0/lib' make[1]: *** [all] Error 2 make[1]: Leaving directory
/usr/local/directadmin/custombuild/curl-7.49.0/lib'make: *** [all-recursive] Error 1
The text was updated successfully, but these errors were encountered: