PlatformIO Community

Strange compile errors in Libs

Hey guy! Happy Christmas to all of you!

I’m working on this project, but it stopped compiling. And I’m getting strange errors.
this is the compile output:

> Executing task: platformio run <

Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)
----------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 (3.2.0) > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 3.30002.0 (3.0.2) 
 - tool-esptool 1.413.0 (4.13) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - toolchain-xtensa 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 51 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <DoubleResetDetector> 1.0.2
|-- <ArduinoJson> 5.13.2
|-- <LinkedList> 0.0.0-alpha+sha.dac3874d28
|-- <WebSockets> 2.1.2
|   |-- <ESP8266WiFi> 1.0
|   |   |-- <Updater>
|   |   |   |-- <LedHandler>
|   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |-- <ESPAsyncTCP> 1.2.2+sha.1547686
|   |-- <Ethernet> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <SPI> 1.0
|   |-- <Hash> 1.0
|-- <SocketIoClient> 0.3.0
|   |-- <WebSockets> 2.1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |   |   |-- <Updater>
|   |   |   |   |-- <LedHandler>
|   |   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |   |-- <ESPAsyncTCP> 1.2.2+sha.1547686
|   |   |-- <Ethernet> 2.0.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <SPI> 1.0
|   |   |-- <Hash> 1.0
|-- <WiFiManager> 0.15.0
|   |-- <DNSServer> 1.1.1
|   |   |-- <ESP8266WiFi> 1.0
|   |   |   |-- <Updater>
|   |   |   |   |-- <LedHandler>
|   |   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |-- <ESP8266WebServer> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |   |   |-- <Updater>
|   |   |   |   |-- <LedHandler>
|   |   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |-- <ESP8266WiFi> 1.0
|   |   |-- <Updater>
|   |   |   |-- <LedHandler>
|   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |-- <ESP8266HTTPClient> 1.2
|-- <Adafruit NeoPixel> 1.10.3
|-- <LedHandler>
|   |-- <Adafruit NeoPixel> 1.10.3
|-- <Modules>
|   |-- <Wire> 1.0
|-- <Socket>
|   |-- <LedHandler>
|   |   |-- <Adafruit NeoPixel> 1.10.3
|   |-- <ESP8266WiFi> 1.0
|   |   |-- <Updater>
|   |   |   |-- <LedHandler>
|   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |-- <LinkedList> 0.0.0-alpha+sha.dac3874d28
|   |-- <SocketIoClient> 0.3.0
|   |   |-- <WebSockets> 2.1.2
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |   |   |-- <Updater>
|   |   |   |   |   |-- <LedHandler>
|   |   |   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |   |   |-- <ESPAsyncTCP> 1.2.2+sha.1547686
|   |   |   |-- <Ethernet> 2.0.0
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <SPI> 1.0
|   |   |   |-- <Hash> 1.0
|   |-- <WiFiManager> 0.15.0
|   |   |-- <DNSServer> 1.1.1
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |   |   |-- <Updater>
|   |   |   |   |   |-- <LedHandler>
|   |   |   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |   |-- <ESP8266WebServer> 1.0
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |   |   |-- <Updater>
|   |   |   |   |   |-- <LedHandler>
|   |   |   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |   |   |-- <ESP8266HTTPClient> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |   |   |-- <Updater>
|   |   |   |   |-- <LedHandler>
|   |   |   |   |   |-- <Adafruit NeoPixel> 1.10.3
|   |   |   |   |-- <ESP8266httpUpdate> 1.3
|   |   |   |   |   |-- <ESP8266HTTPClient> 1.2
|-- <StepperMotor>
|   |-- <AccelStepper>
|-- <Updater>
|   |-- <LedHandler>
|   |   |-- <Adafruit NeoPixel> 1.10.3
|   |-- <ESP8266httpUpdate> 1.3
|   |   |-- <ESP8266HTTPClient> 1.2
|-- <LittleFS> 0.1.0
Building in release mode
Compiling .pio/build/d1_mini/lib384/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling .pio/build/d1_mini/lib384/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling .pio/build/d1_mini/lib6cb/WebSockets/WebSocketsClient.cpp.o
Archiving .pio/build/d1_mini/lib02c/libSocket.a
Indexing .pio/build/d1_mini/lib02c/libSocket.a
Archiving .pio/build/d1_mini/libbe9/libAccelStepper.a
Indexing .pio/build/d1_mini/libbe9/libAccelStepper.a
Archiving .pio/build/d1_mini/libc06/libLittleFS.a
Indexing .pio/build/d1_mini/libc06/libLittleFS.a
Compiling .pio/build/d1_mini/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/d1_mini/FrameworkArduino/LwipDhcpServer-NonOS.cpp.o
Compiling .pio/build/d1_mini/FrameworkArduino/LwipDhcpServer.cpp.o
Compiling .pio/build/d1_mini/FrameworkArduino/LwipIntf.cpp.o
Compiling .pio/build/d1_mini/FrameworkArduino/LwipIntfCB.cpp.o
Compiling .pio/build/d1_mini/FrameworkArduino/MD5Builder.cpp.o
Compiling .pio/build/d1_mini/FrameworkArduino/Print.cpp.o
In file included from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:30,
                 from lib/Updater/Updater.h:5,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/BearSSLHelpers.h:28,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/BearSSLHelpers.cpp:23:
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:57:5: error: 'X509List' does not name a type
   57 |     X509List *_x509 = nullptr;
      |     ^~~~~~~~
