me-no-dev / ESPAsyncWebServer

Async Web Server for ESP8266 and ESP32
3.78k stars 1.23k forks source link

Compilation error arduino-esp32 master esp32-3.0.0 idf-5.1 #1350

Closed rel1ct closed 1 year ago

rel1ct commented 1 year ago

include "ESPAsyncWebServer.h"

include "AsyncTCP.h"

void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }

C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function 'bool getMD5(uint8_t, uint16_t, char)': C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'? 74 | mbedtls_md5_starts_ret(&_ctx); | ^~~~~~ | mbedtls_md5_starts C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:75:3: error: 'mbedtls_md5_update_ret' was not declared in this scope; did you mean 'mbedtls_md5_update'? 75 | mbedtls_md5_update_ret(&_ctx, data, len); | ^~~~~~ | mbedtls_md5_update C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:76:3: error: 'mbedtls_md5_finish_ret' was not declared in this scope; did you mean 'mbedtls_md5_finish'? 76 | mbedtls_md5_finish_ret(&_ctx, _buf); | ^~~~~~ | mbedtls_md5_finish C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp: In member function 'void AsyncEventSourceClient::_queueMessage(AsyncEventSourceMessage)': C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp:188:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'? 188 | ets_printf("ERROR: Too many messages queued\n"); | ^~~~~~ | vswprintf C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp: In member function 'IPAddress AsyncWebSocketClient::remoteIP()': C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:832:28: error: call of overloaded 'IPAddress(unsigned int)' is ambiguous 832 | return IPAddress(0U); | ^ In file included from C:\Users\�������������\sketchbook\hardware\espressif\esp32\cores\esp32/Arduino.h:192, from C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:21: C:\Users\�������������\sketchbook\hardware\espressif\esp32\cores\esp32/IPAddress.h:51:5: note: candidate: 'IPAddress::IPAddress(const uint8_t)' 51 | IPAddress(const uint8_t address); | ^~~~~ C:\Users\�������������\sketchbook\hardware\espressif\esp32\cores\esp32/IPAddress.h:50:5: note: candidate: 'IPAddress::IPAddress(uint32_t)' 50 | IPAddress(uint32_t address); | ^~~~~ C:\Users\�������������\sketchbook\hardware\espressif\esp32\cores\esp32/IPAddress.h:29:7: note: candidate: 'constexpr IPAddress::IPAddress(const IPAddress&)' 29 | class IPAddress: public Printable | ^~~~~ C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp: In constructor 'AsyncWebSocketResponse::AsyncWebSocketResponse(const String&, AsyncWebSocket)': C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:1262:3: error: 'mbedtls_sha1_starts_ret' was not declared in this scope; did you mean 'mbedtls_sha1_starts'? 1262 | mbedtls_sha1_starts_ret(&ctx); | ^~~~~~~ | mbedtls_sha1_starts C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:1263:3: error: 'mbedtls_sha1_update_ret' was not declared in this scope; did you mean 'mbedtls_sha1_update'? 1263 | mbedtls_sha1_update_ret(&ctx, (const unsigned char*)key.c_str(), key.length()); | ^~~~~~~ | mbedtls_sha1_update C:\Users\�������������\sketchbook\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:1264:3: error: 'mbedtls_sha1_finish_ret' was not declared in this scope; did you mean 'mbedtls_sha1_finish'? 1264 | mbedtls_sha1_finish_ret(&ctx, hash); | ^~~~~~~ | mbedtls_sha1_finish exit status 1

blackhack commented 1 year ago

This fix it: https://github.com/me-no-dev/ESPAsyncWebServer/pull/1349