Advertisement
dtorkin

Untitled

Apr 8th, 2025
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.80 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/v0_12$ make
  2. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o svm/svm_main.o svm/svm_main.c
  3. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o svm/svm_handlers.o svm/svm_handlers.c
  4. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o svm/svm_timers.o svm/svm_timers.c
  5. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o protocol/message_utils.o protocol/message_utils.c
  6. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o protocol/message_builder.o protocol/message_builder.c
  7. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o io/io_common.o io/io_common.c
  8. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o io/io_ethernet.o io/io_ethernet.c
  9. io/io_ethernet.c: In function ‘create_ethernet_interface’:
  10. io/io_ethernet.c:49:16: error: ‘EthernetConfig’ has no member named ‘base’
  11. 49 | config_copy->base.type = IO_TYPE_ETHERNET; // Устанавливаем тип в копии
  12. | ^~
  13. io/io_ethernet.c:49:30: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
  14. 49 | config_copy->base.type = IO_TYPE_ETHERNET; // Устанавливаем тип в копии
  15. | ^~~~~~~~~~~~~~~~
  16. io/io_ethernet.c:49:30: note: each undeclared identifier is reported only once for each function it appears in
  17. io/io_ethernet.c:52:14: error: ‘IOInterface’ has no member named ‘type’
  18. 52 | interface->type = IO_TYPE_ETHERNET;
  19. | ^~
  20. io/io_ethernet.c:54:16: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  21. 54 | interface->io_handle = -1; // Дескриптор пока не создан
  22. | ^~~~~~~~~
  23. | handle
  24. io/io_ethernet.c:55:14: error: ‘IOInterface’ has no member named ‘internal_data’
  25. 55 | interface->internal_data = NULL; // Для Ethernet пока не нужно
  26. | ^~
  27. io/io_ethernet.c:58:14: error: ‘IOInterface’ has no member named ‘connect’
  28. 58 | interface->connect = ethernet_connect;
  29. | ^~
  30. io/io_ethernet.c:59:14: error: ‘IOInterface’ has no member named ‘listen’
  31. 59 | interface->listen = ethernet_listen;
  32. | ^~
  33. io/io_ethernet.c:60:14: error: ‘IOInterface’ has no member named ‘accept’
  34. 60 | interface->accept = ethernet_accept;
  35. | ^~
  36. io/io_ethernet.c:61:14: error: ‘IOInterface’ has no member named ‘disconnect’
  37. 61 | interface->disconnect = ethernet_disconnect;
  38. | ^~
  39. io/io_ethernet.c: In function ‘ethernet_connect’:
  40. io/io_ethernet.c:72:22: error: ‘IOInterface’ has no member named ‘type’
  41. 72 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
  42. | ^~
  43. io/io_ethernet.c:72:32: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
  44. 72 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
  45. | ^~~~~~~~~~~~~~~~
  46. io/io_ethernet.c:77:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  47. 77 | if (self->io_handle != -1) {
  48. | ^~~~~~~~~
  49. | handle
  50. io/io_ethernet.c:78:41: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  51. 78 | ethernet_disconnect(self, self->io_handle);
  52. | ^~~~~~~~~
  53. | handle
  54. io/io_ethernet.c:79:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  55. 79 | self->io_handle = -1;
  56. | ^~~~~~~~~
  57. | handle
  58. io/io_ethernet.c:86:11: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  59. 86 | self->io_handle = socket(AF_INET, SOCK_STREAM, 0);
  60. | ^~~~~~~~~
  61. | handle
  62. io/io_ethernet.c:87:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  63. 87 | if (self->io_handle < 0) {
  64. | ^~~~~~~~~
  65. | handle
  66. io/io_ethernet.c:89:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  67. 89 | self->io_handle = -1;
  68. | ^~~~~~~~~
  69. | handle
  70. io/io_ethernet.c:99:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  71. 99 | close(self->io_handle);
  72. | ^~~~~~~~~
  73. | handle
  74. io/io_ethernet.c:100:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  75. 100 | self->io_handle = -1;
  76. | ^~~~~~~~~
  77. | handle
  78. io/io_ethernet.c:105:23: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  79. 105 | if (connect(self->io_handle, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) {
  80. | ^~~~~~~~~
  81. | handle
  82. io/io_ethernet.c:107:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  83. 107 | close(self->io_handle);
  84. | ^~~~~~~~~
  85. | handle
  86. io/io_ethernet.c:108:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  87. 108 | self->io_handle = -1;
  88. | ^~~~~~~~~
  89. | handle
  90. io/io_ethernet.c:112:98: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  91. 112 | o %s:%d (handle: %d)\n", config->target_ip, config->port, self->io_handle);
  92. | ^~~~~~~~~
  93. | handle
  94. io/io_ethernet.c:113:18: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  95. 113 | return self->io_handle; // Возвращаем дескриптор соединения
  96. | ^~~~~~~~~
  97. | handle
  98. io/io_ethernet.c: In function ‘ethernet_listen’:
  99. io/io_ethernet.c:117:23: error: ‘IOInterface’ has no member named ‘type’
  100. 117 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
  101. | ^~
  102. io/io_ethernet.c:117:33: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
  103. 117 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
  104. | ^~~~~~~~~~~~~~~~
  105. io/io_ethernet.c:121:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  106. 121 | if (self->io_handle != -1) {
  107. | ^~~~~~~~~
  108. | handle
  109. io/io_ethernet.c:122:41: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  110. 122 | ethernet_disconnect(self, self->io_handle); // Закрываем старый, если был
  111. | ^~~~~~~~~
  112. | handle
  113. io/io_ethernet.c:129:11: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  114. 129 | self->io_handle = socket(AF_INET, SOCK_STREAM, 0);
  115. | ^~~~~~~~~
  116. | handle
  117. io/io_ethernet.c:130:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  118. 130 | if (self->io_handle < 0) {
  119. | ^~~~~~~~~
  120. | handle
  121. io/io_ethernet.c:132:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  122. 132 | self->io_handle = -1;
  123. | ^~~~~~~~~
  124. | handle
  125. io/io_ethernet.c:138:26: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  126. 138 | if (setsockopt(self->io_handle, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) {
  127. | ^~~~~~~~~
  128. | handle
  129. io/io_ethernet.c:152:25: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  130. 152 | close(self->io_handle);
  131. | ^~~~~~~~~
  132. | handle
  133. io/io_ethernet.c:153:19: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  134. 153 | self->io_handle = -1;
  135. | ^~~~~~~~~
  136. | handle
  137. io/io_ethernet.c:160:20: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  138. 160 | if (bind(self->io_handle, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) {
  139. | ^~~~~~~~~
  140. | handle
  141. io/io_ethernet.c:162:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  142. 162 | close(self->io_handle);
  143. | ^~~~~~~~~
  144. | handle
  145. io/io_ethernet.c:163:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  146. 163 | self->io_handle = -1;
  147. | ^~~~~~~~~
  148. | handle
  149. io/io_ethernet.c:168:22: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  150. 168 | if (listen(self->io_handle, 1) < 0) { // Очередь ожидания = 1
  151. | ^~~~~~~~~
  152. | handle
  153. io/io_ethernet.c:170:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  154. 170 | close(self->io_handle);
  155. | ^~~~~~~~~
  156. | handle
  157. io/io_ethernet.c:171:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  158. 171 | self->io_handle = -1;
  159. | ^~~~~~~~~
  160. | handle
  161. io/io_ethernet.c:175:81: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  162. 175 | rnet: Listening on port %d (handle: %d)\n", config->port, self->io_handle);
  163. | ^~~~~~~~~
  164. | handle
  165. io/io_ethernet.c:176:18: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  166. 176 | return self->io_handle; // Возвращаем слушающий дескриптор
  167. | ^~~~~~~~~
  168. | handle
  169. io/io_ethernet.c: In function ‘ethernet_accept’:
  170. io/io_ethernet.c:180:22: error: ‘IOInterface’ has no member named ‘type’
  171. 180 | if (!self || self->type != IO_TYPE_ETHERNET || self->io_handle < 0) {
  172. | ^~
  173. io/io_ethernet.c:180:32: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
  174. 180 | if (!self || self->type != IO_TYPE_ETHERNET || self->io_handle < 0) {
  175. | ^~~~~~~~~~~~~~~~
  176. io/io_ethernet.c:180:58: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  177. 180 | if (!self || self->type != IO_TYPE_ETHERNET || self->io_handle < 0) {
  178. | ^~~~~~~~~
  179. | handle
  180. io/io_ethernet.c:191:38: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  181. 191 | client_handle = accept(self->io_handle, (struct sockaddr *)&client_addr, &client_len);
  182. | ^~~~~~~~~
  183. | handle
  184. io/io_ethernet.c: In function ‘ethernet_disconnect’:
  185. io/io_ethernet.c:224:23: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  186. 224 | if (self && self->io_handle == handle) {
  187. | ^~~~~~~~~
  188. | handle
  189. io/io_ethernet.c:225:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  190. 225 | self->io_handle = -1;
  191. | ^~~~~~~~~
  192. | handle
  193. io/io_ethernet.c: In function ‘ethernet_destroy’:
  194. io/io_ethernet.c:273:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  195. 273 | if (self->io_handle >= 0) {
  196. | ^~~~~~~~~
  197. | handle
  198. io/io_ethernet.c:274:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  199. 274 | close(self->io_handle);
  200. | ^~~~~~~~~
  201. | handle
  202. io/io_ethernet.c:275:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
  203. 275 | self->io_handle = -1;
  204. | ^~~~~~~~~
  205. | handle
  206. io/io_ethernet.c:281:14: error: ‘IOInterface’ has no member named ‘internal_data’
  207. 281 | free(self->internal_data);
  208. | ^~
  209. io/io_ethernet.c:282:9: error: ‘IOInterface’ has no member named ‘internal_data’
  210. 282 | self->internal_data = NULL;
  211. | ^~
  212. io/io_ethernet.c: In function ‘ethernet_connect’:
  213. io/io_ethernet.c:114:1: warning: control reaches end of non-void function [-Wreturn-type]
  214. 114 | }
  215. | ^
  216. io/io_ethernet.c: In function ‘ethernet_listen’:
  217. io/io_ethernet.c:177:1: warning: control reaches end of non-void function [-Wreturn-type]
  218. 177 | }
  219. | ^
  220. make: *** [<встроенное>: io/io_ethernet.o] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement