Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error Unknown type name ‘iot_typecode_t’ error on Raspberry pi #73

Open
pranitsuperb opened this issue Mar 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pranitsuperb
Copy link

Hello,

I am trying to build this but got an error. I appreciate your help int this regard. Thank you

/root/device-sdk-c/include/devsdk/devsdk-base.h:48:3: error: unknown type name ‘iot_typecode_t’
48 | iot_typecode_t type;
| ^~~~~~~~~~~~~~
/root/device-sdk-c/include/devsdk/devsdk-base.h:94:3: error: unknown type name ‘iot_typecode_t’
94 | iot_typecode_t type;
| ^~~~~~~~~~~~~~
In file included from /root/device-sdk-c/include/edgex/devices.h:18,
from /root/device-bacnet-c/src/c/main.c:12:
/root/device-sdk-c/include/edgex/edgex.h:47:3: error: unknown type name ‘iot_typecode_t’
47 | iot_typecode_t type;
| ^~~~~~~~~~~~~~
/root/device-bacnet-c/src/c/main.c: In function ‘bacnet_alloc_exception’:
/root/device-bacnet-c/src/c/main.c:109:38: error: ‘IOT_DATA_TAKE’ undeclared (first use in this function); did you mean ‘IOT_DATA_MAP’?
109 | return iot_data_alloc_string (str, IOT_DATA_TAKE);
| ^~~~~~~~~~~~~
| IOT_DATA_MAP
/root/device-bacnet-c/src/c/main.c:109:38: note: each undeclared identifier is reported only once for each function it appears in
/root/device-bacnet-c/src/c/main.c: In function ‘parseProperty’:
/root/device-bacnet-c/src/c/main.c:162:69: error: ‘IOT_DATA_REF’ undeclared (first use in this function); did you mean ‘IOT_DATA_MAP’?
162 | *exc = iot_data_alloc_string ("Unknown BACnet property name", IOT_DATA_REF);
| ^~~~~~~~~~~~
| IOT_DATA_MAP
/root/device-bacnet-c/src/c/main.c: In function ‘parseType’:
/root/device-bacnet-c/src/c/main.c:189:69: error: ‘IOT_DATA_REF’ undeclared (first use in this function); did you mean ‘IOT_DATA_MAP’?
189 | *exc = iot_data_alloc_string ("Attribute 'type' is required", IOT_DATA_REF);
| ^~~~~~~~~~~~
| IOT_DATA_MAP
/root/device-bacnet-c/src/c/main.c: In function ‘get_supported_services’:
/root/device-bacnet-c/src/c/main.c:313:85: error: ‘IOT_DATA_REF’ undeclared (first use in this function); did you mean ‘IOT_DATA_MAP’?
313 | iot_data_string_map_add (properties, "DS-RPM-B", iot_data_alloc_string ("true", IOT_DATA_REF));
| ^~~~~~~~~~~~
| IOT_DATA_MAP
/root/device-bacnet-c/src/c/main.c: In function ‘bacnet_get_handler’:
/root/device-bacnet-c/src/c/main.c:443:71: error: ‘IOT_DATA_REF’ undeclared (first use in this function); did you mean ‘IOT_DATA_MAP’?
443 | *exception = iot_data_alloc_string ("Error populating read_data", IOT_DATA_REF);
| ^~~~~~~~~~~~
| IOT_DATA_MAP
/root/device-bacnet-c/src/c/main.c: In function ‘bacnet_put_handler’:
/root/device-bacnet-c/src/c/main.c:513:72: error: ‘IOT_DATA_REF’ undeclared (first use in this function); did you mean ‘IOT_DATA_MAP’?
513 | *exception = iot_data_alloc_string ("Error populating write_data", IOT_DATA_REF);
| ^~~~~~~~~~~~
| IOT_DATA_MAP
/root/device-bacnet-c/src/c/main.c: In function ‘main’:
/root/device-bacnet-c/src/c/main.c:668:101: error: ‘IOT_DATA_REF’ undeclared (first use in this function); did you mean ‘IOT_DATA_MAP’?
668 | iot_data_string_map_add (defaults, "DefaultDevicePath", iot_data_alloc_string (DEFAULT_MSTP_PATH, IOT_DATA_REF));
| ^~~~~~~~~~~~
| IOT_DATA_MAP
/root/device-bacnet-c/src/c/main.c: In function ‘bacnet_alloc_exception’:
/root/device-bacnet-c/src/c/main.c:110:1: warning: control reaches end of non-void function [-Wreturn-type]
110 | }
| ^
make[2]: *** [CMakeFiles/device-bacnet-c.dir/build.make:76: CMakeFiles/device-bacnet-c.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/device-bacnet-c.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@pranitsuperb pranitsuperb added the bug Something isn't working label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant