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

Build does not work on Ubuntu18.04 TLS #1653

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

Build does not work on Ubuntu18.04 TLS #1653

danuk opened this issue Mar 31, 2020 · 2 comments

Comments

@danuk
Copy link

danuk commented Mar 31, 2020

How to reproduce:

 git clone --recursive https://github.com/vysheng/tg.git && cd tg

./configure
make
.....

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
Makefile.tgl:20: recipe for target 'objs/crypto/rsa_pem_openssl.o' failed
make: *** [objs/crypto/rsa_pem_openssl.o] Error 1

@Paulchen232
Copy link

You can try that:
sudo apt-get install libssl1.0-dev

@minzak
Copy link

minzak commented Apr 23, 2020

Вот причина и лекарство:
libssl1.0-dev which was present in stretch but is removed from buster !

Create a new source file for stretch in /etc/apt/source.list.d/ and add source for stretch

deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

Create a apt config file under /etc/apt/apt.conf.d and add this line to the file

APT::Default-Release "buster";

https://unix.stackexchange.com/questions/60555/debian-is-it-possible-safe-to-install-packages-from-an-older-version-of-the-rep

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

3 participants