Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dtorkin@ubuntu1:~/Desktop/practice$ make
- Compiling svm/svm_main.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_main.o svm/svm_main.c
- Compiling svm/svm_handlers.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_handlers.o svm/svm_handlers.c
- Compiling svm/svm_timers.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_timers.o svm/svm_timers.c
- Compiling svm/svm_receiver.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_receiver.o svm/svm_receiver.c
- Compiling svm/svm_processor.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_processor.o svm/svm_processor.c
- Compiling svm/svm_sender.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_sender.o svm/svm_sender.c
- Compiling protocol/message_utils.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_utils.o protocol/message_utils.c
- Compiling protocol/message_builder.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_builder.o protocol/message_builder.c
- protocol/message_builder.c: In function ‘create_init_channel_message’:
- protocol/message_builder.c:45:52: warning: unused parameter ‘uvm_address’ [-Wunused-parameter]
- 45 | Message create_init_channel_message(LogicalAddress uvm_address, LogicalAddress svm_address, uint16_t message_num) {
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~
- Compiling io/io_common.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_common.o io/io_common.c
- Compiling io/io_ethernet.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_ethernet.o io/io_ethernet.c
- Compiling io/io_serial.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_serial.o io/io_serial.c
- Compiling config/config.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/config.o config/config.c
- In file included from config/config.c:9:
- config/config.h:37:5: error: unknown type name ‘bool’
- 37 | bool svm_config_loaded[MAX_SVM_CONFIGS];
- | ^~~~
- config/config.c: In function ‘config_handler’:
- config/config.c:31:32: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 31 | MATCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
- | ^~~~~~~~
- config/config.c:25:17: note: in definition of macro ‘MATCH_STRNCPY’
- 25 | strncpy(dest, src, size - 1); \
- | ^~~~
- config/config.c:31:75: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 31 | TCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
- | ^~~~~~~~
- config/config.c:25:28: note: in definition of macro ‘MATCH_STRNCPY’
- 25 | strncpy(dest, src, size - 1); \
- | ^~~~
- config/config.c:31:32: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 31 | MATCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
- | ^~~~~~~~
- config/config.c:26:9: note: in definition of macro ‘MATCH_STRNCPY’
- 26 | dest[size - 1] = '\0'
- | ^~~~
- config/config.c:31:75: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 31 | TCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
- | ^~~~~~~~
- config/config.c:26:14: note: in definition of macro ‘MATCH_STRNCPY’
- 26 | dest[size - 1] = '\0'
- | ^~~~
- config/config.c:33:18: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 33 | pconfig->ethernet.port = (uint16_t)atoi(value); // Приведение к uint16_t
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:35:14: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 35 | pconfig->ethernet.base_port = atoi(value);
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:37:24: error: ‘AppConfig’ has no member named ‘num_svm_instances’
- 37 | pconfig->num_svm_instances = atoi(value);
- | ^~
- config/config.c:39:24: error: ‘AppConfig’ has no member named ‘base_svm_lak’
- 39 | pconfig->base_svm_lak = atoi(value); // LAK обычно в hex, но atoi ожидает dec. Можно использовать strtol(value, NULL, 0) для автоопределения или 16 для hex.
- | ^~
- config/config.c: In function ‘load_config’:
- config/config.c:62:20: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 62 | strcpy(config->ethernet.target_ip, "127.0.0.1"); // Дефолт для UVM
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:63:13: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 63 | config->ethernet.port = 8080;
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:64:17: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 64 | config->ethernet.base_port = 8080; // По умолчанию совпадает с port
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:65:11: error: ‘AppConfig’ has no member named ‘num_svm_instances’
- 65 | config->num_svm_instances = 1; // По умолчанию 1 экземпляр
- | ^~
- config/config.c:66:11: error: ‘AppConfig’ has no member named ‘base_svm_lak’
- 66 | config->base_svm_lak = LOGICAL_ADDRESS_SVM_PB_BZ_CHANNEL_1_VAL;
- | ^~
- config/config.c:94:21: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 94 | if (config->ethernet.port == 0) { // Убрали проверку > 65535
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:95:109: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 95 | valid ethernet port %d in config. Using default %d.\n", config->ethernet.port, 8080);
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:96:25: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 96 | config->ethernet.port = 8080;
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:113:15: error: ‘AppConfig’ has no member named ‘num_svm_instances’
- 113 | if (config->num_svm_instances <= 0 || config->num_svm_instances > MAX_SVM_INSTANCES) {
- | ^~
- config/config.c:113:49: error: ‘AppConfig’ has no member named ‘num_svm_instances’
- 113 | if (config->num_svm_instances <= 0 || config->num_svm_instances > MAX_SVM_INSTANCES) {
- | ^~
- config/config.c:113:71: error: ‘MAX_SVM_INSTANCES’ undeclared (first use in this function)
- 113 | (config->num_svm_instances <= 0 || config->num_svm_instances > MAX_SVM_INSTANCES) {
- | ^~~~~~~~~~~~~~~~~
- config/config.c:113:71: note: each undeclared identifier is reported only once for each function it appears in
- config/config.c:115:23: error: ‘AppConfig’ has no member named ‘num_svm_instances’
- 115 | config->num_svm_instances, MAX_SVM_INSTANCES);
- | ^~
- config/config.c:116:15: error: ‘AppConfig’ has no member named ‘num_svm_instances’
- 116 | config->num_svm_instances = 1;
- | ^~
- config/config.c:118:17: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 118 | if (config->ethernet.base_port <= 0 || config->ethernet.base_port > 65535) {
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:118:52: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 118 | if (config->ethernet.base_port <= 0 || config->ethernet.base_port > 65535) {
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:119:107: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 119 | ethernet base_port %d in config. Using default %d.\n", config->ethernet.base_port, 8080);
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:120:18: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 120 | config->ethernet.base_port = 8080;
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:122:15: error: ‘AppConfig’ has no member named ‘base_svm_lak’
- 122 | if (config->base_svm_lak <= 0 || config->base_svm_lak > 255) {
- | ^~
- config/config.c:122:44: error: ‘AppConfig’ has no member named ‘base_svm_lak’
- 122 | if (config->base_svm_lak <= 0 || config->base_svm_lak > 255) {
- | ^~
- config/config.c:123:99: error: ‘AppConfig’ has no member named ‘base_svm_lak’
- 123 | Invalid base_svm_lak %d in config. Using default %d.\n", config->base_svm_lak, LOGICAL_ADDRESS_SVM_PB_BZ_CHANNEL_1_VAL);
- | ^~
- config/config.c:124:17: error: ‘AppConfig’ has no member named ‘base_svm_lak’
- 124 | config->base_svm_lak = LOGICAL_ADDRESS_SVM_PB_BZ_CHANNEL_1_VAL;
- | ^~
- config/config.c:130:50: error: ‘AppConfig’ has no member named ‘num_svm_instances’
- 130 | printf(" num_svm_instances = %d\n", config->num_svm_instances);
- | ^~
- config/config.c:131:49: error: ‘AppConfig’ has no member named ‘base_svm_lak’
- 131 | printf(" base_svm_lak = 0x%02X\n", config->base_svm_lak);
- | ^~
- config/config.c:134:48: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 134 | printf(" target_ip = %s\n", config->ethernet.target_ip);
- | ^~~~~~~~
- | svm_ethernet
- config/config.c:135:43: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
- 135 | printf(" port = %d\n", config->ethernet.port);
- | ^~~~~~~~
- | svm_ethernet
- make: *** [Makefile:87: config/config.o] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment