Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after typing make #1654

Open
ghost opened this issue Mar 31, 2020 · 2 comments
Open

Error after typing make #1654

ghost opened this issue Mar 31, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 31, 2020

I am running ubuntu on android with linux deploy

magaknuto@localhost:~/Desktop/tg$ make
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: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
         sprintf (s, "%lld", lrand48 () * (1ll << 32) + lrand48 ());
                          ^
In file included from /usr/include/stdio.h:862:0,
                 from tgl/tl-parser/tl-parser.c:32:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 2 and 21 bytes into a destination of size 20
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile.tl-parser:4: recipe for target 'objs/tl-parser.o' failed
make: *** [objs/tl-parser.o] Error 1

@Paulchen232
Copy link

If that only warnings you can in Makefile.in the flag -Werror remove.

@DimitriBolt
Copy link

If that only warnings you can in Makefile.in the flag -Werror remove.

It is no only warning. There is no bin/telegram-cli file after the errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants