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

Compiling HTTPSRequest Example Error #824

Closed
jareklupinski opened this issue Sep 27, 2015 · 4 comments
Closed

Compiling HTTPSRequest Example Error #824

jareklupinski opened this issue Sep 27, 2015 · 4 comments

Comments

@jareklupinski
Copy link

I'm not sure if the issue is with the method I used, or the library itself, but here is what I did:

  1. Downloaded Arduino 1.6.5r5 from Arduino.cc and installed
  2. Added ESP8266 Staging version to Arduino board manager and installed ESP8266 core using Board manager
  3. Closed Arduino IDE
  4. Downloaded this repo as a zip and unzipped contents of Arduino-esp8266.zip\Arduino-esp8266\hardware\esp8266com\esp8266\libraries\ESP8266WiFi into C:\Users\jarek\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1106-g8253b82\libraries\ESP8266WiFi
  5. Opened Arduino IDE and opened HTTPSRequest Example and hit compile

The output I got was:

C:\Users\jarek\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1106-g8253b82\cores\esp8266\libc_replacements.c:408:22: warning: 'struct tm' declared inside parameter list [enabled by default]
time_t mktime(struct tm *timp) {
^
C:\Users\jarek\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1106-g8253b82\cores\esp8266\libc_replacements.c:408:22: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
ESP8266WiFi\WiFiClientSecure.cpp.o: In function WiFiClientSecure::operator=(WiFiClientSecure const&)': C:\Users\jarek\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1106-g8253b82\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp:186: undefined reference tossl_match_fingerprint'
ESP8266WiFi\WiFiClientSecure.cpp.o: In function cbuf': C:\Users\jarek\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1106-g8253b82\cores\esp8266/cbuf.h:28: undefined reference tossl_match_fingerprint'
collect2.exe: error: ld returned 1 exit status
Error compiling.

I tried cloning the git and building it myself but got even more errors that way (4 errors in build.xml, all related to windows-specific build variables).

@jareklupinski
Copy link
Author

untitled
P.S. for some reason immediately before the ssl_match_fingerprint text in the error message above, there are these things ` instead of ' quotes. Not sure why. It's messing up the text though.

@igrr
Copy link
Member

igrr commented Sep 28, 2015

Duplicate of #740.

@igrr igrr closed this as completed Sep 28, 2015
@igrr igrr reopened this Sep 28, 2015
@igrr
Copy link
Member

igrr commented Sep 28, 2015

Oh, sorry, i didn't notice the part with undefined reference tossl_match_fingerprint.
Apparently you didn't upgrade your copy of libaxtls.a. It's not part of ESP8266WiFi library, you have too look for it inside hardware/esp8266com/esp8266/tools/sdk/lib/libaxtls.a.

@igrr igrr closed this as completed Sep 28, 2015
@jareklupinski
Copy link
Author

Thank you! That did it :) I copied the newer libaxtls.a file from the zip and replaced the one at the path you mentioned. Working great now, thanks!

@ghost ghost mentioned this issue Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants