Is inet_pton macro missing from RTOS SDK 1.5.0?

vinicius.vbf
Posts: 5
Joined: Wed Mar 02, 2016 10:06 am

Is inet_pton macro missing from RTOS SDK 1.5.0?

Postby vinicius.vbf » Tue May 16, 2017 11:49 am

After upgrading my RTOS SDK from 1.4.0 to 1.5.0, I can't build my project anymore. I keep getting this message:

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!!

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Is inet_pton macro missing from RTOS SDK 1.5.0?

Postby pratik » Thu May 18, 2017 12:39 pm

Which environment are you using? The Espressif Lubuntu image?

I cannot reproduce the issue!
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: Bing [Bot] and 6 guests