In file included from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:30,
                 from lib/Updater/Updater.h:5,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/BearSSLHelpers.h:28,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/BearSSLHelpers.cpp:23:
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:37:31: error: 'WiFiClientSecure' does not name a type; did you mean 'WiFiClientSecureCtx'?
   37 |     WiFiClientSecureCtx(const WiFiClientSecure &rhs) = delete;
      |                               ^~~~~~~~~~~~Compiling .pio/build/d1_mini/FrameworkArduino/Schedule.cpp.o
~~~~
      |                               WiFiClientSecureCtx
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:64:21: error: 'Session' has not been declared
   64 |     void setSession(Session *session) { _session = session; }
      |                     ^~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:72:28: error: 'PublicKey' does not name a type
   72 |     void setKnownKey(const PublicKey *pk, unsigned usages = BR_KEYTYPE_KEYX | BR_KEYTYPE_SIGN) {
      |                            ^~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:91:32: error: 'X509List' does not name a type
   91 |     void setTrustAnchors(const X509List *ta) {
      |                                ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:100:33: error: 'X509List' does not name a type
  100 |     void setClientRSACert(const X509List *cert, const PrivateKey *sk);
      |                                 ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:100:55: error: 'PrivateKey' does not name a type
  100 |     void setClientRSACert(const X509List *cert, const PrivateKey *sk);
      |                                                       ^~~~~~~~~~
Compiling .pio/build/d1_mini/FrameworkArduino/StackThunk.cpp.o
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:101:32: error: 'X509List' does not name a type
  101 |     void setClientECCert(const X509List *cert, const PrivateKey *sk,
      |                                ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:101:54: error: 'PrivateKey' does not name a type
  101 |     void setClientECCert(const X509List *cert, const PrivateKey *sk,
      |                                                      ^~~~~~~~~~
Compiling .pio/build/d1_mini/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/d1_mini/FrameworkArduino/StreamSend.cpp.o
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:162:11: error: 'X509List' does not name a type
  162 |     const X509List *_ta;
      |           ^~~~~~~~
In file included from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:30,
                 from lib/Updater/Updater.h:5,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/BearSSLHelpers.h:28,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:24,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.cpp:20:
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:37:31: error: 'WiFiClientSecure' does not name a type; did you mean 'WiFiClientSecureCtx'?
   37 |     WiFiClientSecureCtx(const WiFiClientSecure &rhs) = delete;
      |                               ^~~~~~~~~~~~~~~~
      |                               WiFiClientSecureCtx
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:171:5: error: 'Session' does not name a type
  171 |     Session *_session;
      |     ^~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:64:21: error: 'Session' has not been declared
   64 |     void setSession(Session *session) { _session = session; }
      |                     ^~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:177:11: error: 'PublicKey' does not name a type
  177 |     const PublicKey *_knownkey;
      |           ^~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:72:28: error: 'PublicKey' does not name a type
   72 |     void setKnownKey(const PublicKey *pk, unsigned usages = BR_KEYTYPE_KEYX | BR_KEYTYPE_SIGN) {
      |                            ^~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:91:32: error: 'X509List' does not name a type
   91 |     void setTrustAnchors(const X509List *ta) {
      |                                ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:199:11: error: 'X509List' does not name a type
  199 |     const X509List *_chain;
      |           ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:100:33: error: 'X509List' does not name a type
  100 |     void setClientRSACert(const X509List *cert, const PrivateKey *sk);
      |                                 ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:200:11: error: 'PrivateKey' does not name a type
  200 |     const PrivateKey *_sk;
      |           ^~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:206:54: error: 'X509List' does not name a type
  206 |     WiFiClientSecureCtx(ClientContext *client, const X509List *chain, unsigned cert_issuer_key_type,
      |                                                      ^~~~~~~~
Compiling .pio/build/d1_mini/FrameworkArduino/Tone.cpp.o
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:211:29: error: 'X509List' does not name a type
  211 |                       const X509List *client_CA_ta, int tls_min, int tls_max);
      |                             ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:214:37: error: 'X509List' does not name a type
  214 |     bool _connectSSLServerRSA(const X509List *chain, const PrivateKey *sk,
      |                                     ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:214:60: error: 'PrivateKey' does not name a type
  214 |     bool _connectSSLServerRSA(const X509List *chain, const PrivateKey *sk,
      |                                                            ^~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:215:31: error: 'ServerSessions' has not been declared
  215 |                               ServerSessions *cache, const X509List *client_CA_ta);
      |                               ^~~~~~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:215:60: error: 'X509List' does not name a type
  215 |                               ServerSessions *cache, const X509List *client_CA_ta);
      |                                                            ^~~~~~~~
Compiling .pio/build/d1_mini/FrameworkArduino/TypeConversion.cpp.o
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:162:11: error: 'X509List' does not name a type
  162 |     const X509List *_ta;
      |           ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:217:36: error: 'X509List' does not name a type
  217 |     bool _connectSSLServerEC(const X509List *chain, unsigned cert_issuer_key_type, const PrivateKey *sk,
      |                                    ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:288:54: error: 'PrivateKey' does not name a type
  288 |     void setClientECCert(const X509List *cert, const PrivateKey *sk,
      |                                                      ^~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:217:90: error: 'PrivateKey' does not name a type
  217 |     bool _connectSSLServerEC(const X509List *chain, unsigned cert_issuer_key_type, const PrivateKey *sk,
      |                                                                                          ^~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:218:30: error: 'ServerSessions' has not been declared
  218 |                              ServerSessions *cache, const X509List *client_CA_ta);
      |                              ^~~~~~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:218:59: error: 'X509List' does not name a type
  218 |                              ServerSessions *cache, const X509List *client_CA_ta);
      |                                                           ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:222:44: error: 'X509List' does not name a type
  222 |     bool _installServerX509Validator(const X509List *client_CA_ta); // Setup X509 client cert validation, if supplied
      |                                            ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h: In member function 'void BearSSL::WiFiClientSecureCtx::setSession(int*)':
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:64:41: error: '_session' was not declared in this scope; did you mean 'session'?
   64 |     void setSession(Session *session) { _session = session; }
      |                                         ^~~~~~~~
      |                                         session
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:338:51: error: 'X509List' does not name a type
  338 |     WiFiClientSecure(ClientContext *client, const X509List *chain, unsigned cert_issuer_key_type,
      |                                                   ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:339:29: error: 'PrivateKey' does not name a type
  339 |                       const PrivateKey *sk, int iobuf_in_size, int iobuf_out_size, ServerSessions *cache,
      |                             ^~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:339:84: error: 'ServerSessions' has not been declared
  339 |                       const PrivateKey *sk, int iobuf_in_size, int iobuf_out_size, ServerSessions *cache,
      |                                                                                    ^~~~~~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h: In member function 'void BearSSL::WiFiClientSecureCtx::setKnownKey(const int*, unsigned int)':
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:74:7: error: '_knownkey' was not declared in this scope
   74 |       _knownkey = pk;
      |       ^~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h: In member function 'void BearSSL::WiFiClientSecureCtx::setTrustAnchors(const int*)':
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:93:7: error: '_ta' was not declared in this scope; did you mean 'ta'?
   93 |       _ta = ta;
      |       ^~~
      |       ta
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:340:29: error: 'X509List' does not name a type
  340 |                       const X509List *client_CA_ta, int tls_min, int tls_max):
      |                             ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h: In member function 'void BearSSL::WiFiClientSecureCtx::setCertStore(int*)':
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:117:7: error: '_certStore' was not declared in this scope; did you mean 'certStore'?
  117 |       _certStore = certStore;
      |       ^~~~~~~~~~
      |       certStore
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h: At global scope:
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:265:21: error: 'Session' has not been declared
  265 |     void setSession(Session *session) { _ctx->setSession(session); }
      |                     ^~~~~~~
In file included from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:30,
                 from lib/Updater/Updater.h:5,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/BearSSLHelpers.h:28,
                 from /home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/BearSSLHelpers.cpp:23:
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:344:51: error: 'X509List' does not name a type
  344 |     WiFiClientSecure(ClientContext* client, const X509List *chain, const PrivateKey *sk,
      |                                                   ^~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:271:28: error: 'PublicKey' does not name a type
  271 |     void setKnownKey(const PublicKey *pk, unsigned usages = BR_KEYTYPE_KEYX | BR_KEYTYPE_SIGN) {
      |                            ^~~~~~~~~
.pio/libdeps/d1_mini/WebSockets/src/WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
.pio/libdeps/d1_mini/WebSockets/src/WebSocketsClient.cpp:704:26: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify'
  704 |         if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {
      |                          ^~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecureBearSSL.h:81:5: error: 'ServerSessions' does not name a type
   81 |     ServerSessions *_cache = nullptr;
      |     ^~~~~~~~~~~~~~
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecureBearSSL.h: In member function 'void BearSSL::WiFiServerSecure::setCache(int*)':
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecureBearSSL.h:47:7: error: '_cache' was not declared in this scope; did you mean 'cache'?
   47 |       _cache = cache;
      |       ^~~~~~
      |       cache
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecureBearSSL.h: In member function 'void BearSSL::WiFiServerSecure::setClientTrustAnchor(const int*)':
/home/stefan/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecureBearSSL.h:60:7: error: '_client_CA_ta' was not declared in this scope; did you mean 'client_CA_ta'?
   60 |       _client_CA_ta = client_CA_ta;
      |       ^~~~~~~~~~~~~
      |       client_CA_ta
Compiling .pio/build/d1_mini/FrameworkArduino/abi.cpp.o
*** [.pio/build/d1_mini/lib6cb/WebSockets/WebSocketsClient.cpp.o] Error 1
*** [.pio/build/d1_mini/lib384/ESP8266WiFi/CertStoreBearSSL.cpp.o] Error 1
*** [.pio/build/d1_mini/lib384/ESP8266WiFi/BearSSLHelpers.cpp.o] Error 1
============================================= [FAILED] Took 2.60 seconds =============================================
The terminal process "platformio 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

I have really no idea where to look because it looks like the errors come out of a Lib that is downloaded by platformio.

Somebody here that could help me out.

Your custom lib/Updater/Updater.h file directly conflicts with cores/esp8266/Updater.h – rename both your header and the library folder.