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

Compilation errors with Windows/MSVC from VS 2019 after mbedTLS update #90526

Closed
KoBeWi opened this issue Apr 11, 2024 · 8 comments · Fixed by #90535
Closed

Compilation errors with Windows/MSVC from VS 2019 after mbedTLS update #90526

KoBeWi opened this issue Apr 11, 2024 · 8 comments · Fixed by #90535

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Apr 11, 2024

Tested versions

Regression from 40fa684 / #90482

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

When trying to compile on Windows, the compilation fails on crypto stuff:

[ 59%] Compiling modules\mbedtls\crypto_mbedtls.cpp ...
dtls_server_mbedtls.cpp
crypto_mbedtls.cpp
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): error C2526: "psa_key_attributes_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_attributes_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_types.h(432): note: zobacz deklarację „psa_key_attributes_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): error C2526: "psa_hash_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_hash_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(929): note: zobacz deklarację „psa_hash_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): error C2526: "psa_mac_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_mac_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1288): note: zobacz deklarację „psa_mac_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): error C2526: "psa_cipher_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_cipher_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1701): note: zobacz deklarację „psa_cipher_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): error C2526: "psa_aead_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_aead_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2219): note: zobacz deklarację „psa_aead_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): error C2526: "psa_key_derivation_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_derivation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3206): note: zobacz deklarację „psa_key_derivation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): error C2526: "psa_key_attributes_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_attributes_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_types.h(432): note: zobacz deklarację „psa_key_attributes_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): error C2526: "psa_key_attributes_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_attributes_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): error C2526: "psa_hash_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_hash_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa\crypto_types.h(432): note: zobacz deklarację „psa_key_attributes_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(929): note: zobacz deklarację „psa_hash_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(90): error C2556: "psa_hash_operation_s psa_hash_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_hash_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): error C2526: "psa_mac_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_mac_operation_s" w C++

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(89): error C2371: "psa_hash_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1288): note: zobacz deklarację „psa_mac_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): error C2526: "psa_hash_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_hash_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): error C2526: "psa_key_attributes_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_attributes_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(929): note: zobacz deklarację „psa_hash_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): error C2526: "psa_cipher_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_cipher_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa\crypto_types.h(432): note: zobacz deklarację „psa_key_attributes_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(122): error C2556: "psa_cipher_operation_s psa_cipher_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_cipher_operation_init(void)"


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): error C2526: "psa_mac_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_mac_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1701): note: zobacz deklarację „psa_cipher_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1288): note: zobacz deklarację „psa_mac_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(121): error C2371: "psa_cipher_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): error C2526: "psa_hash_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_hash_operation_s" w C++


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(929): note: zobacz deklarację „psa_hash_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): error C2526: "psa_cipher_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_cipher_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): error C2526: "psa_aead_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_aead_operation_s" w C++

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1701): note: zobacz deklarację „psa_cipher_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2219): note: zobacz deklarację „psa_aead_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): error C2526: "psa_mac_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_mac_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1288): note: zobacz deklarację „psa_mac_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): error C2526: "psa_aead_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_aead_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): error C2526: "psa_key_derivation_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_derivation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): error C2526: "psa_cipher_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_cipher_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2219): note: zobacz deklarację „psa_aead_operation_s”


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3206): note: zobacz deklarację „psa_key_derivation_s”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1701): note: zobacz deklarację „psa_cipher_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): error C2526: "psa_key_derivation_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_derivation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(154): error C2556: "psa_mac_operation_s psa_mac_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_mac_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): error C2526: "psa_key_attributes_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_attributes_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_types.h(432): note: zobacz deklarację „psa_key_attributes_s”


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3206): note: zobacz deklarację „psa_key_derivation_s”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): error C2526: "psa_aead_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_aead_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): error C2526: "psa_hash_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_hash_operation_s" w C++


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(929): note: zobacz deklarację „psa_hash_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(153): error C2371: "psa_mac_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2219): note: zobacz deklarację „psa_aead_operation_s”


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): error C2526: "psa_mac_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_mac_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): error C2526: "psa_key_attributes_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_attributes_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(193): error C2556: "psa_aead_operation_s psa_aead_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_aead_operation_init(void)"

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): error C2526: "psa_key_derivation_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_derivation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_types.h(432): note: zobacz deklarację „psa_key_attributes_s”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1288): note: zobacz deklarację „psa_mac_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3206): note: zobacz deklarację „psa_key_derivation_s”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(192): error C2371: "psa_aead_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): error C2526: "psa_cipher_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_cipher_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1701): note: zobacz deklarację „psa_cipher_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): error C2526: "psa_hash_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_hash_operation_s" w C++

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(221): error C2556: "psa_key_derivation_s psa_key_derivation_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_derivation_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(929): note: zobacz deklarację „psa_hash_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(90): error C2556: "psa_hash_operation_s psa_hash_operation_init(void)": przeciążona funkcja 
różni się tylko typem zwracanym od "void psa_hash_operation_init(void)"


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): error C2526: "psa_aead_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_aead_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): error C2526: "psa_mac_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_mac_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2219): note: zobacz deklarację „psa_aead_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(219): error C2371: "psa_key_derivation_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(89): error C2371: "psa_hash_operation_init": zmiana definicji; różne typy podstawowe

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1288): note: zobacz deklarację „psa_mac_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): error C2526: "psa_cipher_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_cipher_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(122): error C2556: "psa_cipher_operation_s psa_cipher_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_cipher_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): error C2526: "psa_key_derivation_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_derivation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(306): error C2556: "psa_key_attributes_s psa_key_attributes_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_attributes_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1701): note: zobacz deklarację „psa_cipher_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(90): error C2556: "psa_hash_operation_s psa_hash_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_hash_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3206): note: zobacz deklarację „psa_key_derivation_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(121): error C2371: "psa_cipher_operation_init": zmiana definicji; różne typy podstawowe


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): error C2526: "psa_aead_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_aead_operation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(89): error C2371: "psa_hash_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(305): error C2371: "psa_key_attributes_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”



