[Target: Linux] call to undeclared function 'getentropy' (IDFGH-13480) #14379
Labels
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.3
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
build successfull
What is the actual behavior?
/Users/ivan.kishchenko/esp/esp-idf-v5.3/components/esp_hw_support/port/linux/esp_random.c:20:18: error: call to undeclared function 'getentropy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
int result = getentropy(&random_number, sizeof(random_number));
^
/Users/ivan.kishchenko/esp/esp-idf-v5.3/components/esp_hw_support/port/linux/esp_random.c:37:18: error: call to undeclared function 'getentropy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
result = getentropy(buf + chunk_num * GETENTROPY_MAX_LEN, GETENTROPY_MAX_LEN);
^
/Users/ivan.kishchenko/esp/esp-idf-v5.3/components/esp_hw_support/port/linux/esp_random.c:42:14: error: call to undeclared function 'getentropy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
result = getentropy(buf + FULL_CHUNKS_NUM * GETENTROPY_MAX_LEN, REST_CHUNK_SIZE);
Steps to reproduce.
...
set(COMPONENTS main)
...
Build or installation Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: