Code: Select all
xtensa-lx106-elf-gcc -L/opt/Espressif/ESP8266_RTOS_SDK/lib -Wl,--gc-sections -nostdlib -T/opt/Espressif/ESP8266_RTOS_SDK/ld/eagle.app.v6.new.2048.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lgcc -lhal -lphy -lpp -lnet80211 -lcrypto -lwpa -lmain -lfreertos -llwip -lssl -ljson -lsmartconfig -L./libesphttpd -lesphttpd -lwebpages-espfs -lcirom -lmirom -lpwm user/.output/eagle//lib/libuser.a driver/.output/eagle//lib/libdriver.a -Wl,--end-group -o .output/eagle//image/eagle.app.v6.out
user/.output/eagle//lib/libuser.a(ntp.o):(.text.ntp_get_time+0x4c): undefined reference to `inet_pton'
user/.output/eagle//lib/libuser.a(ntp.o): In function `ntp_get_time':
The file include/lwip/lwip/sockets.h is being found and it has the macro inet_pton defined, but the linkage keeps failing.
Can anyone confirm whether the library liblwip.a from RTOS SDK v1.5.0 is missing this definition?
Thanks!!