vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

Make error (debian) #1596

Closed vovoka closed 5 years ago

vovoka commented 5 years ago

Hi. I'm using Debian, Python3.7 trying to follow the instructions:

$ ./configure
>>> ok
$ 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 -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
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_new’:
tgl/crypto/rsa_pem_openssl.c:41:6: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
   ret->e = unwrap_bn (TGLC_bn_new ());
      ^~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_n’:
tgl/crypto/rsa_pem_openssl.c:52:1: error: control reaches end of non-void function [-Werror=return-type]
 RSA_GETTER(n);
 ^~~~~~~~~~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_e’:
tgl/crypto/rsa_pem_openssl.c:53:1: error: control reaches end of non-void function [-Werror=return-type]
 RSA_GETTER(e);
 ^~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile.tgl:20: objs/crypto/rsa_pem_openssl.o] Error 1

also tryed solution offered at other issue:

$ ./configure --disable-python --disable-json --disable-liblua
>>> ok
$ make 
>>> ...
interface.c: In function ‘our_id_gw’:
interface.c:3090:16: error: incompatible type for argument 1 of ‘py_our_id’
     py_our_id (id);
                ^~
In file included from interface.c:25:0:
python-tg.h:30:6: note: expected ‘int’ but argument is of type ‘tgl_peer_id_t {aka struct <anonymous>}’
 void py_our_id (int id);
      ^~~~~~~~~
make: *** [Makefile:48: objs/interface.o] Error 1

any idea how to compile it?

Paulchen232 commented 5 years ago

Have you try this: sudo apt-get install libssl1.0-dev

Paulchen232 commented 5 years ago

Is this going?

ferrigno commented 5 years ago

On Ubunto 18.04, it solved the issue

vovoka commented 5 years ago

@Paulchen232 thank you! Solved!

Mr3rf1 commented 4 years ago

@Paulchen232 That's do not work.

sudo apt-get install libssl1.0-dev

`Reading package lists... Done Building dependency tree
Reading state information... Done Package libssl1.0-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libssl1.0-dev' has no installation candidate`

Paulchen232 commented 4 years ago

Witch OS you have?

Paulchen232 commented 4 years ago

I found that:

"The results of apt search libssl show that the libssl package has been upgraded to libssl1.1 in Ubuntu 19.04 (and later)."

Try that: sudo apt install libssl1.1-dev

Paulchen232 commented 4 years ago

Work it now?