cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.48k stars 430 forks source link

Undefined reference to `ping_start' #596

Open matthew-william-lock opened 2 years ago

matthew-william-lock commented 2 years ago

I am running the following build command

mos build --local --platform esp8266 --verbose --clean

with a build target as shown below

libs_version: 2.20.0
modules_version: 2.20.0
mongoose_os_version: 2.20.0

I make use of a modified version of a community created watchdog_timer which makes use of various functions including ping_start, ping_regist_recv, and ping_regist_sent from lwip/app/ping.h.

When building with mongoose_os_version: 2.15.0 the library builds just fine.

However when building for mongoose_os_version: 2.20.0 it produces the following type of error :

/opt/Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/9.2.0/../../../../xtensa-lx106-elf/bin/ld: /.../build/objs/mgos_watchdog.c.o: in function `mgos_watchdog_init_net_timer':
/.../libs/connection_watchdog/src/mgos_watchdog.c:162: undefined reference to `ping_start'