Skip to content

esp8266Ping can not be Linked. #5448

Closed
Closed
@marian-craciunescu

Description

@marian-craciunescu
  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP8266]
  • Core Version: [latest git hash or date]
  • Development Env: [Arduino IDE|Platformio|Make|other]
  • Operating System: [Windows|Ubuntu|MacOS]

Settings in IDE

  • Module: [NodemcuV2]
  • Flash Mode: [qio|dio|other]
  • Flash Size: [4MB/
  • lwip Variant: [v2]
  • Reset Method: [ck|nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz|160MHz]
  • Upload Using: [OTA|SERIAL]
  • Upload Speed: [115200|other] (serial upload only)

Problem Description

After the latest update in the LWIP I can not use anymore the ESP8266Ping library.

MCVE Sketch

Compiling .pioenvs/nodemcuv2/libd48/reef-commons/service/connectivity_service.cpp.o
Linking .pioenvs/nodemcuv2/firmware.elf
.pioenvs/nodemcuv2/libd48/libreef-commons.a(connectivity_service.cpp.o):(.text._ZN9PingClass4pingE9IPAddressh+0x4): undefined reference to ping_start' .pioenvs/nodemcuv2/libd48/libreef-commons.a(connectivity_service.cpp.o): In function PingClass::ping(IPAddress, unsigned char)':
connectivity_service.cpp:(.text._ZN9PingClass4pingE9IPAddressh+0x5e): undefined reference to `ping_start'
collect2: error: ld returned 1 exit status
*** [.pioenvs/nodemcuv2/firmware.elf] Error 1

 String url = "8.8.8.8";
 __online = Ping.ping(url.c_str(), 2);

Debug Messages

AFTER MORE DEBUGGING I see that the issue was introduced by @d-a-v
in commit
5c4db3a ("IPv6 on esp8266-nonos-sdk and arduino (#5136)", 2018-11-27)

5c4db3a

Any suggestion would be highly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions