Advertisement
dtorkin

Untitled

Apr 9th, 2025
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/v0.12$ make
  2. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o svm/svm_main.o svm/svm_main.c
  3. svm/svm_main.c: In function ‘sender_thread_func’:
  4. svm/svm_main.c:317:13: warning: unused variable ‘messageToSend’ [-Wunused-variable]
  5. 317 | Message messageToSend;
  6. | ^~~~~~~~~~~~~
  7. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o svm/svm_handlers.o svm/svm_handlers.c
  8. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o svm/svm_timers.o svm/svm_timers.c
  9. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o svm/svm_receiver.o svm/svm_receiver.c
  10. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o svm/svm_processor.o svm/svm_processor.c
  11. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o svm/svm_sender.o svm/svm_sender.c
  12. svm/svm_sender.c: In function ‘sender_thread_func’:
  13. svm/svm_sender.c:18:13: warning: unused variable ‘messageToSend’ [-Wunused-variable]
  14. 18 | Message messageToSend;
  15. | ^~~~~~~~~~~~~
  16. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o protocol/message_utils.o protocol/message_utils.c
  17. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o protocol/message_builder.o protocol/message_builder.c
  18. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o io/io_common.o io/io_common.c
  19. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o io/io_ethernet.o io/io_ethernet.c
  20. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o io/io_serial.o io/io_serial.c
  21. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o config/config.o config/config.c
  22. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o config/ini.o config/ini.c
  23. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -pthread -c -o utils/ts_queue.o utils/ts_queue.c
  24. utils/ts_queue.c: In function ‘queue_enqueue’:
  25. utils/ts_queue.c:100:74: warning: implicit declaration of function ‘ntohs’ [-Wimplicit-function-declaration]
  26. 100 | y(&queue->buffer[queue->head], message, sizeof(MessageHeader) + ntohs(message->header.body_length));
  27. | ^~~~~
  28.  
  29. utils/ts_queue.c: In function ‘queue_dequeue’:
  30. utils/ts_queue.c:141:40: warning: implicit declaration of function ‘htons’ [-Wimplicit-function-declaration]
  31. 141 | message->header.body_length = htons(MAX_MESSAGE_BODY_SIZE); // Исправляем длину
  32. | ^~~~~
  33. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -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 -o svm_app -lrt -pthread # Используем LIBS_SVM
  34. /usr/bin/ld: svm/svm_receiver.o: в функции «receiver_thread_func»:
  35. /home/dtorkin/Desktop/v0.12/svm/svm_receiver.c:14: повторное определение «receiver_thread_func»; svm/svm_main.o:/home/dtorkin/Desktop/v0.12/svm/svm_main.c:217: здесь первое определение
  36. /usr/bin/ld: svm/svm_processor.o: в функции «processor_thread_func»:
  37. /home/dtorkin/Desktop/v0.12/svm/svm_processor.c:17: повторное определение «processor_thread_func»; svm/svm_main.o:/home/dtorkin/Desktop/v0.12/svm/svm_main.c:259: здесь первое определение
  38. /usr/bin/ld: svm/svm_sender.o: в функции «sender_thread_func»:
  39. /home/dtorkin/Desktop/v0.12/svm/svm_sender.c:15: повторное определение «sender_thread_func»; svm/svm_main.o:/home/dtorkin/Desktop/v0.12/svm/svm_main.c:314: здесь первое определение
  40. collect2: error: ld returned 1 exit status
  41. make: *** [Makefile:53: svm_app] Ошибка 1
  42. dtorkin@ubuntu1:~/Desktop/v0.12$
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement