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

Make error in ubuntu 18.04 #205

Open
gitgitgat-zz opened this issue Aug 19, 2019 · 1 comment
Open

Make error in ubuntu 18.04 #205

gitgitgat-zz opened this issue Aug 19, 2019 · 1 comment

Comments

@gitgitgat-zz
Copy link

Title says it.

make
make  all-am
make[1]: Entering directory '/home/user/Github/tlsdate'
  CC       src/tlsdate_helper-tlsdate-helper.o
src/tlsdate-helper.c: In function ‘openssl_time_callback’:
src/tlsdate-helper.c:377:11: error: dereferencing pointer to incomplete type ‘SSL’ {aka ‘const struct ssl_st’}
       (ssl->state == SSL3_ST_CR_SRVR_HELLO_A || ssl->state == SSL3_ST_CR_SRVR_HELLO_B))
           ^~
src/tlsdate-helper.c:377:22: error: ‘SSL3_ST_CR_SRVR_HELLO_A’ undeclared (first use in this function); did you mean ‘TLS_ST_CR_SRVR_HELLO’?
       (ssl->state == SSL3_ST_CR_SRVR_HELLO_A || ssl->state == SSL3_ST_CR_SRVR_HELLO_B))
                      ^~~~~~~~~~~~~~~~~~~~~~~
                      TLS_ST_CR_SRVR_HELLO
src/tlsdate-helper.c:377:22: note: each undeclared identifier is reported only once for each function it appears in
src/tlsdate-helper.c:377:63: error: ‘SSL3_ST_CR_SRVR_HELLO_B’ undeclared (first use in this function); did you mean ‘TLS_ST_CR_SRVR_HELLO’?
       (ssl->state == SSL3_ST_CR_SRVR_HELLO_A || ssl->state == SSL3_ST_CR_SRVR_HELLO_B))
                                                               ^~~~~~~~~~~~~~~~~~~~~~~
                                                               TLS_ST_CR_SRVR_HELLO
src/tlsdate-helper.c: In function ‘get_certificate_keybits’:
src/tlsdate-helper.c:414:21: error: dereferencing pointer to incomplete type ‘EVP_PKEY’ {aka ‘struct evp_pkey_st’}
   switch (public_key->type)
                     ^~
src/tlsdate-helper.c: In function ‘check_san’:
src/tlsdate-helper.c:698:18: error: dereferencing pointer to incomplete type ‘X509_EXTENSION’ {aka ‘struct X509_extension_st’}
         tmp = ext->value->data;
                  ^~
src/tlsdate-helper.c: In function ‘run_ssl’:
src/tlsdate-helper.c:1139:23: warning: implicit declaration of function ‘SSLv3_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
     ctx = SSL_CTX_new(SSLv3_client_method());
                       ^~~~~~~~~~~~~~~~~~~
                       SSLv23_client_method
src/tlsdate-helper.c:1139:23: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
     ctx = SSL_CTX_new(SSLv3_client_method());
                       ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/tlsdate-helper.h:38,
                 from src/tlsdate-helper.c:78:
/usr/include/openssl/ssl.h:1478:17: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
                 ^~~~~~~~~~~
src/tlsdate-helper.c:1143:5: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
     ctx = SSL_CTX_new(TLSv1_client_method());
     ^~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/bio.h:13,
                 from ./src/tlsdate-helper.h:37,
                 from src/tlsdate-helper.c:78:
/usr/include/openssl/ssl.h:1854:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))
 ^~~~~~~~~~~~~~~~~~
src/tlsdate-helper.c:1207:27: error: dereferencing pointer to incomplete type ‘SSL’ {aka ‘struct ssl_st’}
   memcpy(&result_time, ssl->s3->server_random, sizeof (uint32_t));
                           ^~
make[1]: *** [Makefile:2033: src/tlsdate_helper-tlsdate-helper.o] Error 1
make[1]: Leaving directory '/home/user/Github/tlsdate'
make: *** [Makefile:1428: all] Error 2
@quickhot
Copy link

ssl should use 1.0.0, so build on ubuntu 16.04

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

2 participants