vysheng / tg

telegram-cli
GNU General Public License v2.0
6.49k stars 1.54k forks source link

Make problem #1805

Open Epvre opened 9 months ago

Epvre commented 9 months ago

Debian. All packages had been installed

Error in make command:

gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/lua5.2 -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/main.d -MQ objs/main.o -o objs/main.o main.c main.c: In function ‘termination_signal_handler’: main.c:824:7: error: ‘write’ reading 18 bytes from a region of size 17 [-Werror=stringop-overread] 824 | if (write (1, "SIGNAL received\n", 18) < 0) { | ^~~~~~~~~~ In file included from main.c:29: /usr/include/unistd.h:378:16: note: in a call to function ‘write’ declared with attribute ‘access (read_only, 2, 3)’ 378 | extern ssize_t write (int fd, const void *buf, size_t n) wur | ^~~~~ cc1: all warnings being treated as errors make: *** [Makefile:48: objs/main.o] Error 1

rezabaktash commented 6 months ago

Same error happens for me