Open akusomos opened 2 years ago
I am following the steps mentioned in the link : https://tutorials-raspberrypi.com/telegram-messenger-on-the-raspberrypi/
On executing the make file, i receive the below error. Could you please check.
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 -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tl-parser.d -MQ objs/tl-parser.o -o objs/tl-parser.o tgl/tl-parser/tl-parser.c tgl/tl-parser/tl-parser.c: In function ‘tl_parse_args134’: tgl/tl-parser/tl-parser.c:1907:26: error: ‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] sprintf (s, "%lld", lrand48 () (1ll << 32) + lrand48 ()); ^ tgl/tl-parser/tl-parser.c:1907:9: note: ‘sprintf’ output between 2 and 21 bytes into a destination of size 20 sprintf (s, "%lld", lrand48 () (1ll << 32) + lrand48 ()); ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile.tl-parser:4: objs/tl-parser.o] Error 1
My Os is PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster
see #1711
I am following the steps mentioned in the link : https://tutorials-raspberrypi.com/telegram-messenger-on-the-raspberrypi/
On executing the make file, i receive the below error. Could you please check.
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 -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tl-parser.d -MQ objs/tl-parser.o -o objs/tl-parser.o tgl/tl-parser/tl-parser.c tgl/tl-parser/tl-parser.c: In function ‘tl_parse_args134’: tgl/tl-parser/tl-parser.c:1907:26: error: ‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] sprintf (s, "%lld", lrand48 () (1ll << 32) + lrand48 ()); ^ tgl/tl-parser/tl-parser.c:1907:9: note: ‘sprintf’ output between 2 and 21 bytes into a destination of size 20 sprintf (s, "%lld", lrand48 () (1ll << 32) + lrand48 ()); ^
~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile.tl-parser:4: objs/tl-parser.o] Error 1My Os is PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster