Error using SDK 1.5

koltegirish97
Posts: 11
Joined: Fri Jul 31, 2015 2:12 pm

Error using SDK 1.5

Postby koltegirish97 » Thu Dec 03, 2015 9:11 pm

By compiling using sdk v1.5 i got following error.I think its makefile issue.Any idea how to resolve it?

mingw32-make.exe -f C:/Users/abc/worksorg/mesh/Makefile all
AR build/app_app.a
LD build/app.out
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x5c4): undefined reference to `user_init'
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function `user_rf_pre_init':
(.irom0.text+0x85a): undefined reference to `user_init'
c:/Espressif/ESP8266_SDK/lib\libwpa.a(wpa_auth.o): In function `wpa_receive':
(.irom0.text+0x9a0): undefined reference to `aes_wrap'
c:/Espressif/ESP8266_SDK/lib\libwpa.a(wpa_auth.o): In function `__wpa_send_eapol':
(.irom0.text+0xd73): undefined reference to `aes_wrap'
collect2.exe: error: ld returned 1 exit status
C:/Users/abc/worksorg/mesh/Makefile:187: recipe for target 'build/app.out' failed
mingw32-make.exe: *** [build/app.out] Error 1
Last edited by koltegirish97 on Fri Dec 04, 2015 4:54 pm, edited 1 time in total.

geo.espressif
Posts: 28
Joined: Tue Mar 31, 2015 7:27 pm

Re: Error using SDK 1.5

Postby geo.espressif » Thu Dec 03, 2015 9:48 pm

Are you linking against libcrypto?

-lcrypto

koltegirish97
Posts: 11
Joined: Fri Jul 31, 2015 2:12 pm

Re: Error using SDK 1.5

Postby koltegirish97 » Fri Dec 04, 2015 4:20 pm

You can find my makefile attached below.Still it shows following error after adding of -lcrypto

mingw32-make.exe -f C:/Users/abc/worksorg/meshnetwork/Makefile all
AR build/app_app.a
LD build/app.out
c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: cannot find -l-lcrypto
collect2.exe: error: ld returned 1 exit status
C:/Users/abc/worksorg/meshnetwork/Makefile:187: recipe for target 'build/app.out' failed
mingw32-make.exe: *** [build/app.out] Error 1
Attachments
makefile.rar
(2.63 KiB) Downloaded 695 times

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Error using SDK 1.5

Postby ESP_Faye » Fri Dec 04, 2015 4:34 pm

Hi,

Please try

Code: Select all

LIBS = c gcc hal phy pp net80211 lwip wpa pwm upgrade main ssl crypto


Thanks for your interest in ESP8266 !

koltegirish97
Posts: 11
Joined: Fri Jul 31, 2015 2:12 pm

Re: Error using SDK 1.5

Postby koltegirish97 » Fri Dec 04, 2015 4:52 pm

Now another error.Though I already included user_rf_pre_init.You can check my project given below

mingw32-make.exe -f C:/Users/abc/worksorg/meshnetwork/Makefile all
AR build/app_app.a
LD build/app.out
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x5c4): undefined reference to `user_init'
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function `user_rf_pre_init':
(.irom0.text+0x85a): undefined reference to `user_init'
collect2.exe: error: ld returned 1 exit status
C:/Users/abc/worksorg/meshnetwork/Makefile:187: recipe for target 'build/app.out' failed
mingw32-make.exe: *** [build/app.out] Error 1
Attachments
meshnetwork.rar
(12.2 KiB) Downloaded 594 times

koltegirish97
Posts: 11
Joined: Fri Jul 31, 2015 2:12 pm

Re: Error using SDK 1.5

Postby koltegirish97 » Mon Dec 07, 2015 8:42 pm

Hello Espressif_Faye ,
Can you please tell me the solution above problem.

Thanking you in advance.

koltegirish97
Posts: 11
Joined: Fri Jul 31, 2015 2:12 pm

Re: Error using SDK 1.5

Postby koltegirish97 » Wed Dec 16, 2015 5:17 pm

Hello Espressif_Faye,
Did you find the solution for the above problem.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Error using SDK 1.5

Postby ESP_Faye » Thu Dec 17, 2015 10:34 am

Hi,

Sorry that we can not duplicate your problem.

1. Maybe you are not using the ESP8266_NONOS_SDK_V1.5.0 ?
2. Or maybe it is a problem of your compile environment. Please have a try with our compile environment.

Who is online

Users browsing this forum: No registered users and 137 guests