Skip to content

compile error of smartconfig(2.5.0 dev) #5446

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

Closed
5 of 6 tasks
i3water opened this issue Dec 7, 2018 · 3 comments
Closed
5 of 6 tasks

compile error of smartconfig(2.5.0 dev) #5446

i3water opened this issue Dec 7, 2018 · 3 comments

Comments

@i3water
Copy link
Contributor

i3water commented Dec 7, 2018

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [WiFiduino (ESP-12)]
  • Core Version: 8b3f496
  • Development Env: [Arduino IDE 1.8.8]
  • Operating System: [Windows]

Settings in IDE

  • Module: [WiFiduino]
  • Flash Mode: [dio]
  • Flash Size: [4MB-3MBSPIFFS]
  • lwip Variant: [v2 Lower Memory]
  • Reset Method: [ck|nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200] (serial upload only)

Problem Description

can not compile with smartconfig. latest three day, i had test with the latest git version every day, but all con`t compile.the package i download at 27 november can compile smartconfig codes.

MCVE Sketch

#include <ESP8266WiFi.h>
#define LED 2
 
void smartConfig()
{
  WiFi.mode(WIFI_STA);
  Serial.println("\r\nWait for Smartconfig");
  WiFi.beginSmartConfig();
  while (1)
  {
    Serial.print(".");
    digitalWrite(LED, 0);
    delay(500);
    digitalWrite(LED, 1);
    delay(500);
    if (WiFi.smartConfigDone())
    {
      Serial.println("SmartConfig Success");
      Serial.printf("SSID:%s\r\n", WiFi.SSID().c_str());
      Serial.printf("PSW:%s\r\n", WiFi.psk().c_str());
      break;
    }
  }
}
 
void setup()
{
  Serial.begin(115200);
  Serial.println("Start module");
  pinMode(LED, OUTPUT);
  digitalWrite(LED, 0);
  smartConfig();
}
 
void loop()
{
  delay(100);
  Serial.println("Start module");
}

Debug Messages

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_sniffer.o):(.text.smartconfig_stop+0x2c): undefined reference to `espconn_delete'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_sniffer.o):(.text.smartconfig_stop+0x61): undefined reference to `espconn_delete'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_sniffer.o): in function `smartconfig_stop':

(.text.smartconfig_stop+0x104): undefined reference to `espconn_delete'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Send_udp+0x8): undefined reference to `espconn_sent'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Send_udp+0x79): undefined reference to `espconn_sent'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Udp_send_cb+0x3a): undefined reference to `espconn_delete'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Answer+0x14): undefined reference to `espconn_port'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Answer+0x18): undefined reference to `espconn_regist_sentcb'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Answer+0x1c): undefined reference to `espconn_create'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Answer+0x7d): undefined reference to `espconn_port'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Answer+0xa8): undefined reference to `espconn_regist_sentcb'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_airkiss.o):(.text.KISS_Answer+0xb0): undefined reference to `espconn_create'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_esptouch.o):(.text.TOUCH_Send_platform+0x85): undefined reference to `espconn_sent'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_esptouch.o):(.text.TOUCH_udp_send_cb+0x6a): undefined reference to `espconn_delete'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_esptouch.o):(.text.TOUCH_Send_ACK+0x14): undefined reference to `espconn_regist_recvcb'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_esptouch.o):(.text.TOUCH_Send_ACK+0x52): undefined reference to `espconn_port'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_esptouch.o):(.text.TOUCH_Send_ACK+0x7d): undefined reference to `espconn_regist_sentcb'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_esptouch.o):(.text.TOUCH_Send_ACK+0x89): undefined reference to `espconn_regist_recvcb'

c:/users/12102/documents/arduino/hardware/esp8266/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\12102\Documents\Arduino\hardware\esp8266\esp8266/tools/sdk/lib\libsmartconfig.a(sc_esptouch.o):(.text.TOUCH_Send_ACK+0x92): undefined reference to `espconn_create'

collect2.exe: error: ld returned 1 exit status
@i3water i3water changed the title compile error of smartconfig compile error of smartconfig(2.5.0 dev) Dec 7, 2018
@earlephilhower
Copy link
Collaborator

Looks to be defined in liblwip_gcc.a

~/Arduino/hardware/esp8266com/esp8266/tools/sdk/lib$ nm liblwip_gcc.a  | grep espconn_create
00000340 T espconn_create

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 7, 2018

#5444

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 8, 2018

Closed by #5444

@d-a-v d-a-v closed this as completed Dec 8, 2018
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

3 participants