While building curl, if libssh2 has been installed by brew, /usr/local/include/libssh2.h will be found and treated as the optional ssh2 support header but it is not correct.
I've overcome this error by adding this following lines into package/curl/build.sh
cmake_build -DCMAKE_USE_LIBSSH2=OFF ...
it may be not the best solution but works for me. just report it in case someone else may find it useful.
Platform: MacOS
While building curl, if libssh2 has been installed by brew, /usr/local/include/libssh2.h will be found and treated as the optional ssh2 support header but it is not correct.
I've overcome this error by adding this following lines into package/curl/build.sh cmake_build -DCMAKE_USE_LIBSSH2=OFF ...
it may be not the best solution but works for me. just report it in case someone else may find it useful.