우분투에서 텔레그램 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
ret->e = unwrap_bn (TGLC_bn_new ());
^
tgl/crypto/rsa_pem_openssl.c:42:33: error: dereferencing pointer to incomplete type
TGLC_bn_set_word (wrap_bn (ret->e), e);
^
tgl/crypto/rsa_pem_openssl.c:43:6: error: dereferencing pointer to incomplete type
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: dereferencing pointer to incomplete type
return wrap_bn (unwrap_rsa (key)->M); \
^
tgl/crypto/rsa_pem_openssl.c:52:1: note: in expansion of macro ‘RSA_GETTER’
RSA_GETTER(n);
^
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_e’:
tgl/crypto/rsa_pem_openssl.c:49:37: error: dereferencing pointer to incomplete type
return wrap_bn (unwrap_rsa (key)->M); \
^
tgl/crypto/rsa_pem_openssl.c:53:1: note: in expansion of macro ‘RSA_GETTER’
RSA_GETTER(e);
^
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);
---------------------------------------------------------------------------------------------------------
이렇게 촤르륵 뱉어낸다.
sudo apt-get update
sudo apt-get upgrade
해보고 다시 해봤는데도 안 되고,
인터넷 찾아보니
sudo apt-get install libgcrypt11-dev
sudo apt-get install libgcrypt20-dev
sudo apt-get install libssl1.0-dev
추가 설치해도 실패.
그러다가
./configure --disable-ssl
(./configure을 해줬던 위치에서.)
을 해준 뒤,
make clean
하고 다시
make 하니, 잘 되었다.
해결.
끝.
댓글 없음:
댓글 쓰기