[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compilation with openssl 1.1.0g (Ubuntu 18.04)


Trying to build version libssh version 7.5 on Ubuntu 18.04 which installed openssl 1.1.0g fails with the following.  Is there a work around?


[  1%] Building C object src/CMakeFiles/ssh_shared.dir/libcrypto.c.o
./libssh/src/libcrypto.c: In function ‘evp’:
./libssh/src/libcrypto.c:136:16: error: storage size of ‘md’ isn’t known
     EVP_MD_CTX md;
                ^~
./libssh/src/libcrypto.c:136:16: warning: unused variable ‘md’ [-Wunused-variable]
./libssh/src/libcrypto.c: In function ‘evp_init’:
./libssh/src/libcrypto.c:147:32: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX {aka struct evp_md_ctx_st}’
     EVPCTX ctx = malloc(sizeof(EVP_MD_CTX));
                                ^~~~~~~~~~
./libssh/src/libcrypto.c: In function ‘hmac_init’:
./libssh/src/libcrypto.c:325:23: error: dereferencing pointer to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’
   ctx = malloc(sizeof(*ctx));
                       ^~~~
./libssh/src/libcrypto.c:331:3: error: implicit declaration of function ‘HMAC_CTX_init’; did you mean ‘HMAC_CTX_new’? [-Wimplicit-function-declaration]
   HMAC_CTX_init(ctx); // openssl 0.9.7 requires it.
   ^~~~~~~~~~~~~
   HMAC_CTX_new
./libssh/src/libcrypto.c:336:7: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
       HMAC_Init(ctx, key, len, EVP_sha1());
       ^~~~~~~~~
In file included from /usr/include/openssl/evp.h:13:0,
                 from /usr/include/openssl/hmac.h:15,
                 from ./libssh/include/libssh/libcrypto.h:32,
                 from ./libssh/include/libssh/wrapper.h:26,
                 from ./libssh/include/libssh/packet.h:24,
                 from ./libssh/include/libssh/session.h:25,
                 from ./libssh/src/libcrypto.c:32:
/usr/include/openssl/hmac.h:28:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
 ^
./libssh/src/libcrypto.c:339:7: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
       HMAC_Init(ctx, key, len, EVP_sha256());
       ^~~~~~~~~
In file included from /usr/include/openssl/evp.h:13:0,
                 from /usr/include/openssl/hmac.h:15,
                 from ./libssh/include/libssh/libcrypto.h:32,
                 from ./libssh/include/libssh/wrapper.h:26,
                 from ./libssh/include/libssh/packet.h:24,
                 from ./libssh/include/libssh/session.h:25,
                 from ./libssh/src/libcrypto.c:32:
/usr/include/openssl/hmac.h:28:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
 ^
./libssh/src/libcrypto.c:342:7: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
       HMAC_Init(ctx, key, len, EVP_sha384());
       ^~~~~~~~~
In file included from /usr/include/openssl/evp.h:13:0,
                 from /usr/include/openssl/hmac.h:15,
                 from ./libssh/include/libssh/libcrypto.h:32,
                 from ./libssh/include/libssh/wrapper.h:26,
                 from ./libssh/include/libssh/packet.h:24,
                 from ./libssh/include/libssh/session.h:25,
                 from ./libssh/src/libcrypto.c:32:
/usr/include/openssl/hmac.h:28:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
 ^
./libssh/src/libcrypto.c:345:7: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
       HMAC_Init(ctx, key, len, EVP_sha512());
       ^~~~~~~~~
In file included from /usr/include/openssl/evp.h:13:0,
                 from /usr/include/openssl/hmac.h:15,
                 from ./libssh/include/libssh/libcrypto.h:32,
                 from ./libssh/include/libssh/wrapper.h:26,
                 from ./libssh/include/libssh/packet.h:24,
                 from ./libssh/include/libssh/session.h:25,
                 from ./libssh/src/libcrypto.c:32:
/usr/include/openssl/hmac.h:28:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
 ^
./libssh/src/libcrypto.c:348:7: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
       HMAC_Init(ctx, key, len, EVP_md5());
       ^~~~~~~~~
In file included from /usr/include/openssl/evp.h:13:0,
                 from /usr/include/openssl/hmac.h:15,
                 from ./libssh/include/libssh/libcrypto.h:32,
                 from ./libssh/include/libssh/wrapper.h:26,
                 from ./libssh/include/libssh/packet.h:24,
                 from ./libssh/include/libssh/session.h:25,
                 from ./libssh/src/libcrypto.c:32:
/usr/include/openssl/hmac.h:28:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
 ^
./libssh/src/libcrypto.c: In function ‘hmac_final’:
./libssh/src/libcrypto.c:366:3: error: implicit declaration of function ‘HMAC_CTX_cleanup’; did you mean ‘HMAC_CTX_get_md’? [-Wimplicit-function-declaration]
   HMAC_CTX_cleanup(ctx);
   ^~~~~~~~~~~~~~~~
   HMAC_CTX_get_md
./libssh/src/libcrypto.c: In function ‘aes_ctr128_encrypt’:
./libssh/src/libcrypto.c:458:3: error: implicit declaration of function ‘AES_ctr128_encrypt’; did you mean ‘AES_cfb128_encrypt’? [-Wimplicit-function-declaration]
   AES_ctr128_encrypt(in, out, len, cipher->key, cipher->IV, tmp_buffer, &num);
   ^~~~~~~~~~~~~~~~~~
   AES_cfb128_encrypt
src/CMakeFiles/ssh_shared.dir/build.make:518: recipe for target 'src/CMakeFiles/ssh_shared.dir/libcrypto.c.o' failed
make[2]: *** [src/CMakeFiles/ssh_shared.dir/libcrypto.c.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'src/CMakeFiles/ssh_shared.dir/all' failed
make[1]: *** [src/CMakeFiles/ssh_shared.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Archive administrator: postmaster@lists.cynapses.org