puuu / ESPiLight

ESPiLight - pilight 433.92 MHz protocols library for Arduino
GNU General Public License v3.0
109 stars 41 forks source link

Definition of protocols in ESPiLight.cpp conflicts with ESP32 liblwip #34

Closed drschlaumeier closed 5 years ago

drschlaumeier commented 5 years ago

It seems that in ESP32 lib is a new definition of "protocols" which conflicts with the definition in ESPiLight.cpp: "protocols_t *protocols = nullptr;"

liblwip.a(ppp.o)*: (.rodata.protocols+0x0): multiple definition of protocols
ESPiLight.cpp.o*: (.bss.protocols+0x0): first defined here

renaming "protocols" to "protocols_t *esplightprotocols = nullptr;" etc. and changing the rest of code in ESPiLight.cpp resolves the problem.

Rgds

puuu commented 5 years ago

Thanks for reporting, fixed in c823d7725332fa0313d49948034a8979d75ecb26.

Some more fixes to make ESPiLight compile against esp32 are introduced in master. If you have any success or problem with esp32 boards, please report to #23.