Page 1 of 1

include <stdlib.h> missing in esp_bignum.c

Posted: Wed Nov 23, 2016 11:12 am
by jumjum123
Got this during compile for template
/home/esp32/esp-idf/components/mbedtls/port/esp_bignum.c: In function 'execute_op':
/home/esp32/esp-idf/components/mbedtls/port/esp_bignum.c:235:9: error: implicit declaration of function 'abort' [-Werror=implicit-function-declaration]
abort(); /* indicates a fundamental problem with driver */
Added "#include <stdlib.h> and now compiling runs fine

Re: include <stdlib.h> missing in esp_bignum.c

Posted: Wed Nov 23, 2016 9:22 pm
by ESP_Angus
Thanks for reporting this as well, this is the same underlying bug as http://esp32.com/viewtopic.php?f=13&t=550 (disabling abort on untested function causes stdlib to not be included in the FreeRTOSConfig.h) Fix incoming also.