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
- config/config.c: In function ‘load_config’:
- config/config.c:163:80: warning: comparison is always false due to limited range of data type [-Wtype-limits]
- 163 | onfig->svm_ethernet[i].port == 0 || config->svm_ethernet[i].port > 65535) {
- | ^
- Compiling config/ini.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/ini.o config/ini.c
- Compiling utils/ts_queue.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue.o utils/ts_queue.c
- Compiling utils/ts_queue_req.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue_req.o utils/ts_queue_req.c
- Compiling utils/ts_queued_msg_queue.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queued_msg_queue.o utils/ts_queued_msg_queue.c
- Compiling utils/ts_uvm_resp_queue.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_uvm_resp_queue.o utils/ts_uvm_resp_queue.c
- Linking svm_app...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread svm/svm_main.o svm/svm_handlers.o svm/svm_timers.o svm/svm_receiver.o svm/svm_processor.o svm/svm_sender.o protocol/message_utils.o protocol/message_builder.o io/io_common.o io/io_ethernet.o io/io_serial.o config/config.o config/ini.o utils/ts_queue.o utils/ts_queue_req.o utils/ts_queued_msg_queue.o utils/ts_uvm_resp_queue.o -o svm_app -pthread -lrt
- SVM application (svm_app) built successfully.
- Compiling uvm/uvm_main.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
- uvm/uvm_main.c: In function ‘main’:
- uvm/uvm_main.c:375:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 375 | if (pthread_create(&sender_tid, NULL, uvm_sender_thread_func, NULL) != 0)
- | ^~
- uvm/uvm_main.c:377:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 377 | goto cleanup_connections;
- | ^~~~
- uvm/uvm_main.c:377:9: error: label ‘cleanup_connections’ used but not defined
- uvm/uvm_main.c:369:9: error: label ‘cleanup_queues’ used but not defined
- 369 | goto cleanup_queues;
- | ^~~~
- uvm/uvm_main.c: At top level:
- uvm/uvm_main.c:381:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 381 | pthread_mutex_lock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:382:5: error: expected identifier or ‘(’ before ‘for’
- 382 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^~~
- uvm/uvm_main.c:382:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
- 382 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^
- uvm/uvm_main.c:382:45: error: expected identifier or ‘(’ before ‘++’ token
- 382 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^~
- uvm/uvm_main.c:391:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 391 | pthread_mutex_unlock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:394:5: error: expected identifier or ‘(’ before ‘if’
- 394 | if (pthread_create(&gui_server_tid, NULL, gui_server_thread, NULL) != 0) {
- | ^~
- uvm/uvm_main.c:397:12: error: expected declaration specifiers or ‘...’ before string constant
- 397 | printf("UVM: Потоки запущены. Режим работы: %d\n", mode);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:397:56: error: unknown type name ‘mode’; did you mean ‘mode_t’?
- 397 | printf("UVM: Потоки запущены. Режим работы: %d\n", mode);
- | ^~~~
- | mode_t
- uvm/uvm_main.c:401:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
- 401 | request.type = UVM_REQ_SEND_MESSAGE;
- | ^
- uvm/uvm_main.c:404:12: error: expected declaration specifiers or ‘...’ before string constant
- 404 | printf("\n--- Подготовка к сеансу наблюдения ---\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:405:5: error: expected identifier or ‘(’ before ‘for’
- 405 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^~~
- uvm/uvm_main.c:405:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
- 405 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^
- uvm/uvm_main.c:405:45: error: expected identifier or ‘(’ before ‘++’ token
- 405 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^~
- uvm/uvm_main.c:443:5: warning: data definition has no type or storage class
- 443 | wait_for_outstanding_sends();
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:443:5: warning: type defaults to ‘int’ in declaration of ‘wait_for_outstanding_sends’ [-Wimplicit-int]
- uvm/uvm_main.c:443:5: error: conflicting types for ‘wait_for_outstanding_sends’; have ‘int()’
- uvm/uvm_main.c:108:6: note: previous definition of ‘wait_for_outstanding_sends’ with type ‘void(void)’
- 108 | void wait_for_outstanding_sends(void) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:445:12: error: expected declaration specifiers or ‘...’ before string constant
- 445 | printf("\n--- Подготовка к сеансу съемки ---\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:446:12: error: expected declaration specifiers or ‘...’ before string constant
- 446 | printf("DEBUG UVM: Mode before sending parameters: %d\n", mode); // <-- ЕЩЕ ОДНА ПРОВЕРКА
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:446:63: error: unknown type name ‘mode’; did you mean ‘mode_t’?
- 446 | printf("DEBUG UVM: Mode before sending parameters: %d\n", mode); // <-- ЕЩЕ ОДНА ПРОВЕРКА
- | ^~~~
- | mode_t
- uvm/uvm_main.c:447:6: error: expected identifier or ‘(’ before ‘for’
- 447 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^~~
- uvm/uvm_main.c:447:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
- 447 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^
- uvm/uvm_main.c:447:46: error: expected identifier or ‘(’ before ‘++’ token
- 447 | for (int i = 0; i < num_svms_in_config; ++i) {
- | ^~
- uvm/uvm_main.c:524:5: warning: data definition has no type or storage class
- 524 | wait_for_outstanding_sends();
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:524:5: warning: type defaults to ‘int’ in declaration of ‘wait_for_outstanding_sends’ [-Wimplicit-int]
- uvm/uvm_main.c:524:5: error: conflicting types for ‘wait_for_outstanding_sends’; have ‘int()’
- uvm/uvm_main.c:108:6: note: previous definition of ‘wait_for_outstanding_sends’ with type ‘void(void)’
- 108 | void wait_for_outstanding_sends(void) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:525:12: error: expected declaration specifiers or ‘...’ before string constant
- 525 | printf("UVM: Все сообщения подготовки к съемке отправлены.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:554:12: error: expected declaration specifiers or ‘...’ before string constant
- 554 | printf("UVM: Ожидание асинхронных сообщений от SVM (или Ctrl+C для завершения)...\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:556:5: error: expected identifier or ‘(’ before ‘while’
- 556 | while (uvm_keep_running) {
- | ^~~~~
- uvm/uvm_main.c:760:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
- 760 | cleanup_connections:
- | ^
- uvm/uvm_main.c:763:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 763 | pthread_mutex_lock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:764:5: error: expected identifier or ‘(’ before ‘for’
- 764 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) { // Проверяем все слоты
- | ^~~
- uvm/uvm_main.c:764:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
- 764 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) { // Проверяем все слоты
- | ^
- uvm/uvm_main.c:764:44: error: expected identifier or ‘(’ before ‘++’ token
- 764 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) { // Проверяем все слоты
- | ^~
- uvm/uvm_main.c:778:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 778 | pthread_mutex_unlock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:780:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
- 780 | cleanup_queues:
- | ^
- uvm/uvm_main.c:783:5: error: expected identifier or ‘(’ before ‘if’
- 783 | if (uvm_incoming_response_queue) uvq_destroy(uvm_incoming_response_queue);
- | ^~
- uvm/uvm_main.c:786:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 786 | pthread_mutex_destroy(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:787:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 787 | pthread_mutex_destroy(&uvm_send_counter_mutex);
- | ^
- uvm/uvm_main.c:788:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 788 | pthread_cond_destroy(&uvm_all_sent_cond);
- | ^
- uvm/uvm_main.c:789:31: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 789 | pthread_mutex_destroy(&gui_socket_mutex); // <-- Уничтожаем мьютекс GUI
- | ^
- uvm/uvm_main.c:791:12: error: expected declaration specifiers or ‘...’ before string constant
- 791 | printf("UVM: Очистка завершена.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:792:5: error: expected identifier or ‘(’ before ‘return’
- 792 | return 0;
- | ^~~~~~
- uvm/uvm_main.c:793:1: error: expected identifier or ‘(’ before ‘}’ token
- 793 | }
- | ^
- make: *** [Makefile:43: uvm/uvm_main.o] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment