Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove static declaration of TAG in file esp_crt_bundle.c to be able to use IDF LOG (USE_ESP_IDF_LOG) #6893

Closed
salmon-charles opened this issue Jun 21, 2022 · 0 comments · Fixed by #9686
Labels
IDE: PlaformIO Issue relates to PlatformIO IDE Status: Awaiting triage Issue is waiting for triage

Comments

@salmon-charles
Copy link

Board

ESP32 Dev module

Device Description

custom board

Hardware Configuration

I2C

Version

v2.0.3

IDE Name

PlatformIO

Operating System

macOS Catalina

Flash frequency

40Mhz

PSRAM enabled

yes

Upload speed

115200

Description

When using -DUSE_ESP_IDF_LOG=1, the following error appears:

compiling .pio/build/esp32dev/lib4be/WiFiClientSecure/ssl_client.cpp.o
<command-line>: error: expected identifier or '(' before string constant
/Users/ces/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/esp_crt_bundle.c:25:20: note: in expansion of macro 'TAG'
 static const char *TAG = "esp-x509-crt-bundle";

Commenting the TAG definition resolve the bug.

Sketch

#include <Arduino.h>

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

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

Debug Message

compiling .pio/build/esp32dev/lib4be/WiFiClientSecure/ssl_client.cpp.o
<command-line>: error: expected identifier or '(' before string constant
/Users/ces/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/esp_crt_bundle.c:25:20: note: in expansion of macro 'TAG'
 static const char *TAG = "esp-x509-crt-bundle";


### Other Steps to Reproduce

_No response_

### I have checked existing issues, online documentation and the Troubleshooting Guide

- [X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDE: PlaformIO Issue relates to PlatformIO IDE Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants