I'm getting up to speed on the esp8266 using Espriff's development kit. I've successfully ran and modified the GPIOs example which would seem to imply my toolchain / configuration seems to be working properly. Although in attempting to run the ESP8266_RTOS_SDK/examples/protocols/aws_iot/thing_shadow/ example I'm getting an error "dereferencing pointer to incomplete type 'struct sockaddr_in6'"(details below). It seemed a bit odd that it appears to be using IPV6 as it's not enabled in the config file... Please note I'm running on Ubuntu 64 bit machine. Any pointers for someone new to this environment would be greatly appreciated.
PS I've verified I have the most recent code checked out from git.
GIT source
eddie@spike:~/esp/ESP8266_RTOS_SDK/examples$ git config --get remote.origin.url
https://github.com/espressif/ESP8266_RTOS_SDK.git
Build errors:
CC build/coap/libcoap/src/net.o
/home/eddie/esp/ESP8266_RTOS_SDK/components/esp-tls/esp_tls.c: In function 'esp_tcp_connect':
/home/eddie/esp/ESP8266_RTOS_SDK/components/esp-tls/esp_tls.c:106:10: error: dereferencing pointer to incomplete type 'struct sockaddr_in6'
p->sin6_port = htons(port);
^
CC build/bootloader/bootloader_support/src/flash_encrypt.o
/home/eddie/esp/ESP8266_RTOS_SDK/make/component_wrapper.mk:285: recipe for target 'esp_tls.o' failed
make[1]: *** [esp_tls.o] Error 1
/home/eddie/esp/ESP8266_RTOS_SDK/make/project.mk:467: recipe for target 'component-esp-tls-build' failed
make: *** [component-esp-tls-build] Error 2
make: *** Waiting for unfinished jobs....
Host Machine Config
eddie@spike:~/esp/ESP8266_RTOS_SDK/examples/protocols/aws_iot/thing_shadow$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
eddie@spike:~/esp/ESP8266_RTOS_SDK/examples/protocols/aws_iot/thing_shadow$ uname -a
Linux spike 4.18.20-041820-generic #201812030624 SMP Mon Dec 3 11:25:55 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux