Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dtorkin@ubuntu1:~/Desktop/practice$ make
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_main.o svm/svm_main.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_handlers.o svm/svm_handlers.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_timers.o svm/svm_timers.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_receiver.o svm/svm_receiver.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_processor.o svm/svm_processor.c
- svm/svm_processor.c: In function ‘processor_thread_func’:
- svm/svm_processor.c:81:43: warning: implicit declaration of function ‘ntohs’ [-Wimplicit-function-declaration]
- 81 | uint16_t resp_body_len_host = ntohs(responseMessagePtr->header.body_length);
- | ^~~~~
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_sender.o svm/svm_sender.c
- svm/svm_sender.c:26:34: warning: ‘svm_outgoing_queue’ initialized and declared ‘extern’
- 26 | extern ThreadSafeQueuedMsgQueue *svm_outgoing_queue = NULL; // Общая исходящая очередь QueuedMessage
- | ^~~~~~~~~~~~~~~~~~
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_utils.o protocol/message_utils.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_builder.o protocol/message_builder.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_common.o io/io_common.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_ethernet.o io/io_ethernet.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_serial.o io/io_serial.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/config.o config/config.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/ini.o config/ini.c
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue.o utils/ts_queue.c
- 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 -o svm_app -lrt -pthread
- /usr/bin/ld: svm/svm_sender.o:/home/dtorkin/Desktop/practice/svm/svm_sender.c:26: повторное определение «svm_outgoing_queue»; svm/svm_main.o:/home/dtorkin/Desktop/practice/svm/svm_main.c:40: здесь первое определение
- /usr/bin/ld: svm/svm_main.o: в функции «main»:
- /home/dtorkin/Desktop/practice/svm/svm_main.c:161:(.text+0x54a): undefined reference to `qmq_create'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_main.c:256:(.text+0x96e): undefined reference to `qmq_create'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_main.c:267:(.text+0xa2f): undefined reference to `qmq_destroy'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_main.c:278:(.text+0xad3): undefined reference to `qmq_destroy'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_main.c:330:(.text+0xcb3): undefined reference to `qmq_shutdown'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_main.c:355:(.text+0xdfe): undefined reference to `qmq_shutdown'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_main.c:400:(.text+0x10b4): undefined reference to `qmq_destroy'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_main.c:403:(.text+0x1101): undefined reference to `qmq_destroy'
- /usr/bin/ld: svm/svm_receiver.o: в функции «receiver_thread_func»:
- /home/dtorkin/Desktop/practice/svm/svm_receiver.c:66:(.text+0x263): undefined reference to `qmq_enqueue'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_receiver.c:91:(.text+0x358): undefined reference to `qmq_shutdown'
- /usr/bin/ld: svm/svm_processor.o: в функции «processor_thread_func»:
- /home/dtorkin/Desktop/practice/svm/svm_processor.c:41:(.text+0xdf): undefined reference to `qmq_dequeue'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_processor.c:100:(.text+0x33b): undefined reference to `qmq_enqueue'
- /usr/bin/ld: svm/svm_sender.o: в функции «sender_thread_func»:
- /home/dtorkin/Desktop/practice/svm/svm_sender.c:38:(.text+0x5f): undefined reference to `qmq_dequeue'
- /usr/bin/ld: /home/dtorkin/Desktop/practice/svm/svm_sender.c:106:(.text+0x3c3): undefined reference to `qmq_shutdown'
- collect2: error: ld returned 1 exit status
- make: *** [Makefile:46: svm_app] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment