godot: Error compiling without builtin_mbedtls=no

Godot version: master (3647ebc8341ea22dce07d7eb5e47ece8d29c5565).

OS/device including version: FreeBSD 11.1-RELEASE-p4

Issue description: Can’t compile without builtin_mbedtls=no. The following error message is resulting:

thirdparty/mbedtls/library/aes.c:1293:20: error: use of undeclared identifier
      'MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE'
        if( ret == MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE && keybits == 192 )
                   ^
thirdparty/mbedtls/library/aes.c:1357:20: error: use of undeclared identifier
      'MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE'
        if( ret == MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE && keybits == 192 )
                   ^
thirdparty/mbedtls/library/aes.c:1422:20: error: use of undeclared identifier
      'MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE'
        if( ret == MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE && keybits == 192 )
                   ^
3 errors generated.
scons: *** [thirdparty/mbedtls/library/aes.x11.tools.64.llvm.o] Error 1
scons: building terminated because of errors.

Definitions are in thirdparty/mbedtls/include/mbedtls/aes.h, and thirdparty/mbedtls/library/aes.c has this code:

#if defined(MBEDTLS_AES_C)

#include <string.h>

#include "mbedtls/aes.h"

Perhaps somehow MBEDTLS_AES_C is not defined if using FreeBSD.

Steps to reproduce: $ scons platform=x11 use_llvm=yes builtin_mbedtls=yes

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

After 40 minutes compiling, 0 errors. All fixed. Thanks!

I’m going to remove the mbedtls pkg and do a clean recompile to see if at least it compiles that way. It could take about 25 minutes if all goes right.