I got this error (find attached the full log):
F:\curl-impersonate-win-main\boringssl>ninja.exe -C lib crypto ssl
ninja: Entering directory `lib'
[32/308] Building C object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.obj
In file included from F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/bcm.c:31:
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u32_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:868:3,
inlined from 'sha256_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha256.c:150:5,
inlined from 'SHA224_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha256.c:168:10:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
In file included from F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/bcm.c:104:
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha256.c: In function 'SHA224_Final':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha256.c:164:26: note: at offset 28 into destination object 'out' of size [0, 28]
164 | int SHA224_Final(uint8_t out[SHA224_DIGEST_LENGTH], SHA256_CTX *ctx) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA384_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:167:10,
inlined from 'SHA384' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:132:3:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
In file included from F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/bcm.c:105:
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA384':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:128:25: note: at offset 48 into destination object 'out' of size [0, 48]
128 | uint8_t out[SHA384_DIGEST_LENGTH]) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA384_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:167:10,
inlined from 'SHA384' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:132:3:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA384':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:128:25: note: at offset 56 into destination object 'out' of size [0, 48]
128 | uint8_t out[SHA384_DIGEST_LENGTH]) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA512_256_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:182:10,
inlined from 'SHA512_256' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:152:3:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA512_256':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:148:29: note: at offset 32 into destination object 'out' of size [0, 32]
148 | uint8_t out[SHA512_256_DIGEST_LENGTH]) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA512_256_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:182:10,
inlined from 'SHA512_256' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:152:3:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA512_256':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:148:29: note: at offset 40 into destination object 'out' of size [0, 32]
148 | uint8_t out[SHA512_256_DIGEST_LENGTH]) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA512_256_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:182:10,
inlined from 'SHA512_256' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:152:3:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA512_256':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:148:29: note: at offset 48 into destination object 'out' of size [0, 32]
148 | uint8_t out[SHA512_256_DIGEST_LENGTH]) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA512_256_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:182:10,
inlined from 'SHA512_256' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:152:3:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA512_256':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:148:29: note: at offset 56 into destination object 'out' of size [0, 32]
148 | uint8_t out[SHA512_256_DIGEST_LENGTH]) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA384_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:167:10:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA384_Final':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:163:26: note: at offset 48 into destination object 'out' of size [0, 48]
163 | int SHA384_Final(uint8_t out[SHA384_DIGEST_LENGTH], SHA512_CTX *sha) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In function 'OPENSSL_memcpy',
inlined from 'CRYPTO_store_u64_be' at F:/curl-impersonate-win-main/boringssl/crypto/internal.h:879:3,
inlined from 'sha512_final_impl' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:273:5,
inlined from 'SHA384_Final' at F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:167:10:
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c: In function 'SHA384_Final':
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:163:26: note: at offset 56 into destination object 'out' of size [0, 48]
163 | int SHA384_Final(uint8_t out[SHA384_DIGEST_LENGTH], SHA512_CTX *sha) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/internal.h: In function 'SHA512_256_Final':
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:178:30: note: at offset 32 into destination object 'out' of size [0, 32]
178 | int SHA512_256_Final(uint8_t out[SHA512_256_DIGEST_LENGTH], SHA512_CTX *sha) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:178:30: note: at offset 40 into destination object 'out' of size [0, 32]
178 | int SHA512_256_Final(uint8_t out[SHA512_256_DIGEST_LENGTH], SHA512_CTX *sha) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:178:30: note: at offset 48 into destination object 'out' of size [0, 32]
178 | int SHA512_256_Final(uint8_t out[SHA512_256_DIGEST_LENGTH], SHA512_CTX *sha) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/internal.h:824:10: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
824 | return memcpy(dst, src, n);
| ^~~~~~~~~~~~~~~~~~~
F:/curl-impersonate-win-main/boringssl/crypto/fipsmodule/sha/sha512.c:178:30: note: at offset 56 into destination object 'out' of size [0, 32]
178 | int SHA512_256_Final(uint8_t out[SHA512_256_DIGEST_LENGTH], SHA512_CTX *sha) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[308/308] Linking CXX static library ssl\libssl.a
...
_LIBZ -DHAVE_ZLIB_H -DHAVE_ZSTD -DHAVE_BROTLI -DUSE_LIBIDN2 -DENABLE_IPV6 -c vauth/krb5_sspi.c -o vauth/krb5_sspi.o
http.c: In function 'Curl_http_merge_headers':
http.c:2093:7: warning: unused variable 'i' [-Wunused-variable]
2093 | int i;
| ^
...
_LIBZ -DHAVE_ZLIB_H -DHAVE_ZSTD -DHAVE_BROTLI -DUSE_LIBIDN2 -DENABLE_IPV6 -c vssh/wolfssh.c -o vssh/wolfssh.o
windres --include-dir=../include -DDEBUGBUILD=0 -O coff -F pe-x86-64 -i libcurl.rc -o libcurl.res
vtls/openssl.c: In function 'parse_sig_algs':
vtls/openssl.c:354:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
354 | for (i = 0; i < MAX_SIG_ALGS; i++) {
| ^
vtls/openssl.c: In function 'DecompressZlibCert':
vtls/openssl.c:2741:29: warning: unused parameter 'ssl' [-Wunused-parameter]
2741 | int DecompressZlibCert(SSL ssl,
| ~~~~~^~~
vtls/openssl.c: In function 'DecompressBrotliCert':
vtls/openssl.c:2786:31: warning: unused parameter 'ssl' [-Wunused-parameter]
2786 | int DecompressBrotliCert(SSL ssl,
| ~~~~~^~~
vtls/openssl.c: In function 'add_cert_compression':
vtls/openssl.c:2847:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
2847 | for(i = 0; i < NUM_CERT_COMPRESSION_ALGS; i++) {
| ^
In file included from vtls/openssl.c:57:
vtls/openssl.c: In function 'ossl_connect_step1':
vtls/vtls.h:154:17: warning: pointer targets in passing argument 2 of 'SSL_add_application_settings' differ in signedness [-Wpointer-sign]
154 | #define ALPN_H2 "h2"
| ^~~~
| |
| char *
vtls/openssl.c:3560:51: note: in expansion of macro 'ALPN_H2'
3560 | SSL_add_application_settings(backend->handle, ALPN_H2, ALPN_H2_LENGTH,
| ^~~~~~~
In file included from vtls/openssl.c:65:
F:\curl-impersonate-win-main\boringssl/include/openssl/ssl.h:2880:74: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
2880 | OPENSSL_EXPORT int SSL_add_application_settings(SSL *ssl, const uint8_t *proto,
| ~~~~~~~~~~~~~~~^~~~~
gcc -m64 -s -static -shared -o libcurl.dll
...
no bianries:
MINGW64 /f/curl-impersonate-win-main
ls -la curl/bin
total 10132
drwxr-xr-x 1 Dave Nincs 0 Jun 22 15:06 .
drwxr-xr-x 1 Dave Nincs 0 Jun 22 15:06 ..
-rwxr-xr-x 1 Dave Nincs 4723712 Jun 22 15:06 curl.exe
-rw-r--r-- 1 Dave Nincs 1001802 Jun 22 15:06 libcurl.a
-rwxr-xr-x 1 Dave Nincs 4573696 Jun 22 15:06 libcurl.dll
-rw-r--r-- 1 Dave Nincs 58418 Jun 22 15:06 libcurldll.a
FULL_LOG.txt