facing problem with HTTP
Answer
2/7/19 10:50 AM

I am getting the following error, Please assist me in this.

Thank you

 

 

 

 

 

 

C:/Users/INM1KOR/XDK-Workspace/http_testing
Building file C:/Users/INM1KOR/XDK-Workspace/http_testing/source/AppController.c
C:/Users/INM1KOR/XDK-Workspace/http_testing/source/AppController.c: In function 'onHTTPRequestSent':
C:/Users/INM1KOR/XDK-Workspace/http_testing/source/AppController.c:98:1: warning: no return statement in function returning non-void [-Wreturn-type]
Creating .out C:/Users/INM1KOR/XDK-Workspace/http_testing/debug/http_testing.out
./../Libraries/ServalStack/debug/libServalStack_efm32_debug.a(HttpClient.o): In function `openTcpConnection':
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Http/HttpClient.c:236: undefined reference to `Tcp_connectSecure'
./../Libraries/ServalStack/debug/libServalStack_efm32_debug.a(HttpClient.o): In function `doReceive':
application.mk:372: recipe for target 'C:/Users/INM1KOR/XDK-Workspace/http_testing/debug/http_testing.out' failed
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Http/HttpClient.c:541: undefined reference to `Tls_getSocketStatus'
mingw32-make[1]: Leaving directory 'C:/XDK-Workbench/XDK/SDK/xdk110/Common'
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Http/HttpClient.c:552: undefined reference to `Tls_receive'
./../Libraries/ServalStack/debug/libServalStack_efm32_debug.a(HttpPool.o): In function `HttpPool_close':
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Http/HttpPool.c:231: undefined reference to `Tls_close'
./../Libraries/ServalStack/debug/libServalStack_efm32_debug.a(HttpPool.o): In function `HttpPool_delete':
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Http/HttpPool.c:299: undefined reference to `Tls_delete'
./../Libraries/ServalStack/debug/libServalStack_efm32_debug.a(HttpPool.o): In function `HttpPool_subMonitorFunc':
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Http/HttpPool.c:451: undefined reference to `Tls_close'
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Http/HttpPool.c:477: undefined reference to `Tls_delete'
./../Libraries/ServalStack/debug/libServalStack_efm32_debug.a(TcpMsg.o): In function `sendViaTcp':
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Msg/TcpMsg.c:299: undefined reference to `Tls_prepareForSending'
Makefile:35: recipe for target 'debug' failed
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Msg/TcpMsg.c:337: undefined reference to `Tls_send'
C:\XDK-Workbench\XDK\SDK\xdk110\Libraries\ServalStack/3rd-party/ServalStack/src/Msg/TcpMsg.c:350: undefined reference to `Tls_retrySendingLater'
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [C:/Users/INM1KOR/XDK-Workspace/http_testing/debug/http_testing.out] Error 1
mingw32-make: *** [debug] Error 2
 

 

 

 

0 (0 Votes)
RE: facing problem with HTTP
Answer
2/7/19 4:47 PM as a reply to AnanthaChakravarthi Immadi.
Hello Immadi,

It seems your project has undefined references in regards to TCP and TLS implementations.
Did you check if you have the includes for the respective libraries? Did you alter the libraries as the ServalStack libraries also are missing defines?
If the includes are correct did you try to clean and rebuild your indexer and project?

In case your issue was not either of those I would kindly ask you to provide me with your application code along with, if present, the changes were done to libraries in question.

Kind regards,
Franjo
0 (0 Votes)
RE: facing problem with HTTP
Answer
2/7/19 4:52 PM as a reply to Franjo Stjepandic.

Hello Franjo,

Thank you for the reply,

I have done no changes to the libraries or the code. I have taken the example program of Http(HttpExampleClient) and copied the source files to the XDKApplicationTemplate.

 

0 (0 Votes)
RE: facing problem with HTTP
Answer
2/8/19 1:32 PM as a reply to AnanthaChakravarthi Immadi.
Hello Immadi,

have you tried the steps I mentioned before?

To make this clear, you took the AppController.c and AppController.h files from the HttpExampleClient and copied them into the XdkApplicationTemplate example?
If you did, then please note you do also need to copy the configurations made in the makefile of the HttpExampleClient to the makefile of the XdkApplicationTemplate . Copy especially the configurations, which enable implementations in the ServalStack library.

If you have any questions, feel free to ask.

Kind regards,
Franjo
0 (0 Votes)
RE: facing problem with HTTP
Answer
2/9/19 4:58 AM as a reply to Franjo Stjepandic.
My problem was resolved when i changed my WB version to 3.4. 
0 (0 Votes)