WiFiClientSecureBearSSL.h:116:23: error: 'CertStoreBase' has not been declared

This issue has been created since 2021-06-28.

Hi, using latest version 1.8.1 I am getting this issue on build:

Compiling .pio/build/esp12e/lib21d/ESPAsyncTCP/SyncClient.cpp.o In file included from .pio/libdeps/esp12e/ESP8266 IoT Framework/src/fetch.cpp:3: /Users/fmokry001/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:116:23: error: 'CertStoreBase' has not been declared 116 | void setCertStore(CertStoreBase *certStore) { | ^~~~~~~~~~~~~ /Users/fmokry001/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:163:5: error: 'CertStoreBase' does not name a type; did you mean 'CertStore'? 163 | CertStoreBase *_certStore; | ^~~~~~~~~~~~~ | CertStore /Users/fmokry001/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h: In member function 'void BearSSL::WiFiClientSecureCtx::setCertStore(int*)': /Users/fmokry001/.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 /Users/fmokry001/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h: At global scope: /Users/fmokry001/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:302:23: error: 'CertStoreBase' has not been declared 302 | void setCertStore(CertStoreBase *certStore) { _ctx->setCertStore(certStore); } | ^~~~~~~~~~~~~ .pio/libdeps/esp12e/ESP8266 IoT Framework/src/fetch.cpp: In member function 'void HTTPRequest::begin(String, bool)': .pio/libdeps/esp12e/ESP8266 IoT Framework/src/fetch.cpp:20:35: error: cannot convert 'BearSSL::CertStore*' to 'int*' 20 | httpsClient->setCertStore(&certStore); | ^~~~~~~~~~ | | | BearSSL::CertStore* In file included from .pio/libdeps/esp12e/ESP8266 IoT Framework/src/fetch.cpp:3: /Users/fmokry001/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:302:38: note: initializing argument 1 of 'void BearSSL::WiFiClientSecure::setCertStore(int*)' 302 | void setCertStore(CertStoreBase *certStore) { _ctx->setCertStore(certStore); } | ~~~~~~~~~~~~~~~^~~~~~~~~ Compiling .pio/build/esp12e/lib21d/ESPAsyncTCP/tcp_axtls.c.o *** [.pio/build/esp12e/lib438/ESP8266 IoT Framework/fetch.cpp.o] Error 1 Compiling .pio/build/esp12e/lib53b/Hash/Hash.cpp.o src/main.cpp: In function 'bool CheckShouldRun(long unsigned int, int)': src/main.cpp:200:36: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 200 | return millis() - previousMillis >= interval; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ .pio/libdeps/esp12e/ESP8266 IoT Framework/src/dashboard.cpp: In member function 'void dashboard::send()': .pio/libdeps/esp12e/ESP8266 IoT Framework/src/dashboard.cpp:26:11: warning: 'void* memcpy(void*, const void*, size_t)' forming offset [4, 7] is out of the bounds [0, 4] of object 'now' with type 'long unsigned int' [-Warray-bounds] 26 | memcpy(buffer, reinterpret_cast<uint8_t *>(&now), 8); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .pio/libdeps/esp12e/ESP8266 IoT Framework/src/dashboard.cpp:25:19: note: 'now' declared here 25 | unsigned long now = millis(); | ^~~ =============================================================================================== [FAILED] Took 6.96 seconds =============================================================================================== The terminal process "platformio 'run', '--environment', 'esp12e'" terminated with exit code: 1.

Downgrade to 1.8.0 solve the issue.

Eisbaeeer wrote this answer on 2021-06-29

Have a look here: #109

maakbaas wrote this answer on 2021-06-29

I can't see how there would be a difference between 1.8.1 and 1.8.0 with regards to this. Are you using the 3.0.0 Arduino libraries?How does your platformio.ini look like? If 1.8.0 works, I think 1.8.1 should work now as well. Maybe something else changed in your configuration during the downgrade. You can also try clearing your .pio folder.

Oxoproline wrote this answer on 2021-06-29

Thank you guys for reply. I indeed yesterday upgraded libraries to 3.0.0 and that probably caused the issue. Can explain what happened when I downgraded the iot framework lib., but after that it builded. Probably smth else happened I am not aware of because it make sense that even on 1.8.0 it should not build.

More Details About Repo
Owner Name maakbaas
Repo Name esp8266-iot-framework
Full Name maakbaas/esp8266-iot-framework
Language C++
Created Date 2020-04-09
Updated Date 2022-08-26
Star Count 305
Watcher Count 21
Fork Count 89
Issue Count 10

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Autocorrect: Triple message sending 1 2020-09-03 2022-08-29
[BUG] Unable to create line after last one 4 2021-08-09 2022-09-11
shift doesn't work on on-screen keyboard 0 2022-02-24 2022-07-23
[i18n] Support of non-european languages and non-latin scripts 5 2019-05-22 2022-08-08
How can I add image to XDXF file? 4 2022-01-30 2022-05-22
[question] Best practice to enhance various elements with IDs for testing 1 2022-08-01 2022-09-17
Question: Clarify relation between Kind and PointKind 3 2021-02-23 2022-09-13
Criar uma lógica de checksum para validar os arquivos 7 2021-12-17 2022-09-03
Overwrites existing app's redux persist state when loaded 1 2021-12-30 2022-09-13
Clang 12 CI build 1 2021-03-07 2021-12-24
Remove Travis CI 0 2020-11-12 2021-12-17
Clang 11 ci build 0 2020-10-13 2021-12-17
CodeQL analysis 0 2021-02-17 2021-12-24
Github Actions CI 0 2020-11-09 2021-12-24
connect db failed, err: dial tcp 127.0.0.1:3306: connect: connection refused 有沒有人能告知出了什麼問題? 0 2022-06-29 2022-09-19
Deserialization issue - object returned unset 1 2020-12-28 2022-08-30
[技术咨询] webrtc不支持H265? 1 2022-08-23 2022-09-19
淘宝比价失效,京东正常 0 2022-01-05 2022-01-11
Can not close outer or inner port 3 2022-01-25 2022-08-16
esm support 4 2021-04-04 2022-01-02
默认折叠没有信息的部分 1 2021-04-06 2022-01-12
请问一下在mac系统下使用应该如何修改设置 9 2021-02-14 2022-09-12
remove passlib dep (can't run from RHEL 8 controller host) 4 2019-11-13 2022-09-20
Workflows are referencing vulnerable actions 0 2022-01-30 2022-09-12
Feature: Split Markdown view in editor. 2 2016-08-11 2022-09-26
feat: `as` prop for Button 1 2021-05-14 2022-09-22
Version 4.0.0 fails with Psych::DisallowedClass with symbols for keys 3 2021-05-17 2022-09-16
Cookie doesn't authenticate with Oauth2 0 2022-06-23 2022-09-13
Toolchain side of RTTs for JS API? 22 2022-02-22 2022-09-13
[DOC BUG]: Sample code in tutorial.rst is outdated 0 2022-01-14 2022-09-15
Utils override globalCss selectors 2 2021-09-16 2022-09-12
404 Repo Inaccessible for Users in Team w/ All Repo Access 11 2021-09-09 2022-07-26
Update the PineconeDocumentStore 4 2022-06-08 2022-09-06
Icon for MultiMC? 2 2021-08-20 2022-01-13
[BUG] error: Tracker "idealTree:inflate:" already exists 3 2021-10-05 2022-01-20
Where is the documentation? 5 2022-09-13 2022-09-19
Deleted Objects return True 5 2021-11-21 2022-09-18
identify: flaky TestLargeIdentifyMessage 5 2021-08-18 2022-09-13
systemd-analyze shell completion is not compleating the optional argument to "critical-chain" 0 2021-10-04 2022-09-09
[Bug][SDK] javadoc comments in wrong place 0 2022-04-07 2022-09-12
Corretta gestione Authn 4 2021-08-06 2022-09-09
ROS2 SERVICE CALL MULTIPLE SERVOMOTORES 0 2022-05-19 2022-08-29
onclose() is not called when returning to the previous page 0 2022-01-12 2022-09-17
Use user agent from browser 3 2021-08-31 2022-09-01
Getting Plugin error: cycle in imports while trying bookstore sample yaml file 0 2022-09-05 2022-09-25
add @NoLog 1 2018-03-07 2022-01-12
[BUG] jemter函数${__V拼接变量在条件控制器中不生效 0 2022-08-14 2022-08-15
Feature request: VST3 4 2021-03-06 2022-09-12
chore(deps): bump handlebars from 4.7.6 to 4.7.7 1 2021-05-07 2022-09-24
Complete the Constraints page 1 2016-08-13 2022-07-31