Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Help with compile errors #704

@ghost

Description

ESPAsyncWebServer is a fantastic product that I use in numerous projects. Up until yesterday I had no problems with compiling it. Now any project that I compile with it, existing or new, I get the errors below.

I use:
Microsoft Windows 10 Insider Preview Version 2004 Build 19564.1005
Microsoft Visual Studio version 1.43.0-insider.
Platformio version 1.10.0.
Espressif 32 version 1.11.2.
AsyncTCP version 1.1.1.
ESP Async WebServer version 1.2.3
ESPAsyncTCP version 1.2.2.

I'm looking for guidance as to how to proceed in fault finding, it must be something that has changed in my environment but I can't think what other than a Windows update that happened last night. I did my last successful compile at 11pm last night, left my pc on overnight and can't compile this morning.

I have unistalled all libraries, uninstalled PlatformIO, deleted the PlatformIO directory, rebooted, reinstalled PlatformIO and reinstalled the libraries. This solved the problem of not being able to find the interrupts.h file which had also appeared but not the following errors. I have also searched the web and reviewed the issues on this site.

This is the new app I'm trying to compile:
#include <Arduino.h>
#include <ESPAsyncWebServer.h>
AsyncWebServer WebServer(80);
void setup()
{
Serial.begin(115200);
Serial.println("Async web server test");
WebServer.on("/rdata", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(200, "text/html", "Loop text");
});
// Catch all
WebServer.onNotFound([](AsyncWebServerRequest *request) {
request->send(200, "text/html", "Default text");
});
WebServer.begin();
}
void loop()
{
vTaskDelay(pdMS_TO_TICKS(2000));
}
But it does not compile. I get the same errors when compiling existing working apps.

The errors:


Compiling .pio\build\esp32doit-devkit-v1\lib935\ESPAsyncTCP_ID305\ESPAsyncTCPbuffer.cpp.o
In file included from C:\Users\Terminal.platformio\packages\framework-arduinoespressif32\tools\sdk\include\lwip/lwip/opt.h:51:0,
from C:\Users\Terminal.platformio\packages\framework-arduinoespressif32\tools\sdk\include\lwip/lwip/init.h:40,
from C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\ESPAsyncTCP.h:31,
from C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\AsyncPrinter.h:26,
from C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\AsyncPrinter.cpp:22:
C:\Users\Terminal.platformio\packages\framework-arduinoespressif32\tools\sdk\include\lwip/lwipopts.h:326:0: warning: "TCP_MSS" redefined
#define TCP_MSS CONFIG_TCP_MSS
^
In file included from C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\ESPAsyncTCP.h:25:0,
from C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\AsyncPrinter.h:26,
from C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\AsyncPrinter.cpp:22:
C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src/async_config.h:13:0: note: this is the location of the previous definition
#define TCP_MSS (1460)
^
Plus 2 more similar errors


C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\AsyncPrinter.cpp: In constructor 'AsyncPrinter::AsyncPrinter(AsyncClient*, size_t)':
C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\AsyncPrinter.cpp:48:11: error: 'panic' was not declared in this scope
panic(); //What should we do?
Plus 8 more similar errors


C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\ESPAsyncTCP.cpp: In member function 'bool AsyncClient::connect(IPAddress, uint16_t)':
C:\Users\Terminal.platformio\lib\ESPAsyncTCP_ID305\src\ESPAsyncTCP.cpp:248:8: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
addr.addr = ip;
^
Plus 6 more similar errors


*** [.pio\build\esp32doit-devkit-v1\lib935\ESPAsyncTCP_ID305\AsyncPrinter.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib935\ESPAsyncTCP_ID305\ESPAsyncTCPbuffer.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib935\ESPAsyncTCP_ID305\ESPAsyncTCP.cpp.o] Error 1

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions