Skip to content
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

Trying to build on Linux Mint 20.3 #174

Open
GORobert opened this issue Feb 7, 2024 · 0 comments
Open

Trying to build on Linux Mint 20.3 #174

GORobert opened this issue Feb 7, 2024 · 0 comments

Comments

@GORobert
Copy link

GORobert commented Feb 7, 2024

Did "cmake .." and when trying to run "make huestacean" it gets to 100% and throws eror:


[100%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls.c.o
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1432:67: warning: argument 2 of type ‘unsigned char[36]’ with mismatched bound [-Warray-parameter=]
 1432 | ssl_calc_verify_tls( mbedtls_ssl_context *ssl, unsigned char hash[36] )
      |                                                ~~~~~~~~~~~~~~^~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:687:57: note: previously declared as ‘unsigned char *’
  687 | static void ssl_calc_verify_tls( mbedtls_ssl_context *, unsigned char * );
      |                                                         ^~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1460:74: warning: argument 2 of type ‘unsigned char[32]’ with mismatched bound [-Warray-parameter=]
 1460 | c_verify_tls_sha256( mbedtls_ssl_context *ssl, unsigned char hash[32] )
      |                                                ~~~~~~~~~~~~~~^~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:694:63: note: previously declared as ‘unsigned char *’
  694 | atic void ssl_calc_verify_tls_sha256( mbedtls_ssl_context *,unsigned char * );
      |                                                             ^~~~~~~~~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1503:74: warning: argument 2 of type ‘unsigned char[48]’ with mismatched bound [-Warray-parameter=]
 1503 | c_verify_tls_sha384( mbedtls_ssl_context *ssl, unsigned char hash[48] )
      |                                                ~~~~~~~~~~~~~~^~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:700:64: note: previously declared as ‘unsigned char *’
  700 | tic void ssl_calc_verify_tls_sha384( mbedtls_ssl_context *, unsigned char * );
      |                                                             ^~~~~~~~~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c: In function ‘ssl_calc_verify_tls_sha384’:
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1534:5: warning: ‘mbedtls_sha512_finish_ret’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
 1534 |     mbedtls_sha512_finish_ret( &sha512, hash );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1534:5: note: referencing argument 2 of type ‘unsigned char[64]’
In file included from /home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/include/mbedtls/ssl_internal.h:53,
                 from /home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:48:
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/include/mbedtls/sha512.h:141:5: note: in a call to function ‘mbedtls_sha512_finish_ret’
  141 | int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c: In function ‘ssl_calc_finished_tls_sha384’:
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:6875:5: warning: ‘mbedtls_sha512_finish_ret’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
 6875 |     mbedtls_sha512_finish_ret( &sha512, padbuf );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:6875:5: note: referencing argument 2 of type ‘unsigned char[64]’
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/include/mbedtls/sha512.h:141:5: note: in a call to function ‘mbedtls_sha512_finish_ret’
  141 | int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking CXX static library libmbedtls.a
[100%] Built target mbedtls
Scanning dependencies of target huestacean_autogen
[100%] Automatic MOC for target huestacean
[100%] Built target huestacean_autogen
Scanning dependencies of target huestacean
[100%] Building CXX object CMakeFiles/huestacean.dir/huestacean_autogen/mocs_compilation.cpp.o
[100%] Linking CXX executable huestacean
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/huestacean.dir/build.make:94: huestacean] Błąd 1
make[2]: *** [CMakeFiles/Makefile2:784: CMakeFiles/huestacean.dir/all] Błąd 2
make[1]: *** [CMakeFiles/Makefile2:791: CMakeFiles/huestacean.dir/rule] Błąd 2
make: *** [Makefile:188: huestacean] Błąd 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant