Open OlegTiurin opened 8 months ago
Do you have the whole command "git clone --recursive https://github.com/vysheng/tg.git && cd tg " is used?
Do as you say and got this: 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] 2091 | ((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] 2108 | ((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] 2141 | ((void ()(struct tgl_state , void , int))callback) (TLS, callback_extra, 0);
try this: with modified tg/Makefile and deleted -Werror
nano Makefile
delete -Werror
./configure
make
Because warnings as error.
No, it doesn't help. The same errors appear
On Sun, Jan 28, 2024 at 12:07 AM Paulchen232 @.***> wrote:
try this: with modified tg/Makefile and deleted -Werror
nano Makefile ./configure make
Because warnings as error.
— Reply to this email directly, view it on GitHub https://github.com/vysheng/tg/issues/1802#issuecomment-1913336060, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRJ6DE7MVAVCGSK2IV5XITYQVUAXAVCNFSM6AAAAABCKLYIN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGMZTMMBWGA . You are receiving this because you authored the thread.Message ID: @.***>
-- Kind regards, Oleg Tyurin
I checked Makefile and realized that the parameter "-Werror" has been restored by configure script. I edited Makefile again and ran make only and got another errors:
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_new’:
tgl/crypto/rsa_pem_openssl.c:41:6: error: invalid use of incomplete typedef
‘RSA’ {aka ‘struct rsa_st’}
41 | ret->e = unwrap_bn (TGLC_bn_new ());
| ^~
tgl/crypto/rsa_pem_openssl.c:42:33: error: invalid use of incomplete
typedef ‘RSA’ {aka ‘struct rsa_st’}
42 | TGLC_bn_set_word (wrap_bn (ret->e), e);
| ^~
tgl/crypto/rsa_pem_openssl.c:43:6: error: invalid use of incomplete typedef
‘RSA’ {aka ‘struct rsa_st’}
43 | ret->n = unwrap_bn (TGLC_bn_bin2bn (n, n_bytes, NULL));
| ^~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_n’:
tgl/crypto/rsa_pem_openssl.c:49:37: error: invalid use of incomplete
typedef ‘RSA’ {aka ‘struct rsa_st’}
49 | return wrap_bn (unwrap_rsa (key)->M);
\
| ^~
tgl/crypto/rsa_pem_openssl.c:52:1: note: in expansion of macro ‘RSA_GETTER’
52 | RSA_GETTER(n);
| ^~~~~~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_e’:
tgl/crypto/rsa_pem_openssl.c:49:37: error: invalid use of incomplete
typedef ‘RSA’ {aka ‘struct rsa_st’}
49 | return wrap_bn (unwrap_rsa (key)->M);
\
| ^~
tgl/crypto/rsa_pem_openssl.c:53:1: note: in expansion of macro ‘RSA_GETTER’
53 | RSA_GETTER(e);
| ^~~~~~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_n’:
tgl/crypto/rsa_pem_openssl.c:50:3: warning: control reaches end of non-void
function [-Wreturn-type]
50 | }
\
| ^
tgl/crypto/rsa_pem_openssl.c:52:1: note: in expansion of macro ‘RSA_GETTER’
52 | RSA_GETTER(n);
| ^~~~~~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_e’:
tgl/crypto/rsa_pem_openssl.c:50:3: warning: control reaches end of non-void
function [-Wreturn-type]
50 | }
\
| ^
tgl/crypto/rsa_pem_openssl.c:53:1: note: in expansion of macro ‘RSA_GETTER’
53 | RSA_GETTER(e);
| ^~~~~~
make: *** [Makefile.tgl:20: objs/crypto/rsa_pem_openssl.o] Error 1
On Sun, Jan 28, 2024 at 12:07 AM Paulchen232 @.***> wrote:
try this: with modified tg/Makefile and deleted -Werror
nano Makefile ./configure make
Because warnings as error.
— Reply to this email directly, view it on GitHub https://github.com/vysheng/tg/issues/1802#issuecomment-1913336060, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRJ6DE7MVAVCGSK2IV5XITYQVUAXAVCNFSM6AAAAABCKLYIN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGMZTMMBWGA . You are receiving this because you authored the thread.Message ID: @.***>
-- Kind regards, Oleg Tyurin
Have you alle what on "On Ubuntu/Debian use:" is? I think try this fork https://github.com/kenorb-contrib/tgl but the updates are also old.
This fork works, but it's an older one, same as the Debian repository's one.
On Wed, Jan 31, 2024 at 4:11 AM Paulchen232 @.***> wrote:
Have you alle what on "On Ubuntu/Debian use:" is? I think try this fork https://github.com/kenorb-contrib/tgl but the updates are also old.
— Reply to this email directly, view it on GitHub https://github.com/vysheng/tg/issues/1802#issuecomment-1918183441, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRJ6DHH3XFTJ5M5VML2433YRGK4NAVCNFSM6AAAAABCKLYIN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYGE4DGNBUGE . You are receiving this because you authored the thread.Message ID: @.***>
-- Kind regards, Oleg Tyurin
It doesn't accept my phone number for some reason. Will try it with keys. Thanks for you help
Hi! How to make tg on Debian? configure script works ok, but make gives me: make: *** No rule to make target 'tgl/scheme.tl', needed by 'auto/scheme.tl'. Stop. what should I do?
My system: Debian GNU/Linux 11 (bullseye)