You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qcloud-iot-sdk-embedded-c$ ./cmake_build.sh
Build all (SDK libs and samples)
-- The C compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/john/qcloud-iot-sdk-embedded-c/build
[ 1%] Building C object sdk_src/CMakeFiles/iot_sdk.dir/utils/json_parser.c.o
..........
[ 80%] Building C object external_libs/mbedtls/CMakeFiles/mbedtls.dir/library/ss l_tls.c.o
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1012:67: error: argument 2 of type ‘unsigned char[36]’ with mismatch ed bound [-Werror=array-parameter=]
1012 | ssl_calc_verify_tls( mbedtls_ssl_context *ssl, unsigned char hash[36] )
| ~~~~~~~~~~~~~~^~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:466:57: note: previously declared as ‘unsigned char *’
466 | static void ssl_calc_verify_tls( mbedtls_ssl_context *, unsigned char * );
| ^~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1040:74: error: argument 2 of type ‘unsigned char[32]’ with mismatch ed bound [-Werror=array-parameter=]
1040 | c_verify_tls_sha256( mbedtls_ssl_context *ssl, unsigned char hash[32] )
| ~~~~~~~~~~~~~~^~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:473:63: note: previously declared as ‘unsigned char *’
473 | atic void ssl_calc_verify_tls_sha256( mbedtls_ssl_context *,unsigned cha r * );
| ^~~~~~~~~~~~ ~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1061:74: error: argument 2 of type ‘unsigned char[48]’ with mismatch ed bound [-Werror=array-parameter=]
1061 | c_verify_tls_sha384( mbedtls_ssl_context *ssl, unsigned char hash[48] )
| ~~~~~~~~~~~~~~^~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:479:64: note: previously declared as ‘unsigned char *’
479 | tic void ssl_calc_verify_tls_sha384( mbedtls_ssl_context *, unsigned cha r * );
| ^~~~~~~~~~~~ ~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c: In function ‘ssl_calc_finished_tls_sha384’:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:4924:5: error: ‘mbedtls_sha512_finish’ accessing 64 bytes in a regio n of size 48 [-Werror=stringop-overflow=]
4924 | mbedtls_sha512_finish( &sha512, padbuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:4924:5: note: referencing argument 2 of type ‘unsigned char *’
In file included from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/include/mbedtls/ssl_internal.h:41,
from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/library/ssl_tls.c:48:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/includ e/mbedtls/sha512.h:102:6: note: in a call to function ‘mbedtls_sha512_finish’
102 | void mbedtls_sha512_finish( mbedtls_sha512_context *ctx, unsigned char o utput[64] );
| ^~~~~~~~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c: In function ‘ssl_calc_verify_tls_sha384’:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1070:5: error: ‘mbedtls_sha512_finish’ accessing 64 bytes in a regio n of size 48 [-Werror=stringop-overflow=]
1070 | mbedtls_sha512_finish( &sha512, hash );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1070:5: note: referencing argument 2 of type ‘unsigned char *’
In file included from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/include/mbedtls/ssl_internal.h:41,
from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/library/ssl_tls.c:48:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/includ e/mbedtls/sha512.h:102:6: note: in a call to function ‘mbedtls_sha512_finish’
102 | void mbedtls_sha512_finish( mbedtls_sha512_context *ctx, unsigned char o utput[64] );
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [external_libs/mbedtls/CMakeFiles/mbedtls.dir/build.make:188:exter nal_libs/mbedtls/CMakeFiles/mbedtls.dir/library/ssl_tls.c.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:289:external_libs/mbedtls/CMakeFiles/mbedtls .dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2
The text was updated successfully, but these errors were encountered:
qcloud-iot-sdk-embedded-c$ ./cmake_build.sh
Build all (SDK libs and samples)
-- The C compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/john/qcloud-iot-sdk-embedded-c/build
[ 1%] Building C object sdk_src/CMakeFiles/iot_sdk.dir/utils/json_parser.c.o
..........
[ 80%] Building C object external_libs/mbedtls/CMakeFiles/mbedtls.dir/library/ss l_tls.c.o
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1012:67: error: argument 2 of type ‘unsigned char[36]’ with mismatch ed bound [-Werror=array-parameter=]
1012 | ssl_calc_verify_tls( mbedtls_ssl_context *ssl, unsigned char hash[36] )
| ~~~~~~~~~~~~~~^~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:466:57: note: previously declared as ‘unsigned char *’
466 | static void ssl_calc_verify_tls( mbedtls_ssl_context *, unsigned char * );
| ^~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1040:74: error: argument 2 of type ‘unsigned char[32]’ with mismatch ed bound [-Werror=array-parameter=]
1040 | c_verify_tls_sha256( mbedtls_ssl_context *ssl, unsigned char hash[32] )
| ~~~~~~~~~~~~~~^~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:473:63: note: previously declared as ‘unsigned char *’
473 | atic void ssl_calc_verify_tls_sha256( mbedtls_ssl_context *,unsigned cha r * );
| ^~~~~~~~~~~~ ~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1061:74: error: argument 2 of type ‘unsigned char[48]’ with mismatch ed bound [-Werror=array-parameter=]
1061 | c_verify_tls_sha384( mbedtls_ssl_context *ssl, unsigned char hash[48] )
| ~~~~~~~~~~~~~~^~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:479:64: note: previously declared as ‘unsigned char *’
479 | tic void ssl_calc_verify_tls_sha384( mbedtls_ssl_context *, unsigned cha r * );
| ^~~~~~~~~~~~ ~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c: In function ‘ssl_calc_finished_tls_sha384’:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:4924:5: error: ‘mbedtls_sha512_finish’ accessing 64 bytes in a regio n of size 48 [-Werror=stringop-overflow=]
4924 | mbedtls_sha512_finish( &sha512, padbuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:4924:5: note: referencing argument 2 of type ‘unsigned char *’
In file included from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/include/mbedtls/ssl_internal.h:41,
from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/library/ssl_tls.c:48:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/includ e/mbedtls/sha512.h:102:6: note: in a call to function ‘mbedtls_sha512_finish’
102 | void mbedtls_sha512_finish( mbedtls_sha512_context *ctx, unsigned char o utput[64] );
| ^~~~~~~~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c: In function ‘ssl_calc_verify_tls_sha384’:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1070:5: error: ‘mbedtls_sha512_finish’ accessing 64 bytes in a regio n of size 48 [-Werror=stringop-overflow=]
1070 | mbedtls_sha512_finish( &sha512, hash );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/librar y/ssl_tls.c:1070:5: note: referencing argument 2 of type ‘unsigned char *’
In file included from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/include/mbedtls/ssl_internal.h:41,
from /home/john/qcloud-iot-sdk-embedded-c/extern al_libs/mbedtls/library/ssl_tls.c:48:
/home/john/qcloud-iot-sdk-embedded-c/external_libs/mbedtls/includ e/mbedtls/sha512.h:102:6: note: in a call to function ‘mbedtls_sha512_finish’
102 | void mbedtls_sha512_finish( mbedtls_sha512_context *ctx, unsigned char o utput[64] );
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [external_libs/mbedtls/CMakeFiles/mbedtls.dir/build.make:188:exter nal_libs/mbedtls/CMakeFiles/mbedtls.dir/library/ssl_tls.c.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:289:external_libs/mbedtls/CMakeFiles/mbedtls .dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2
The text was updated successfully, but these errors were encountered: