-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Description
Answers checklist.
- I have read the component documentation ESP-IDF Components and the issue is not addressed there.
- I am using target and esp-idf version as defined in component's idf_component.yml
- I have searched the issue tracker for a similar issue and not found any related issue.
Which component are you using? If you choose Other, provide details in More Information.
coap
ESP-IDF version.
release/v5.4
Development Kit.
Custom board
Used Component version.
espressif/coap
More Information.
I am using esp-idf release/v5.4 to build an application that requires libcoap, added as a dependancy from idf.py add-dependancy coap
The compile fails with unkown name types for sockaddr_in struct memebers i.e
managed_components/espressif__coap/port/include/coap3/coap.h:29:5: error: unknown type name 'sa_family_t'
29 | sa_family_t sin_family;
The issue seems to be related to the order in which port/include/coap3/coap.h declares variables/header files, more precisely the fact that structs are declared before header file inclusions. Declaring those structs afer header inclusions seems to resolve the issue.
Reactions are currently unavailable