C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2219): note: zobacz deklarację „psa_aead_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(90): error C2556: "psa_hash_operation_s psa_hash_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_hash_operation_init(void)"



C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(122): error C2556: "psa_cipher_operation_s psa_cipher_operation_init(void)": przeciążona funkcja różni się 
tylko typem zwracanym od "void psa_cipher_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(89): error C2371: "psa_hash_operation_init": zmiana definicji; różne typy podstawowe

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): error C2526: "psa_key_derivation_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_key_derivation_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3206): note: zobacz deklarację „psa_key_derivation_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(121): error C2371: "psa_cipher_operation_init": zmiana definicji; różne typy podstawowe

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(122): error C2556: "psa_cipher_operation_s psa_cipher_operation_init(void)": przeciążona funkcja różni się 
tylko typem zwracanym od "void psa_cipher_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): error C2526: "psa_pake_cipher_suite_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_cipher_suite_s" w C++

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(121): error C2371: "psa_cipher_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(914): note: zobacz deklarację „psa_pake_cipher_suite_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(154): error C2556: "psa_mac_operation_s psa_mac_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_mac_operation_init(void)"  
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): error C2526: "psa_pake_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_operation_s" w C++

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1041): note: zobacz deklarację „psa_pake_operation_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(90): error C2556: "psa_hash_operation_s psa_hash_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_hash_operation_init(void)"


C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(153): error C2371: "psa_mac_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(89): error C2371: "psa_hash_operation_init": zmiana definicji; różne typy podstawowe

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(193): error C2556: "psa_aead_operation_s psa_aead_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_aead_operation_init(void)"  

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1868): error C2556: "psa_pake_cipher_suite_s psa_pake_cipher_suite_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_cipher_suite_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(122): error C2556: "psa_cipher_operation_s psa_cipher_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_cipher_operation_init(void)"

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(154): error C2556: "psa_mac_operation_s psa_mac_operation_init(void)": przeciążona funkcja różni się tylko 
typem zwracanym od "void psa_mac_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(192): error C2371: "psa_aead_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1867): error C2371: "psa_pake_cipher_suite_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(154): error C2556: "psa_mac_operation_s psa_mac_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od 
"void psa_mac_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(121): error C2371: "psa_cipher_operation_init": zmiana definicji; różne typy podstawowe


C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(90): error C2556: "psa_hash_operation_s psa_hash_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_hash_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(153): error C2371: "psa_mac_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(221): error C2556: "psa_key_derivation_s psa_key_derivation_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_derivation_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1874): error C2556: "psa_pake_operation_s psa_pake_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(153): error C2371: "psa_mac_operation_init": zmiana definicji; różne typy podstawowe




C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(89): error C2371: "psa_hash_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(193): error C2556: "psa_aead_operation_s psa_aead_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_aead_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”




C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(939): note: zobacz deklarację „psa_hash_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(219): error C2371: "psa_key_derivation_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1873): error C2371: "psa_pake_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(193): error C2556: "psa_aead_operation_s psa_aead_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_aead_operation_init(void)"



C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(122): error C2556: "psa_cipher_operation_s psa_cipher_operation_init(void)": przeciążona funkcja różni się 
tylko typem zwracanym od "void psa_cipher_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(192): error C2371: "psa_aead_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”




