esp32-http-firmware-update-over-the-air icon indicating copy to clipboard operation
esp32-http-firmware-update-over-the-air copied to clipboard

weird duplicated error

Open megazero1316 opened this issue 6 years ago • 4 comments

i tried to compile the code today and it gives me a weird error

/home/ubuntu/Arduino/hardware/espressif/esp32/tools/sdk/lib/liblwip.a(md5.o): In function `md5':
Multiple libraries were found for "WiFi.h"
/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/netif/ppp/polarssl/md5.c:292: multiple definition of `md5'
 Used: /home/ubuntu/Arduino/hardware/espressif/esp32/libraries/WiFi
 Not used: /home/ubuntu/Downloads/arduino-1.8.5/libraries/WiFi
/tmp/arduino_build_342934/sketch/esp32httpfota.ino.cpp.o:(.bss.md5+0x0): first defined here
/home/ubuntu/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: Warning: size of symbol `md5' changed from 50 in /tmp/arduino_build_342934/sketch/esp32httpfota.ino.cpp.o to 70 in /home/ubuntu/Arduino/hardware/espressif/esp32/tools/sdk/lib/liblwip.a(md5.o)
/home/ubuntu/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: Warning: type of symbol `md5' changed from 1 to 2 in /home/ubuntu/Arduino/hardware/espressif/esp32/tools/sdk/lib/liblwip.a(md5.o)
collect2: error: ld returned 1 exit status

the way i solved it on my side is i change the md5 to md5check in the esp32httpfota.ino example and everything is fine

can you please double check it

i am using the latest sdk

megazero1316 avatar Aug 09 '18 09:08 megazero1316

Hi, sorry I reply late. Did you update new sdk from old one? Maybe you need to clean up it.

nhatuan84 avatar Aug 24 '18 07:08 nhatuan84

no, i install the latest from the beginning before testing this library

megazero1316 avatar Aug 24 '18 09:08 megazero1316

did you solved this?

Franciscopcosta avatar Nov 14 '18 00:11 Franciscopcosta

Good catch! Replace anything with md5 not text printed with md5check.

E3V3A avatar Jun 21 '19 15:06 E3V3A