This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Failed compiling LWIP_SOCKET

Hi All,

I'm new to using TI starterware. Trying to build enet_lwip examples using CCS 5.5.0.00077.

If I defined LWIP_SOCKET=0 (lwipopts.h) and compiling. I will get enetLwip.out.

If I defined LWIP_SOCKET=1 (lwipopts.h) and compiling. I will get a lot of error message below.

Does anybody have an idea about "LWIP_SOCKET" ?

thanks.

From Will Hsu

Error message:

**** Build of configuration Release for project enetLwip ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k -j 4 -s all
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/evmskAM335x/enet_lwip/enetLwip.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/apps/httpserver_raw/httpd.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/ports/cpsw/lwiplib.c'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
"C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/apps/httpserver_raw/httpd.c", line 181: warning: controlling expression is constant
"C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/apps/httpserver_raw/httpd.c", line 201: warning: controlling expression is constant
"C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/apps/httpserver_raw/httpd.c", line 274: warning: controlling expression is constant
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 137: error: identifier "ENOMEM" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 138: error: identifier "ENOBUFS" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 139: error: identifier "EWOULDBLOCK" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 140: error: identifier "EHOSTUNREACH" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 141: error: identifier "EINPROGRESS" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 142: error: identifier "EINVAL" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 144: error: identifier "EADDRINUSE" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 145: error: identifier "EALREADY" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 146: error: identifier "ECONNABORTED" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 147: error: identifier "ECONNRESET" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 148: error: identifier "ENOTCONN" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 150: error: identifier "EIO" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 175: warning: declaration is not visible outside of function
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 262: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 262: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 300: warning: function "netbuf_delete" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 329: warning: function "netconn_is_nonblocking" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 336: warning: function "netconn_accept" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 344: warning: function "netconn_set_noautorecved" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 347: warning: function "netconn_peer" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 350: warning: function "netconn_delete" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 374: warning: function "netconn_delete" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 375: error: identifier "ENFILE" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 379: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 388: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 389: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 427: warning: function "netconn_bind" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 454: warning: function "netconn_type" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 454: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 459: warning: function "netconn_delete" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 486: warning: function "netconn_disconnect" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 498: warning: function "netconn_connect" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 536: warning: function "netconn_listen_with_backlog" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 575: warning: function "netconn_is_nonblocking" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 579: warning: function "netconn_recved" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 591: warning: function "netconn_type" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 591: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 592: warning: function "netconn_recv_tcp_pbuf" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 594: warning: function "netconn_recv" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 602: warning: function "netconn_recved" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 621: warning: function "netconn_type" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 621: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 624: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 665: warning: function "netconn_getaddr" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 667: warning: function "netbuf_fromaddr" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 667: warning: a value of type "int" cannot be assigned to an entity of type "ip_addr_t *"
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 668: warning: function "netbuf_fromport" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 719: warning: function "netbuf_delete" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 727: warning: function "netconn_recved" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 760: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 760: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 769: warning: function "netconn_is_nonblocking" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 772: error: identifier "EMSGSIZE" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 777: error: identifier "NETCONN_COPY" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 778: error: identifier "NETCONN_MORE" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 779: error: identifier "NETCONN_DONTBLOCK" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 780: warning: function "netconn_write" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 797: error: incomplete type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 805: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 805: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 890: warning: function "netbuf_fromport" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 890: error: expression must be a modifiable lvalue
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 894: warning: function "netbuf_fromport" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 894: error: expression must be a modifiable lvalue
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 920: warning: function "netbuf_ref" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 924: warning: function "netconn_send" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 928: warning: function "netbuf_free" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 945: warning: function "netconn_new_with_proto_and_callback" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 945: error: identifier "NETCONN_RAW" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 945: warning: a value of type "int" cannot be assigned to an entity of type "struct netconn *"
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 950: warning: function "netconn_new_with_callback" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 951: error: identifier "NETCONN_UDPLITE" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 951: error: identifier "NETCONN_UDP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 950: warning: a value of type "int" cannot be assigned to an entity of type "struct netconn *"
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 956: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 956: warning: a value of type "int" cannot be assigned to an entity of type "struct netconn *"
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 961: warning: function "netconn_set_noautorecved" declared implicitly
'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/examples/evmskAM335x/enet_lwip/enetLwip.c'
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 980: warning: function "netconn_delete" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 984: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1168: error: expected an expression
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1200: error: identifier "SYS_ARCH_TIMEOUT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1234: warning: declaration is not visible outside of function
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1234: error: declaration is incompatible with "void event_callback(struct netconn *, enum netconn_evt, u16_t)" (declared at line 175)
' '
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1234: error: incomplete type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1246: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1254: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1255: error: identifier "NETCONN_EVT_RCVPLUS" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1256: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1261: error: pointer to incomplete class type is not allowed
'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/apps/httpserver_raw/httpd.c'
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1276: error: identifier "NETCONN_EVT_RCVPLUS" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1279: error: identifier "NETCONN_EVT_RCVMINUS" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1282: error: identifier "NETCONN_EVT_SENDPLUS" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1285: error: identifier "NETCONN_EVT_SENDMINUS" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1288: error: identifier "NETCONN_EVT_ERROR" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1368: warning: function "netconn_type" declared implicitly
' '
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1368: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1369: error: identifier "EOPNOTSUPP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1370: error: identifier "EOPNOTSUPP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1388: warning: function "netconn_shutdown" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1411: warning: function "netconn_getaddr" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1453: error: identifier "EFAULT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1498: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1498: error: identifier "NETCONN_UDP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1499: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1501: error: identifier "EAFNOSUPPORT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1509: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1549: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1562: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1562: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1578: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1611: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1630: warning: function "tcpip_callback" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1679: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1685: warning: function "NETCONNTYPE_GROUP" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1685: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1686: error: identifier "NETCONN_RAW" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1689: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1692: error: identifier "NETCONN_UDP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1696: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1708: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1708: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1728: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1741: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1746: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1782: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1787: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1854: error: identifier "EFAULT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1895: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1895: error: identifier "NETCONN_UDP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1896: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1898: error: identifier "EAFNOSUPPORT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1905: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1959: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1972: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1972: error: identifier "NETCONN_TCP" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1988: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2020: error: identifier "ENOPROTOOPT" is undefined
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2040: warning: function "tcpip_callback" declared implicitly
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2089: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2091: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2109: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2109: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2111: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2111: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2125: error: pointer to incomplete class type is not allowed
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2130: error: pointer to incomplete class type is not allowed

"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2180: error: pointer to incomplete class type is not allowed
>> Compilation failure
"../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2182: error: pointer to incomplete class type is not allowed
Error limit reached.
100 errors detected in the compilation of "C:/ti/AM335X_StarterWare_02_00_01_01/third_party/lwip-1.4.0/ports/cpsw/lwiplib.c".
Compilation terminated.
gmake: *** [lwiplib.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****