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

use of undeclared identifier 'mbedtls_threading_set_alt' #9897

Open
chenrui333 opened this issue Jan 12, 2025 · 0 comments
Open

use of undeclared identifier 'mbedtls_threading_set_alt' #9897

chenrui333 opened this issue Jan 12, 2025 · 0 comments
Assignees

Comments

@chenrui333
Copy link

Summary

👋 trying to build bctoolbox 5.3.84 against 3.6.2 , but seeing use of undeclared identifier 'mbedtls_threading_set_alt' error as

/tmp/ortp--bctoolbox-20250112-53104-y32i8g/bctoolbox-5.3.102/src/crypto/mbedtls.cc:109:3: error: use of undeclared identifier 'mbedtls_threading_set_alt'
  109 |                 mbedtls_threading_set_alt(threading_mutex_init_cpp, threading_mutex_free_cpp, threading_mutex_lock_cpp,
      |                 ^
/tmp/ortp--bctoolbox-20250112-53104-y32i8g/bctoolbox-5.3.102/src/crypto/mbedtls.cc:123:3: error: use of undeclared identifier 'mbedtls_threading_free_alt'; did you mean 'mbedtls_threading_mutex_t'?
  123 |                 mbedtls_threading_free_alt();
      |                 ^
/tmp/ortp--bctoolbox-20250112-53104-y32i8g/bctoolbox-5.3.102/src/crypto/mbedtls.cc:66:7: note: 'mbedtls_threading_mutex_t' declared here
   66 | using mbedtls_threading_mutex_t = void *;
      |       ^

Removing those alt-threading calls fixed my homebrew build issue, any commit or PR that I can reference on the homebrew side? Thanks!

System information

Mbed TLS version (number or commit id): 3.6.2
Operating system and version: macOS/Linux
Configuration (if not default, please attach mbedtls_config.h): default mbedtls_config.h
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): homebrew mbedtls build
Additional environment information:


the build is good now, but just need some pointer about the references for mbedtls_threading_set_alt and mbedtls_threading_free_alt, thanks!

@bensze01 bensze01 self-assigned this Jan 16, 2025
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

2 participants