C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(192): error C2371: "psa_aead_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(306): error C2556: "psa_key_attributes_s psa_key_attributes_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_attributes_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(154): error C2556: "psa_mac_operation_s psa_mac_operation_init(void)": przeciążona funkcja różni się tylko 
typem zwracanym od "void psa_mac_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(121): error C2371: "psa_cipher_operation_init": zmiana definicji; różne typy podstawowe

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1711): note: zobacz deklarację „psa_cipher_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(221): error C2556: "psa_key_derivation_s psa_key_derivation_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_derivation_operation_init(void)"


C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(305): error C2371: "psa_key_attributes_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(153): error C2371: "psa_mac_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(221): error C2556: "psa_key_derivation_s psa_key_derivation_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_derivation_operation_init(void)"



C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(219): error C2371: "psa_key_derivation_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”        



C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(193): error C2556: "psa_aead_operation_s psa_aead_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_aead_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(219): error C2371: "psa_key_derivation_operation_init": zmiana definicji; różne typy podstawowe   


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(192): error C2371: "psa_aead_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(306): error C2556: "psa_key_attributes_s psa_key_attributes_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_attributes_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init” 

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(306): error C2556: "psa_key_attributes_s psa_key_attributes_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_attributes_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”  

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): error C2526: "psa_pake_cipher_suite_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_cipher_suite_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(305): error C2371: "psa_key_attributes_init": zmiana definicji; różne typy podstawowe

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(221): error C2556: "psa_key_derivation_s psa_key_derivation_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_derivation_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(305): error C2371: "psa_key_attributes_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(914): note: zobacz deklarację „psa_pake_cipher_suite_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(219): error C2371: "psa_key_derivation_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): error C2526: "psa_pake_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_operation_s" w 
C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(154): error C2556: "psa_mac_operation_s psa_mac_operation_init(void)": przeciążona funkcja różni się tylko 
typem zwracanym od "void psa_mac_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1041): note: zobacz deklarację „psa_pake_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(153): error C2371: "psa_mac_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(306): error C2556: "psa_key_attributes_s psa_key_attributes_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_attributes_init(void)"

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(1298): note: zobacz deklarację „psa_mac_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(305): error C2371: "psa_key_attributes_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(193): error C2556: "psa_aead_operation_s psa_aead_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_aead_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): error C2526: "psa_pake_cipher_suite_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_cipher_suite_s" w C++C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1868): error C2556: "psa_pake_cipher_suite_s psa_pake_cipher_suite_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_cipher_suite_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): error C2526: "psa_pake_cipher_suite_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_cipher_suite_s" w C++


C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(914): note: zobacz deklarację „psa_pake_cipher_suite_s”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(914): note: zobacz deklarację „psa_pake_cipher_suite_s”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(192): error C2371: "psa_aead_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1867): error C2371: "psa_pake_cipher_suite_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): error C2526: "psa_pake_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(2229): note: zobacz deklarację „psa_aead_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): error C2526: "psa_pake_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1041): note: zobacz deklarację „psa_pake_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1041): note: zobacz deklarację „psa_pake_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1874): error C2556: "psa_pake_operation_s psa_pake_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): error C2526: "psa_pake_cipher_suite_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_cipher_suite_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(221): error C2556: "psa_key_derivation_s psa_key_derivation_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_derivation_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(914): note: zobacz deklarację „psa_pake_cipher_suite_s”
C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1868): error C2556: "psa_pake_cipher_suite_s psa_pake_cipher_suite_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_cipher_suite_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1868): error C2556: "psa_pake_cipher_suite_s psa_pake_cipher_suite_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_cipher_suite_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1873): error C2371: "psa_pake_operation_init": zmiana definicji; różne typy podstawowe

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): error C2526: "psa_pake_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_operation_s" w C++

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(219): error C2371: "psa_key_derivation_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1041): note: zobacz deklarację „psa_pake_operation_s”

C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(3216): note: zobacz deklarację „psa_key_derivation_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1867): error C2371: "psa_pake_cipher_suite_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1867): error C2371: "psa_pake_cipher_suite_init": zmiana definicji; różne typy podstawowe


C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(306): error C2556: "psa_key_attributes_s psa_key_attributes_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_key_attributes_init(void)"

C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1874): error C2556: "psa_pake_operation_s psa_pake_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_operation_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1874): error C2556: "psa_pake_operation_s psa_pake_operation_init(void)": przeciążona funkcja różni się tylko 
typem zwracanym od "void psa_pake_operation_init(void)"


C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1868): error C2556: "psa_pake_cipher_suite_s psa_pake_cipher_suite_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_cipher_suite_init(void)"C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_struct.h(305): error C2371: "psa_key_attributes_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”



C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1873): error C2371: "psa_pake_operation_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa/crypto.h(110): note: zobacz deklarację „psa_key_attributes_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1873): error C2371: "psa_pake_operation_init": zmiana definicji; różne typy podstawowe



