Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dtorkin@ubuntu1:~/Desktop/v0_12$ make
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o svm/svm_main.o svm/svm_main.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o svm/svm_handlers.o svm/svm_handlers.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o svm/svm_timers.o svm/svm_timers.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o protocol/message_utils.o protocol/message_utils.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o protocol/message_builder.o protocol/message_builder.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o io/io_common.o io/io_common.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -c -o io/io_ethernet.o io/io_ethernet.c
- io/io_ethernet.c: In function ‘create_ethernet_interface’:
- io/io_ethernet.c:49:16: error: ‘EthernetConfig’ has no member named ‘base’
- 49 | config_copy->base.type = IO_TYPE_ETHERNET; // Устанавливаем тип в копии
- | ^~
- io/io_ethernet.c:49:30: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
- 49 | config_copy->base.type = IO_TYPE_ETHERNET; // Устанавливаем тип в копии
- | ^~~~~~~~~~~~~~~~
- io/io_ethernet.c:49:30: note: each undeclared identifier is reported only once for each function it appears in
- io/io_ethernet.c:52:14: error: ‘IOInterface’ has no member named ‘type’
- 52 | interface->type = IO_TYPE_ETHERNET;
- | ^~
- io/io_ethernet.c:54:16: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 54 | interface->io_handle = -1; // Дескриптор пока не создан
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:55:14: error: ‘IOInterface’ has no member named ‘internal_data’
- 55 | interface->internal_data = NULL; // Для Ethernet пока не нужно
- | ^~
- io/io_ethernet.c:58:14: error: ‘IOInterface’ has no member named ‘connect’
- 58 | interface->connect = ethernet_connect;
- | ^~
- io/io_ethernet.c:59:14: error: ‘IOInterface’ has no member named ‘listen’
- 59 | interface->listen = ethernet_listen;
- | ^~
- io/io_ethernet.c:60:14: error: ‘IOInterface’ has no member named ‘accept’
- 60 | interface->accept = ethernet_accept;
- | ^~
- io/io_ethernet.c:61:14: error: ‘IOInterface’ has no member named ‘disconnect’
- 61 | interface->disconnect = ethernet_disconnect;
- | ^~
- io/io_ethernet.c: In function ‘ethernet_connect’:
- io/io_ethernet.c:72:22: error: ‘IOInterface’ has no member named ‘type’
- 72 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
- | ^~
- io/io_ethernet.c:72:32: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
- 72 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
- | ^~~~~~~~~~~~~~~~
- io/io_ethernet.c:77:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 77 | if (self->io_handle != -1) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:78:41: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 78 | ethernet_disconnect(self, self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:79:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 79 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:86:11: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 86 | self->io_handle = socket(AF_INET, SOCK_STREAM, 0);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:87:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 87 | if (self->io_handle < 0) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:89:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 89 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:99:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 99 | close(self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:100:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 100 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:105:23: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 105 | if (connect(self->io_handle, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:107:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 107 | close(self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:108:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 108 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:112:98: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 112 | o %s:%d (handle: %d)\n", config->target_ip, config->port, self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:113:18: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 113 | return self->io_handle; // Возвращаем дескриптор соединения
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c: In function ‘ethernet_listen’:
- io/io_ethernet.c:117:23: error: ‘IOInterface’ has no member named ‘type’
- 117 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
- | ^~
- io/io_ethernet.c:117:33: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
- 117 | if (!self || self->type != IO_TYPE_ETHERNET || !self->config) {
- | ^~~~~~~~~~~~~~~~
- io/io_ethernet.c:121:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 121 | if (self->io_handle != -1) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:122:41: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 122 | ethernet_disconnect(self, self->io_handle); // Закрываем старый, если был
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:129:11: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 129 | self->io_handle = socket(AF_INET, SOCK_STREAM, 0);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:130:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 130 | if (self->io_handle < 0) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:132:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 132 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:138:26: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 138 | if (setsockopt(self->io_handle, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:152:25: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 152 | close(self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:153:19: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 153 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:160:20: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 160 | if (bind(self->io_handle, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:162:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 162 | close(self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:163:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 163 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:168:22: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 168 | if (listen(self->io_handle, 1) < 0) { // Очередь ожидания = 1
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:170:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 170 | close(self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:171:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 171 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:175:81: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 175 | rnet: Listening on port %d (handle: %d)\n", config->port, self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:176:18: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 176 | return self->io_handle; // Возвращаем слушающий дескриптор
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c: In function ‘ethernet_accept’:
- io/io_ethernet.c:180:22: error: ‘IOInterface’ has no member named ‘type’
- 180 | if (!self || self->type != IO_TYPE_ETHERNET || self->io_handle < 0) {
- | ^~
- io/io_ethernet.c:180:32: error: ‘IO_TYPE_ETHERNET’ undeclared (first use in this function)
- 180 | if (!self || self->type != IO_TYPE_ETHERNET || self->io_handle < 0) {
- | ^~~~~~~~~~~~~~~~
- io/io_ethernet.c:180:58: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 180 | if (!self || self->type != IO_TYPE_ETHERNET || self->io_handle < 0) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:191:38: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 191 | client_handle = accept(self->io_handle, (struct sockaddr *)&client_addr, &client_len);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c: In function ‘ethernet_disconnect’:
- io/io_ethernet.c:224:23: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 224 | if (self && self->io_handle == handle) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:225:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 225 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c: In function ‘ethernet_destroy’:
- io/io_ethernet.c:273:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 273 | if (self->io_handle >= 0) {
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:274:21: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 274 | close(self->io_handle);
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:275:15: error: ‘IOInterface’ has no member named ‘io_handle’; did you mean ‘handle’?
- 275 | self->io_handle = -1;
- | ^~~~~~~~~
- | handle
- io/io_ethernet.c:281:14: error: ‘IOInterface’ has no member named ‘internal_data’
- 281 | free(self->internal_data);
- | ^~
- io/io_ethernet.c:282:9: error: ‘IOInterface’ has no member named ‘internal_data’
- 282 | self->internal_data = NULL;
- | ^~
- io/io_ethernet.c: In function ‘ethernet_connect’:
- io/io_ethernet.c:114:1: warning: control reaches end of non-void function [-Wreturn-type]
- 114 | }
- | ^
- io/io_ethernet.c: In function ‘ethernet_listen’:
- io/io_ethernet.c:177:1: warning: control reaches end of non-void function [-Wreturn-type]
- 177 | }
- | ^
- make: *** [<встроенное>: io/io_ethernet.o] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement