Hi Kaleb,
Making changes for some of pre-processor I am able to build libwolfssl.la file.
But when I run command make install libwolfssl.lib I am getting following error:
`pvPortMallocinternal.c:'
(.keys.c:text+(.0x1808)text+: 0x362)undefined : reference undefined to reference `vPortFreeto '
`pvPortMallocsrc/'
.libskeys.c:/libwolfssl.a(.(src_libwolfssl_latext+-internal.o0x378)):: Inundefined functionreference `to FreeX509Name'`pvPortMalloc:
'
internal.c:keys.c:(.(.text+text+0x18d8)0x38a): : undefined undefined reference reference to to `vPortFree`pvPortMalloc'
'
src/keys.c:.libs(./libwolfssl.atext+(src_libwolfssl_la0x39c)-internal.o: ):undefined Inreference functionto ``pvPortMallocFreeX509''
:
src/internal.c:.libs(./libwolfssl.atext+(src_libwolfssl_la0x1966)-keys.o: ):undefined keys.c:reference (.to text+`vPortFree0x3ae)'
: src/more .libsundefined /libwolfssl.areferences (src_libwolfssl_lato -internal.o`pvPortMalloc):' internal.c:follow
(.text+0x1fbc): more undefined references to `vPortFree' follow
src/.libs/libwolfssl.a(src_libwolfssl_lacollect2: error: ld returned 1 exit status
-io.o): In function `EmbedReceive':
io.c:(.text+0xa): undefined reference to `lwip_recv'
src/.libs/libwolfssl.a(src_libwolfssl_la-io.o): In function `EmbedSend':
io.c:(.text+0x7a): undefined reference to `lwip_send'
src/.libs/libwolfssl.a(src_libwolfssl_la-keys.o): In function `SetKeysSide':
keys.c:(.text+0x34e): undefined reference to `pvPortMalloc'
keys.c:(.text+0x362): undefined reference to `pvPortMalloc'
keys.c:(.text+0x378): undefined reference to `pvPortMalloc'
keys.c:(.text+0x38a): undefined reference to `pvPortMalloc'
keys.c:(.text+0x39c): undefined reference to `pvPortMalloc'
src/.libs/libwolfssl.a(src_libwolfssl_la-keys.o):keys.c:(.text+0x3ae): more undefined references to `pvPortMalloc' follow
collect2: error: ld returned 1 exit status
make[1]: *** [wolfcrypt/test/testwolfcrypt] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [wolfcrypt/benchmark/benchmark] Error 1
make[1]: Leaving directory `/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6'
make: *** [install] Error 2
I am not able to link .la file directly into CCS. Due to following error:
<Linking>
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 1: error #19027-D: invalid directive libwolfssl - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 2: error #19027-D: invalid directive Generated - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 4: error #19027-D: invalid directive Please - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 5: error #19027-D: invalid directive It - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 7: error #19027-D: invalid directive The - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 8: error #10045-D: illegal input character: "'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 10: error #19027-D: invalid directive Names - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 11: error #10045-D: illegal input character: "'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 13: error #19027-D: invalid directive The - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 14: error #10045-D: illegal input character: "'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 16: error #19027-D: invalid directive Linker - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 17: error #10045-D: illegal input character: "'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 19: error #19027-D: invalid directive Libraries - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 20: error #10045-D: illegal input character: "'"
error #10008-D: cannot find file "c"
error #10008-D: cannot find file "rdimon"
error #10008-D: cannot find file "m'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 22: error #19027-D: invalid directive Names - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 23: error #10045-D: illegal input character: "'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 25: error #19027-D: invalid directive Version - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 27: error #10043-D: expecting "";"" instead of "age"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 28: error #10043-D: expecting "";"" instead of "revision"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 30: error #19027-D: invalid directive Is - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 33: error #19027-D: invalid directive Should - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 36: error #19027-D: invalid directive Files - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 37: error #10045-D: illegal input character: "'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 38: error #10045-D: illegal input character: "'"
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 40: error #19027-D: invalid directive Directory - ignored
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 41: error #10045-D: illegal input character: "'"
undefined first referenced
symbol in file
--------- ----------------
wolfSSL_CTX_new ./eth_socket.obj
wolfSSL_Init ./eth_socket.obj
wolfSSL_free ./eth_socket.obj
wolfSSL_new ./eth_socket.obj
wolfSSL_read ./eth_socket.obj
wolfSSL_set_fd ./eth_socket.obj
wolfTLSv1_2_client_method ./eth_socket.obj
error #10234-D: unresolved symbols remain
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 31: error #10104: undefined symbol "no" used in expression
"/media/bhavesh/F4F24186F2414DD4/tiNew/wolfssl-3.6.6/src/libwolfssl.la", line 34: error #10104: undefined symbol "no" used in expression
error #10010: errors encountered during linking; "Test_Project.out" not built
>> Compilation failure
gmake: *** [Test_Project.out] Error 1
gmake: Target `all' not remade because of errors.
So wolfssl.a file is required for linking.
Can you help me to sort out make install issue.
Attaching .la file if that can be helpful.
Thanks,
Bhavesh