dtorkin

Untitled

Apr 21st, 2025
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.68 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ make
  2. Compiling svm/svm_main.c...
  3. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_main.o svm/svm_main.c
  4. Compiling svm/svm_handlers.c...
  5. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_handlers.o svm/svm_handlers.c
  6. Compiling svm/svm_timers.c...
  7. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_timers.o svm/svm_timers.c
  8. Compiling svm/svm_receiver.c...
  9. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_receiver.o svm/svm_receiver.c
  10. Compiling svm/svm_processor.c...
  11. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_processor.o svm/svm_processor.c
  12. Compiling svm/svm_sender.c...
  13. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_sender.o svm/svm_sender.c
  14. Compiling protocol/message_utils.c...
  15. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_utils.o protocol/message_utils.c
  16. Compiling protocol/message_builder.c...
  17. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_builder.o protocol/message_builder.c
  18. protocol/message_builder.c: In function ‘create_init_channel_message’:
  19. protocol/message_builder.c:45:52: warning: unused parameter ‘uvm_address’ [-Wunused-parameter]
  20. 45 | Message create_init_channel_message(LogicalAddress uvm_address, LogicalAddress svm_address, uint16_t message_num) {
  21. | ~~~~~~~~~~~~~~~^~~~~~~~~~~
  22. Compiling io/io_common.c...
  23. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_common.o io/io_common.c
  24. Compiling io/io_ethernet.c...
  25. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_ethernet.o io/io_ethernet.c
  26. Compiling io/io_serial.c...
  27. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_serial.o io/io_serial.c
  28. Compiling config/config.c...
  29. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/config.o config/config.c
  30. In file included from config/config.c:9:
  31. config/config.h:37:5: error: unknown type name ‘bool’
  32. 37 | bool svm_config_loaded[MAX_SVM_CONFIGS];
  33. | ^~~~
  34. config/config.c: In function ‘config_handler’:
  35. config/config.c:31:32: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  36. 31 | MATCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
  37. | ^~~~~~~~
  38. config/config.c:25:17: note: in definition of macro ‘MATCH_STRNCPY’
  39. 25 | strncpy(dest, src, size - 1); \
  40. | ^~~~
  41. config/config.c:31:75: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  42. 31 | TCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
  43. | ^~~~~~~~
  44.  
  45. config/config.c:25:28: note: in definition of macro ‘MATCH_STRNCPY’
  46. 25 | strncpy(dest, src, size - 1); \
  47. | ^~~~
  48. config/config.c:31:32: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  49. 31 | MATCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
  50. | ^~~~~~~~
  51. config/config.c:26:9: note: in definition of macro ‘MATCH_STRNCPY’
  52. 26 | dest[size - 1] = '\0'
  53. | ^~~~
  54. config/config.c:31:75: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  55. 31 | TCH_STRNCPY(pconfig->ethernet.target_ip, value, sizeof(pconfig->ethernet.target_ip));
  56. | ^~~~~~~~
  57.  
  58. config/config.c:26:14: note: in definition of macro ‘MATCH_STRNCPY’
  59. 26 | dest[size - 1] = '\0'
  60. | ^~~~
  61. config/config.c:33:18: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  62. 33 | pconfig->ethernet.port = (uint16_t)atoi(value); // Приведение к uint16_t
  63. | ^~~~~~~~
  64. | svm_ethernet
  65. config/config.c:35:14: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  66. 35 | pconfig->ethernet.base_port = atoi(value);
  67. | ^~~~~~~~
  68. | svm_ethernet
  69. config/config.c:37:24: error: ‘AppConfig’ has no member named ‘num_svm_instances’
  70. 37 | pconfig->num_svm_instances = atoi(value);
  71. | ^~
  72. config/config.c:39:24: error: ‘AppConfig’ has no member named ‘base_svm_lak’
  73. 39 | pconfig->base_svm_lak = atoi(value); // LAK обычно в hex, но atoi ожидает dec. Можно использовать strtol(value, NULL, 0) для автоопределения или 16 для hex.
  74. | ^~
  75. config/config.c: In function ‘load_config’:
  76. config/config.c:62:20: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  77. 62 | strcpy(config->ethernet.target_ip, "127.0.0.1"); // Дефолт для UVM
  78. | ^~~~~~~~
  79. | svm_ethernet
  80. config/config.c:63:13: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  81. 63 | config->ethernet.port = 8080;
  82. | ^~~~~~~~
  83. | svm_ethernet
  84. config/config.c:64:17: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  85. 64 | config->ethernet.base_port = 8080; // По умолчанию совпадает с port
  86. | ^~~~~~~~
  87. | svm_ethernet
  88. config/config.c:65:11: error: ‘AppConfig’ has no member named ‘num_svm_instances’
  89. 65 | config->num_svm_instances = 1; // По умолчанию 1 экземпляр
  90. | ^~
  91. config/config.c:66:11: error: ‘AppConfig’ has no member named ‘base_svm_lak’
  92. 66 | config->base_svm_lak = LOGICAL_ADDRESS_SVM_PB_BZ_CHANNEL_1_VAL;
  93. | ^~
  94. config/config.c:94:21: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  95. 94 | if (config->ethernet.port == 0) { // Убрали проверку > 65535
  96. | ^~~~~~~~
  97. | svm_ethernet
  98. config/config.c:95:109: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  99. 95 | valid ethernet port %d in config. Using default %d.\n", config->ethernet.port, 8080);
  100. | ^~~~~~~~
  101. | svm_ethernet
  102. config/config.c:96:25: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  103. 96 | config->ethernet.port = 8080;
  104. | ^~~~~~~~
  105. | svm_ethernet
  106. config/config.c:113:15: error: ‘AppConfig’ has no member named ‘num_svm_instances’
  107. 113 | if (config->num_svm_instances <= 0 || config->num_svm_instances > MAX_SVM_INSTANCES) {
  108. | ^~
  109. config/config.c:113:49: error: ‘AppConfig’ has no member named ‘num_svm_instances’
  110. 113 | if (config->num_svm_instances <= 0 || config->num_svm_instances > MAX_SVM_INSTANCES) {
  111. | ^~
  112. config/config.c:113:71: error: ‘MAX_SVM_INSTANCES’ undeclared (first use in this function)
  113. 113 | (config->num_svm_instances <= 0 || config->num_svm_instances > MAX_SVM_INSTANCES) {
  114. | ^~~~~~~~~~~~~~~~~
  115.  
  116. config/config.c:113:71: note: each undeclared identifier is reported only once for each function it appears in
  117. config/config.c:115:23: error: ‘AppConfig’ has no member named ‘num_svm_instances’
  118. 115 | config->num_svm_instances, MAX_SVM_INSTANCES);
  119. | ^~
  120. config/config.c:116:15: error: ‘AppConfig’ has no member named ‘num_svm_instances’
  121. 116 | config->num_svm_instances = 1;
  122. | ^~
  123. config/config.c:118:17: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  124. 118 | if (config->ethernet.base_port <= 0 || config->ethernet.base_port > 65535) {
  125. | ^~~~~~~~
  126. | svm_ethernet
  127. config/config.c:118:52: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  128. 118 | if (config->ethernet.base_port <= 0 || config->ethernet.base_port > 65535) {
  129. | ^~~~~~~~
  130. | svm_ethernet
  131. config/config.c:119:107: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  132. 119 | ethernet base_port %d in config. Using default %d.\n", config->ethernet.base_port, 8080);
  133. | ^~~~~~~~
  134. | svm_ethernet
  135. config/config.c:120:18: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  136. 120 | config->ethernet.base_port = 8080;
  137. | ^~~~~~~~
  138. | svm_ethernet
  139. config/config.c:122:15: error: ‘AppConfig’ has no member named ‘base_svm_lak’
  140. 122 | if (config->base_svm_lak <= 0 || config->base_svm_lak > 255) {
  141. | ^~
  142. config/config.c:122:44: error: ‘AppConfig’ has no member named ‘base_svm_lak’
  143. 122 | if (config->base_svm_lak <= 0 || config->base_svm_lak > 255) {
  144. | ^~
  145. config/config.c:123:99: error: ‘AppConfig’ has no member named ‘base_svm_lak’
  146. 123 | Invalid base_svm_lak %d in config. Using default %d.\n", config->base_svm_lak, LOGICAL_ADDRESS_SVM_PB_BZ_CHANNEL_1_VAL);
  147. | ^~
  148.  
  149. config/config.c:124:17: error: ‘AppConfig’ has no member named ‘base_svm_lak’
  150. 124 | config->base_svm_lak = LOGICAL_ADDRESS_SVM_PB_BZ_CHANNEL_1_VAL;
  151. | ^~
  152. config/config.c:130:50: error: ‘AppConfig’ has no member named ‘num_svm_instances’
  153. 130 | printf(" num_svm_instances = %d\n", config->num_svm_instances);
  154. | ^~
  155. config/config.c:131:49: error: ‘AppConfig’ has no member named ‘base_svm_lak’
  156. 131 | printf(" base_svm_lak = 0x%02X\n", config->base_svm_lak);
  157. | ^~
  158. config/config.c:134:48: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  159. 134 | printf(" target_ip = %s\n", config->ethernet.target_ip);
  160. | ^~~~~~~~
  161. | svm_ethernet
  162. config/config.c:135:43: error: ‘AppConfig’ has no member named ‘ethernet’; did you mean ‘svm_ethernet’?
  163. 135 | printf(" port = %d\n", config->ethernet.port);
  164. | ^~~~~~~~
  165. | svm_ethernet
  166. make: *** [Makefile:87: config/config.o] Ошибка 1
  167.  
Advertisement
Add Comment
Please, Sign In to add comment