awslabs / aws-c-mqtt

C99 implementation of the MQTT 3.1.1 specification.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fails: 'requested_event_loop' does not refer to any field in type ..

nunotexbsd opened this issue · comments

Fails to build on FreeBSD clang 13.0.0
Full log: https://people.freebsd.org/~eduardo/logs/aws/aws-c-mqtt-0.7.13.log

Any clues?
Thanks


'requested_event_loop' does not refer to any field in type 'struct aws_websocket_client_connection_options'
        .requested_event_loop = connection->loop,
[ 37% 6/8] /usr/bin/cc -DAWS_CAL_USE_IMPORT_EXPORT -DAWS_COMMON_USE_IMPORT_EXPORT -DAWS_COMPRESSION_USE_IMPORT_EXPORT -DAWS_HTTP_USE_IMPORT_EXPORT -DAWS_IO_USE_IMPORT_EXPORT -DAWS_MQTT_EXPORTS -DAWS_MQTT_USE_IMPORT_EXPORT -DAWS_MQTT_WITH_WEBSOCKETS -DAWS_USE_KQUEUE -DHAVE_SYSCONF -Daws_c_mqtt_EXPORTS -I/wrkdirs/usr/ports/devel/aws-c-mqtt/work/aws-c-mqtt-0.7.13/include -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -Wall -Wstrict-prototypes -Wextra -pedantic
-Wno-long-long -fPIC -Wgnu -Wno-gnu-zero-variadic-macro-arguments -fvisibility=hidden -DS2N_STACKTRACE -DS2N_CPUID_AVAILABLE -DS2N_FALL_THROUGH_SUPPORTED -DS2N___RESTRICT__SUPPORTED -DS2N_MADVISE_SUPPORTED -DS2N_MINHERIT_SUPPORTED -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH -DS2N_LIBCRYPTO_SUPPORTS_EVP_RC4 -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX -std=gnu99 -MD -MT CMakeFiles/aws-c-mqtt.dir/source/client.c.o -MF CMakeFiles/aws-c-mqtt.dir/source/client.c.o.d -o CMakeFiles/aws-c-mqtt.dir/source/client.c.o -c /wrkdirs/usr/ports/devel/aws-c-mqtt/work/aws-c-mqtt-0.7.13/source/client.c
FAILED: CMakeFiles/aws-c-mqtt.dir/source/client.c.o
/usr/bin/cc -DAWS_CAL_USE_IMPORT_EXPORT -DAWS_COMMON_USE_IMPORT_EXPORT -DAWS_COMPRESSION_USE_IMPORT_EXPORT -DAWS_HTTP_USE_IMPORT_EXPORT -DAWS_IO_USE_IMPORT_EXPORT -DAWS_MQTT_EXPORTS -DAWS_MQTT_USE_IMPORT_EXPORT -DAWS_MQTT_WITH_WEBSOCKETS -DAWS_USE_KQUEUE -DHAVE_SYSCONF -Daws_c_mqtt_EXPORTS -I/wrkdirs/usr/ports/devel/aws-c-mqtt/work/aws-c-mqtt-0.7.13/include -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -Wall -Wstrict-prototypes -Wextra -pedantic -Wno-long-long -fPIC -Wgnu -Wno-gnu-zero-variadic-macro-arguments -fvisibility=hidden -DS2N_STACKTRACE -DS2N_CPUID_AVAILABLE -DS2N_FALL_THROUGH_SUPPORTED -DS2N___RESTRICT__SUPPORTED -DS2N_MADVISE_SUPPORTED -DS2N_MINHERIT_SUPPORTED -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH -DS2N_LIBCRYPTO_SUPPORTS_EVP_RC4 -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX -std=gnu99 -MD -MT CMakeFiles/aws-c-mqtt.dir/source/client.c.o -MF CMakeFiles/aws-c-mqtt.dir/source/client.c.o.d -o CMakeFiles/aws-c-mqtt.dir/source/client.c.o -c /wrkdirs/usr/ports/devel/aws-c-mqtt/work/aws-c-mqtt-0.7.13/source/client.c
/wrkdirs/usr/ports/devel/aws-c-mqtt/work/aws-c-mqtt-0.7.13/source/client.c:1315:10: error: field designator 'requested_event_loop' does not refer to any field in type 'struct aws_websocket_client_connection_options'
        .requested_event_loop = connection->loop,
         ^
1 error generated.

Try against the latest aws-c-http release.

I missed this updates.
Thanks it's fixed.
Cheers