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
Cannot compile in Fedora 28 #1537
Comments
Facing same issue on Arch Linux - #1542. |
Same issue here also with Fedora 28... |
PS: @izauddin, wrap your output in |
Ok, faced the same problem with the following error log
For a dangerous workaraound you have to add
And also don't forget to downgrade openssl to openssl10
|
Facing the same
|
fix it this way:
from archlinux.org |
On Fedora 28:
|
GCC 8.1.1 does not like incompatible function type casts and reports many Werror=cast-function-type errors. Use |
I've fixed the errors in my forks at https://github.com/kenorb-contrib/tg & https://github.com/kenorb-contrib/tgl |
This solved my issue. Before running this command, also installed libssl1.0-dev |
I had to install |
fixed issue in Centos8 |
Hi,
I cannot build this on Fedora 28, got the following error when running make
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -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 -c -MP -MD -MF dep/queries.d -MQ objs/queries.o -o objs/queries.o tgl/queries.c
tgl/queries.c: In function ‘_tgl_do_send_photo’:
tgl/queries.c:2091:10: error: cast between incompatible function types from ‘void (*)(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type]
((void ()(struct tgl_state *, void , int))callback) (TLS, callback_extra, 0);
^
tgl/queries.c:2108:10: error: cast between incompatible function types from ‘void ()(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type]
((void ()(struct tgl_state *, void , int))callback) (TLS, callback_extra, 0);
^
tgl/queries.c:2141:10: error: cast between incompatible function types from ‘void ()(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type]
((void ()(struct tgl_state *, void *, int))callback) (TLS, callback_extra, 0);
^
cc1: all warnings being treated as errors
make: *** [Makefile.tgl:20: objs/queries.o] Error 1
Have follow the instruction at http://www.jt360.net/home/tech-articles/install-and-configure-the-telegram-client-on-raspberry-pi but still giving the above problem.
Or any one have rpm package for Fedora 28 ?
The text was updated successfully, but these errors were encountered: