Closed darvik80 closed 1 month ago
Hey, which version of macos are you using?
I see that getentropy
might be missing on some older version of macos
Lastest version: 14.6.1 (23G93). I updated all that I can :) In fact fix quite simple: components/esp_hw_support/port/linux/esp_random.c ...
...
Ah, we have actually already fixed this on master, but I missed the fact that you are on 5.3 and the fix hasnt been backported.
I'll make sure we do that.
Should be OK now. Closing this issue.
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.
Build or installation Logs.
More Information.
No response