Read above in curlrules.h . This error is intentionally used forcibly as part of a test that checks the size of data types.
* NOTE 2 * ------ * * Some of the following compile time checks are based on the fact * that the dimension of a constant array can not be a negative one. * In this way if the compile time verification fails, the compilation * will fail issuing an error. The error description wording is compiler * dependent but it will be quite similar to one of the following: * * "negative subscript or subscript is too large" * "array must have at least one element" * "-1 is an illegal array size" * "size of array is negative" * * If you are building an application which tries to use an already * built libcurl library and you are getting this kind of errors on * this file, it is a clear indication that there is a mismatch between * how the library was built and how you are trying to use it for your * application. Your already compiled or binary library provider is the * only one who can give you the details you need to properly use it.
Your version of libcurl was built with different options than you use in the current version of git. (it can be 32 vs 64 bit)
Knowing which platform you are on, and for your build options, there may be enough others to help solve the problem. If this is a common case and you are on Linux or another supported platform, it would be easier to just install a pre-built binary using your own software. Git download
Tim b source share