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

gtkhash-1.5: fails to build with current mbedtls 3.5.x #163

Open
tgurr opened this issue Nov 28, 2023 · 0 comments
Open

gtkhash-1.5: fails to build with current mbedtls 3.5.x #163

tgurr opened this issue Nov 28, 2023 · 0 comments
Labels

Comments

@tgurr
Copy link

tgurr commented Nov 28, 2023

FAILED: src/hash/libhash.a.p/hash-lib-mbedtls.c.o 
x86_64-pc-linux-gnu-cc -Isrc/hash/libhash.a.p -Isrc/hash -I../gtkhash-1.5/src/hash -I. -I../gtkhash-1.5 -I/usr/x86_64-pc-linux-gnu/include/glib-2.0 -I/usr/x86_64-pc-linux-gnu/lib/glib-2.0/include -I/usr/x86_64-pc-linux-gnu/lib/openssl-3/include -I/usr/x86_64-pc-linux-gnu/include/libmount -I/usr/x86_64-pc-linux-gnu/include/uuid -I/usr/x86_64-pc-linux-gnu/include/json-c -I/usr/x86_64-pc-linux-gnu/include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O0 -g -fno-common -fvisibility=hidden -pedantic -Waggregate-return -Wbad-function-cast -Wcast-align -Werror=implicit-function-declaration -Wfloat-equal -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wformat -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -DHAVE_CONFIG_H -march=native -O2 -pipe -march=native -O2 -fPIC -pthread -DIN_HASH_LIB -MD -MQ src/hash/libhash.a.p/hash-lib-mbedtls.c.o -MF src/hash/libhash.a.p/hash-lib-mbedtls.c.o.d -o src/hash/libhash.a.p/hash-lib-mbedtls.c.o -c ../gtkhash-1.5/src/hash/hash-lib-mbedtls.c
../gtkhash-1.5/src/hash/hash-lib-mbedtls.c: In function 'gtkhash_hash_lib_mbedtls_set_type':
../gtkhash-1.5/src/hash/hash-lib-mbedtls.c:46:33: error: 'MBEDTLS_MD_MD2' undeclared (first use in this function); did you mean 'MBEDTLS_MD_MD5'?
   46 |                         *type = MBEDTLS_MD_MD2;
      |                                 ^~~~~~~~~~~~~~
      |                                 MBEDTLS_MD_MD5
../gtkhash-1.5/src/hash/hash-lib-mbedtls.c:46:33: note: each undeclared identifier is reported only once for each function it appears in
../gtkhash-1.5/src/hash/hash-lib-mbedtls.c:49:33: error: 'MBEDTLS_MD_MD4' undeclared (first use in this function); did you mean 'MBEDTLS_MD_MD5'?
   49 |                         *type = MBEDTLS_MD_MD4;
      |                                 ^~~~~~~~~~~~~~
      |                                 MBEDTLS_MD_MD5
../gtkhash-1.5/src/hash/hash-lib-mbedtls.c: In function 'gtkhash_hash_lib_mbedtls_finish':
../gtkhash-1.5/src/hash/hash-lib-mbedtls.c:132:50: error: 'mbedtls_md_context_t' has no member named 'md_info'
  132 |         *size = mbedtls_md_get_size(LIB_DATA->ctx.md_info);
      |

Latest Mbed TLS releases doesn't support these anymore:

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

No branches or pull requests

2 participants