Advertisement
Guest User

[net/tcp_common.o] Error 1

a guest
Nov 19th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.58 KB | None | 0 0
  1. Compiling net/tcp_common.c
  2. In file included from net/tcp_common.c:24:0:
  3. net/tcp_common.h:25:5: warning: redundant redeclaration of ‘tcp_connect_blocking’ [-Wredundant-decls]
  4. int tcp_connect_blocking(int s, const struct sockaddr *servaddr,
  5. ^~~~~~~~~~~~~~~~~~~~
  6. In file included from net/tcp_common.c:23:0:
  7. net/net_tcp.h:83:5: note: previous declaration of ‘tcp_connect_blocking’ was here
  8. int tcp_connect_blocking(int s, const struct sockaddr *servaddr,
  9. ^~~~~~~~~~~~~~~~~~~~
  10. In file included from net/tcp_common.c:24:0:
  11. net/tcp_common.h:29:5: warning: redundant redeclaration of ‘tcp_connect_blocking_timeout’ [-Wredundant-decls]
  12. int tcp_connect_blocking_timeout(int s, const struct sockaddr *servaddr,
  13. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. In file included from net/tcp_common.c:23:0:
  15. net/net_tcp.h:87:5: note: previous declaration of ‘tcp_connect_blocking_timeout’ was here
  16. int tcp_connect_blocking_timeout(int s, const struct sockaddr *servaddr,
  17. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. net/tcp_common.c: In function ‘tcp_sync_connect’:
  19. net/tcp_common.c:188:6: error: too many arguments to function ‘tcp_conn_create’
  20. con=tcp_conn_create(s, server, send_sock, S_CONN_OK, send2main);
  21. ^~~~~~~~~~~~~~~
  22. In file included from net/tcp_common.c:23:0:
  23. net/net_tcp.h:98:24: note: declared here
  24. struct tcp_connection* tcp_conn_create(int sock, union sockaddr_union* su,
  25. ^~~~~~~~~~~~~~~
  26. net/tcp_common.c: In function ‘tcp_async_connect’:
  27. net/tcp_common.c:323:6: error: too many arguments to function ‘tcp_conn_create’
  28. con=tcp_conn_create(fd, server, send_sock, S_CONN_CONNECTING, send2main);
  29. ^~~~~~~~~~~~~~~
  30. In file included from net/tcp_common.c:23:0:
  31. net/net_tcp.h:98:24: note: declared here
  32. struct tcp_connection* tcp_conn_create(int sock, union sockaddr_union* su,
  33. ^~~~~~~~~~~~~~~
  34. net/tcp_common.c:333:6: error: too many arguments to function ‘tcp_conn_create’
  35. con=tcp_conn_create(fd, server, send_sock, S_CONN_OK, send2main);
  36. ^~~~~~~~~~~~~~~
  37. In file included from net/tcp_common.c:23:0:
  38. net/net_tcp.h:98:24: note: declared here
  39. struct tcp_connection* tcp_conn_create(int sock, union sockaddr_union* su,
  40. ^~~~~~~~~~~~~~~
  41. In file included from net/../ip_addr.h:46:0,
  42. from net/../reactor_defs.h:39,
  43. from net/tcp_common.c:22:
  44. net/tcp_common.c: In function ‘tcp_async_write’:
  45. net/tcp_common.c:356:10: error: dereferencing pointer to incomplete type ‘struct tcp_async_chunk’
  46. chunk->len, chunk, con, chunk->ticks, get_ticks());
  47. ^
  48. net/../dprint.h:315:33: note: in definition of macro ‘MY_DPRINT’
  49. dp_my_pid(), __DP_FUNC, ## args) \
  50. ^~~~
  51. net/tcp_common.c:355:3: note: in expansion of macro ‘LM_DBG’
  52. LM_DBG("Trying to send %d bytes from chunk %p in conn %p - %d %d \n",
  53. ^~~~~~
  54. net/tcp_common.c: In function ‘tcp_write_on_socket’:
  55. net/tcp_common.c:459:7: error: ‘struct tcp_connection’ has no member named ‘async’
  56. if (c->async) {
  57. ^~
  58. net/tcp_common.c:464:8: error: ‘struct tcp_connection’ has no member named ‘async’
  59. if (c->async->pending)
  60. ^~
  61. In file included from net/../net/../lock_alloc.h:55:0,
  62. from net/../net/../locking.h:66,
  63. from net/../net/tcp_conn_defs.h:39,
  64. from net/../net/api_proto_net.h:29,
  65. from net/../net/trans.h:31,
  66. from net/../socket_info.h:37,
  67. from net/../pt_scaling.h:31,
  68. from net/../pt.h:38,
  69. from net/../io_wait.h:91,
  70. from net/../reactor_defs.h:40,
  71. from net/tcp_common.c:22:
  72. net/tcp_common.c: In function ‘tcp_async_add_chunk’:
  73. net/tcp_common.c:487:24: error: invalid application of ‘sizeof’ to incomplete type ‘struct tcp_async_chunk’
  74. c = shm_malloc(sizeof(struct tcp_async_chunk) + len);
  75. ^
  76. net/../net/../mem/shm_mem.h:493:42: note: in definition of macro ‘shm_malloc’
  77. #define shm_malloc( _size ) _shm_malloc((_size), \
  78. ^~~~~
  79. net/tcp_common.c:495:2: error: invalid use of undefined type ‘struct tcp_async_chunk’
  80. c->buf = (char *)(c+1);
  81. ^
  82. net/tcp_common.c:501:9: error: ‘struct tcp_connection’ has no member named ‘async’
  83. if (con->async->allocated == con->async->pending) {
  84. ^~
  85. net/tcp_common.c:501:34: error: ‘struct tcp_connection’ has no member named ‘async’
  86. if (con->async->allocated == con->async->pending) {
  87. ^~
  88. In file included from net/../ip_addr.h:46:0,
  89. from net/../reactor_defs.h:39,
  90. from net/tcp_common.c:22:
  91. net/tcp_common.c:503:8: error: ‘struct tcp_connection’ has no member named ‘async’
  92. con->async->pending);
  93. ^
  94. net/../dprint.h:315:33: note: in definition of macro ‘MY_DPRINT’
  95. dp_my_pid(), __DP_FUNC, ## args) \
  96. ^~~~
  97. net/tcp_common.c:502:3: note: in expansion of macro ‘LM_ERR’
  98. LM_ERR("We have reached the limit of max async postponed chunks %d\n",
  99. ^~~~~~
  100. net/tcp_common.c:503:8: error: ‘struct tcp_connection’ has no member named ‘async’
  101. con->async->pending);
  102. ^
  103. net/../dprint.h:319:46: note: in definition of macro ‘MY_SYSLOG’
  104. _prefix LOG_PREFIX _fmt, __DP_FUNC, ##args);\
  105. ^~~~
  106. net/tcp_common.c:502:3: note: in expansion of macro ‘LM_ERR’
  107. LM_ERR("We have reached the limit of max async postponed chunks %d\n",
  108. ^~~~~~
  109. net/tcp_common.c:510:5: error: ‘struct tcp_connection’ has no member named ‘async’
  110. con->async->chunks[con->async->pending++] = c;
  111. ^~
  112. net/tcp_common.c:510:24: error: ‘struct tcp_connection’ has no member named ‘async’
  113. con->async->chunks[con->async->pending++] = c;
  114. ^~
  115. net/tcp_common.c:511:9: error: ‘struct tcp_connection’ has no member named ‘async’
  116. if (con->async->pending == 1)
  117. ^~
  118. net/tcp_common.c:512:6: error: ‘struct tcp_connection’ has no member named ‘async’
  119. con->async->oldest = c->ticks;
  120. ^~
  121. net/tcp_common.c: In function ‘tcp_async_get_chunk’:
  122. net/tcp_common.c:523:9: error: ‘struct tcp_connection’ has no member named ‘async’
  123. if (con->async->pending == 0)
  124. ^~
  125. net/tcp_common.c:525:12: error: ‘struct tcp_connection’ has no member named ‘async’
  126. return con->async->chunks[0];
  127. ^~
  128. net/tcp_common.c: In function ‘tcp_async_update_write’:
  129. net/tcp_common.c:534:14: error: ‘struct tcp_connection’ has no member named ‘async’
  130. chunk = con->async->chunks[i];
  131. ^~
  132. net/tcp_common.c:546:5: error: ‘struct tcp_connection’ has no member named ‘async’
  133. con->async->pending -= i;
  134. ^~
  135. In file included from net/../net/../lock_alloc.h:55:0,
  136. from net/../net/../locking.h:66,
  137. from net/../net/tcp_conn_defs.h:39,
  138. from net/../net/api_proto_net.h:29,
  139. from net/../net/trans.h:31,
  140. from net/../socket_info.h:37,
  141. from net/../pt_scaling.h:31,
  142. from net/../pt.h:38,
  143. from net/../io_wait.h:91,
  144. from net/../reactor_defs.h:40,
  145. from net/tcp_common.c:22:
  146. net/tcp_common.c:548:15: error: ‘struct tcp_connection’ has no member named ‘async’
  147. shm_free(con->async->chunks[c]);
  148. ^
  149. net/../net/../mem/shm_mem.h:513:38: note: in definition of macro ‘shm_free’
  150. #define shm_free( _ptr ) _shm_free( (_ptr), \
  151. ^~~~
  152. net/tcp_common.c:549:9: error: ‘struct tcp_connection’ has no member named ‘async’
  153. if (con->async->pending) {
  154. ^~
  155. In file included from net/../ip_addr.h:46:0,
  156. from net/../reactor_defs.h:39,
  157. from net/tcp_common.c:22:
  158. net/tcp_common.c:551:8: error: ‘struct tcp_connection’ has no member named ‘async’
  159. con->async->pending, con);
  160. ^
  161. net/../dprint.h:315:33: note: in definition of macro ‘MY_DPRINT’
  162. dp_my_pid(), __DP_FUNC, ## args) \
  163. ^~~~
  164. net/tcp_common.c:550:3: note: in expansion of macro ‘LM_DBG’
  165. LM_DBG("We still have %d chunks pending on %p\n",
  166. ^~~~~~
  167. net/tcp_common.c:551:8: error: ‘struct tcp_connection’ has no member named ‘async’
  168. con->async->pending, con);
  169. ^
  170. net/../dprint.h:319:46: note: in definition of macro ‘MY_SYSLOG’
  171. _prefix LOG_PREFIX _fmt, __DP_FUNC, ##args);\
  172. ^~~~
  173. net/tcp_common.c:550:3: note: in expansion of macro ‘LM_DBG’
  174. LM_DBG("We still have %d chunks pending on %p\n",
  175. ^~~~~~
  176. net/tcp_common.c:552:14: error: ‘struct tcp_connection’ has no member named ‘async’
  177. memmove(con->async->chunks, con->async->chunks + i,
  178. ^~
  179. net/tcp_common.c:552:34: error: ‘struct tcp_connection’ has no member named ‘async’
  180. memmove(con->async->chunks, con->async->chunks + i,
  181. ^~
  182. net/tcp_common.c:553:8: error: ‘struct tcp_connection’ has no member named ‘async’
  183. con->async->pending * sizeof(struct tcp_async_chunk *));
  184. ^~
  185. net/tcp_common.c:554:6: error: ‘struct tcp_connection’ has no member named ‘async’
  186. con->async->oldest = con->async->chunks[0]->ticks;
  187. ^~
  188. net/tcp_common.c:554:27: error: ‘struct tcp_connection’ has no member named ‘async’
  189. con->async->oldest = con->async->chunks[0]->ticks;
  190. ^~
  191. net/tcp_common.c:557:6: error: ‘struct tcp_connection’ has no member named ‘async’
  192. con->async->oldest = 0;
  193. ^~
  194. net/tcp_common.c: In function ‘tcp_async_get_chunk’:
  195. net/tcp_common.c:526:1: warning: control reaches end of non-void function [-Wreturn-type]
  196. }
  197. ^
  198. Makefile.rules:25: recipe for target 'net/tcp_common.o' failed
  199. make[1]: *** [net/tcp_common.o] Error 1
  200. make[1]: Leaving directory '/usr/src/opensips-3.0.4'
  201.  
  202.  
  203. Press any key to return to menuconfig
  204.  
  205.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement