-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 make command #1664
Comments
Perhaps delete -Werror in Makefile if you only have a warning. |
Not helped |
Hi everyone, to anyone who aslo hits this issue: there is a file in the ‘tg’ folder called makefile, in there, delete the text “-Werror”, that will allow warnings during compilation instead of treating a warning as an error: you will need to install two additional packages: not helped |
I understand my mistake Fixed |
I am hitting the same issue how did you solved it? |
Open this https://pimylifeup.com/raspberry-pi-telegram-cli/ After this delete delete -Werror in Makefile |
But now I got |
you can fix it by add --disable-openssl flag: |
still the same issue on my side |
please ensure that flas is removed if you rerun ./configure it's added back |
what do you mean by flas (sorry I am a beginner...) |
sorry flag |
got it thank you ... now the installation runs to the end. Thank you but the program stops immediately when i launch bin/telegram-cli -k tg-server.pub |
doesn't build properly - there seem to be three problems with the code: 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 -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/crypto/rsa_pem_openssl.d -MQ objs/crypto/rsa_pem_openssl.o -o objs/crypto/rsa_pem_openssl.o tgl/crypto/rsa_pem_openssl.c |
bloody rooky, too... but chould it be the same problem with or without `-Werror´ ? first try with clean 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 second try with modified tg/Makefile and deleted `-Werror ´ 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 -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 there are some 'new' warnings too: |
I got this error after run make command |
I trying to install this on raspbian (rasspberry pi)
After make command I got
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
How to fix it?
libssl1.0-dev libssl1.0.2 installed
The text was updated successfully, but these errors were encountered: