• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

building error in supplied library

Q&A Forum › Category: ESP32 › building error in supplied library
0 Vote Up Vote Down
Enrico asked 2 years ago

Hi,
compiling the WebServers that use WebSockets (e.g. 2_3_Outputs_Websockets) for the esp32-c3-devkitc-02 board I’m getting following error:
 
/home/service/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pio/build/esp32-c3-devkitc-02/libedd/libESP Async WebServer.a(AsyncWebSocket.cpp.o): in function `String::operator+=(char const*)’:
/home/service/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.h:140: undefined reference to `SHA1Init’
/home/service/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pio/build/esp32-c3-devkitc-02/libedd/libESP Async WebServer.a(AsyncWebSocket.cpp.o): in function `String::buffer() const’:
/home/service/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.h:339: undefined reference to `SHA1Update’
/home/service/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pio/build/esp32-c3-devkitc-02/libedd/libESP Async WebServer.a(AsyncWebSocket.cpp.o): in function `AsyncWebSocketResponse::AsyncWebSocketResponse(String const&, AsyncWebSocket*)’:
/home/service/Documents/ESP Web Server Course/Module 3 Web Servers/2_4_Outputs_Slider_PWM_WebSockets/.pio/libdeps/esp32-c3-devkitc-02/ESP Async WebServer/src/AsyncWebSocket.cpp:1271: undefined reference to `SHA1Final’
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32-c3-devkitc-02/firmware.elf] Error 1
 
Is there a workaround to fix the problem?
Many thanks!
Regards,
Enrico

Question Tags: ESP32-C3 WebSockets
1 Answers
0 Vote Up Vote Down
Enrico answered 2 years ago

Maybe is this the solution?
https://github.com/me-no-dev/ESPAsyncWebServer/pull/999/commits/8a43124ee8dead6298821c0e0fe67ebc98cfae8d
Regards,
Enrico

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.