ESP8266 Developer Zone The Official ESP8266 Forum 2017-05-18T12:39:33+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=4565 2017-05-18T12:39:33+08:00 2017-05-18T12:39:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4565&p=13223#p13223 <![CDATA[Re: Is inet_pton macro missing from RTOS SDK 1.5.0?]]>
I cannot reproduce the issue!

Statistics: Posted by Guest — Thu May 18, 2017 12:39 pm


]]>
2017-05-16T11:49:13+08:00 2017-05-16T11:49:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4565&p=13155#p13155 <![CDATA[Is inet_pton macro missing from RTOS SDK 1.5.0?]]>

Code:

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

Statistics: Posted by vinicius.vbf — Tue May 16, 2017 11:49 am


]]>