C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1867): error C2371: "psa_pake_cipher_suite_init": zmiana definicji; różne typy podstawoweC:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”


C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1874): error C2556: "psa_pake_operation_s psa_pake_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1873): error C2371: "psa_pake_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): error C2526: "psa_pake_cipher_suite_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_cipher_suite_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(914): note: zobacz deklarację „psa_pake_cipher_suite_s”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): error C2526: "psa_pake_operation_init": powiązanie z funkcją w C nie może zwrócić klasy "psa_pake_operation_s" w C++
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1041): note: zobacz deklarację „psa_pake_operation_s”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1868): error C2556: "psa_pake_cipher_suite_s psa_pake_cipher_suite_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_cipher_suite_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1867): error C2371: "psa_pake_cipher_suite_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(918): note: zobacz deklarację „psa_pake_cipher_suite_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1874): error C2556: "psa_pake_operation_s psa_pake_operation_init(void)": przeciążona funkcja różni się tylko typem zwracanym od "void psa_pake_operation_init(void)"
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1873): error C2371: "psa_pake_operation_init": zmiana definicji; różne typy podstawowe
C:\godot_source\thirdparty\mbedtls\include\psa\crypto_extra.h(1051): note: zobacz deklarację „psa_pake_operation_init”
scons: *** [modules\mbedtls\tls_context_mbedtls.windows.editor.dev.x86_64.obj] Error 2
scons: *** [modules\mbedtls\register_types.windows.editor.dev.x86_64.obj] Error 2
scons: *** [modules\mbedtls\stream_peer_mbedtls.windows.editor.dev.x86_64.obj] Error 2
scons: *** [modules\mbedtls\packet_peer_mbed_dtls.windows.editor.dev.x86_64.obj] Error 2
scons: *** [modules\mbedtls\dtls_server_mbedtls.windows.editor.dev.x86_64.obj] Error 2
scons: *** [modules\mbedtls\crypto_mbedtls.windows.editor.dev.x86_64.obj] Error 2
scons: building terminated because of errors.

Steps to reproduce

  1. Compile Godot using MSVC

Minimal reproduction project (MRP)

N/A

@Faless
Copy link
Collaborator

Faless commented Apr 11, 2024

That's really weird, the MSVC CI seems to pass, what version of visual studio / MSVC are you using? Can you try doing a clean build (i.e. after a scons -c)?

@AThousandShips
Copy link
Member

AThousandShips commented Apr 11, 2024

Works fine for me on MSVC cl 19.34

@KoBeWi
Copy link
Member Author

KoBeWi commented Apr 11, 2024

19.29.30146

EDIT:

Can you try doing a clean build (i.e. after a scons -c)?

Same.

@bruvzg
Copy link
Member

bruvzg commented Apr 11, 2024

I'm not getting any of this on MSVC VC 2022 (17.9.6, cl 19.39.33523), on Windows 11. Maybe it's picking up some old object files. Or it's an issue with the specific MSVC version.

@akien-mga
Copy link
Member

KoBeWi seems to be on VS 2019, so that's likely specific to VS 2019 and earlier. The upstream bug report mentions VS 2017 too. Mbed-TLS/mbedtls#7087

@akien-mga akien-mga changed the title Compilation errors with Windows/MSVC after mbedTLS update Compilation errors with Windows/MSVC from VS 2019 after mbedTLS update Apr 11, 2024
@bruvzg
Copy link
Member

bruvzg commented Apr 11, 2024

Tried building it with MSVC 2015, but it's not C++17 capable, so can't build Godot at all. I do not have 2019 installation to test.

@Faless
Copy link
Collaborator

Faless commented Apr 11, 2024

I can confirm this with VS 2019 latest (16.11.27).

@Faless
Copy link
Collaborator

Faless commented Apr 11, 2024

So, I think I found the cause, and as far as I understand it's a compiler bug (and indeed both the VS2019 C compiler and the VS2022 C++ resolves this correctly).

The code problematic for VS2019 C++ compiler is in the form:

// psa/crypto_extra.h

typedef struct psa_pake_operation_s psa_pake_operation_t; // Typedef a struct that is not yet declared in the file.

static psa_pake_operation_t psa_pake_operation_init(void); // Use the typef in a function declaration

struct psa_pake_operation_s {
    // Define the struct
}

static inline struct psa_pake_operation_s psa_pake_operation_init(void) {
  // Define the function that use the struct previously declared.
}

Which for some reason causes the first function declaration to be resolved as static void psa_pake_operation_init(void);, thus causing the re-declaration error.

I've opened #90535 which disables the function declarations in that form when C++ and MSVC are detected.

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

Successfully merging a pull request may close this issue.

5 participants