Page MenuHomePhabricator

net-libs/libssh compile issue with libressl-2.6.5
Closed, ResolvedPublic

Description

At a stable hardened Gerntoo Linux with LibreSSL-2.6.5 I got:

/usr/bin/x86_64-pc-linux-gnu-gcc -DLIBSSH_EXPORTS -Isrc -I/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src -I/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/include -I.  -DNDEBUG -O2 -pipe -march=native -fPIC   -fvisibility=hidden -std=gnu99 -Wpedantic -Wall -Wshadow -Wmissing-prototypes -Wcast-align -Werror=address -Wstrict-prototypes -Werror=strict-prototypes -Wwrite-strings -Werror=write-strings -Werror-implicit-function-declaration -Wpointer-arith -Werror=pointer-arith -Wdeclaration-after-statement -Werror=declaration-after-statement -Wreturn-type -Werror=return-type -Wuninitialized -Werror=uninitialized -Wimplicit-fallthrough -Werror=strict-overflow -Wstrict-overflow=2 -Wno-format-zero-length -Wformat -Wformat-security -Werror=format-security -Wno-gnu-zero-variadic-macro-arguments -fno-common -MD -MT src/CMakeFiles/ssh_shared.dir/pki_crypto.c.o -MF src/CMakeFiles/ssh_shared.dir/pki_crypto.c.o.d -o src/CMakeFiles/ssh_shared.dir/pki_crypto.c.o -c /var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c: In function ‘pki_key_dup’:
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:307:9: error: implicit declaration of function ‘DSA_get0_pqg’ [-Werror=implicit-function-declaration]
         DSA_get0_pqg(key->dsa, &p, &q, &g);
         ^~~~~~~~~~~~
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:319:14: error: implicit declaration of function ‘DSA_set0_pqg’ [-Werror=implicit-function-declaration]
         rc = DSA_set0_pqg(new->dsa, np, nq, ng);
              ^~~~~~~~~~~~
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:327:9: error: implicit declaration of function ‘DSA_get0_key’; did you mean ‘DSA_generate_key’? [-Werror=implicit-function-declaration]
         DSA_get0_key(key->dsa, &pub_key, &priv_key);
         ^~~~~~~~~~~~
         DSA_generate_key
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:334:14: error: implicit declaration of function ‘DSA_set0_key’; did you mean ‘RSA_check_key’? [-Werror=implicit-function-declaration]
         rc = DSA_set0_key(new->dsa, npub_key, NULL);
              ^~~~~~~~~~~~
              RSA_check_key
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:373:9: error: implicit declaration of function ‘RSA_get0_key’; did you mean ‘RSA_check_key’? [-Werror=implicit-function-declaration]
         RSA_get0_key(key->rsa, &n, &e, &d);
         ^~~~~~~~~~~~
         RSA_check_key
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:383:14: error: implicit declaration of function ‘RSA_set0_key’; did you mean ‘RSA_check_key’? [-Werror=implicit-function-declaration]
         rc = RSA_set0_key(new->rsa, nn, ne, NULL);
              ^~~~~~~~~~~~
              RSA_check_key
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:409:13: error: implicit declaration of function ‘RSA_get0_factors’; did you mean ‘RSA_get_method’? [-Werror=implicit-function-declaration]
             RSA_get0_factors(key->rsa, &p, &q);
             ^~~~~~~~~~~~~~~~
             RSA_get_method
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:420:22: error: implicit declaration of function ‘RSA_set0_factors’; did you mean ‘RSA_set_method’? [-Werror=implicit-function-declaration]
                 rc = RSA_set0_factors(new->rsa, np, nq);
                      ^~~~~~~~~~~~~~~~
                      RSA_set_method
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:428:13: error: implicit declaration of function ‘RSA_get0_crt_params’; did you mean ‘ssh_get_key_params’? [-Werror=implicit-function-declaration]
             RSA_get0_crt_params(key->rsa, &dmp1, &dmq1, &iqmp);
             ^~~~~~~~~~~~~~~~~~~
             ssh_get_key_params
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:442:23: error: implicit declaration of function ‘RSA_set0_crt_params’; did you mean ‘RSA_set_ex_data’? [-Werror=implicit-function-declaration]
                 rc =  RSA_set0_crt_params(new->rsa, ndmp1, ndmq1, niqmp);
                       ^~~~~~~~~~~~~~~~~~~
                       RSA_set_ex_data
...
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c: In function ‘pki_dsa_signature_to_blob’:
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:1412:5: error: implicit declaration of function ‘DSA_SIG_get0’; did you mean ‘DSA_SIG_new’? [-Werror=implicit-function-declaration]
     DSA_SIG_get0(sig->dsa_sig, &pr, &ps);
     ^~~~~~~~~~~~
     DSA_SIG_new
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c: In function ‘pki_signature_to_blob’:
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:1478:13: error: implicit declaration of function ‘ECDSA_SIG_get0’; did you mean ‘ECDSA_SIG_new’? [-Werror=implicit-function-declaration]
             ECDSA_SIG_get0(sig->ecdsa_sig, &pr, &ps);
             ^~~~~~~~~~~~~~
             ECDSA_SIG_new
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c: In function ‘pki_signature_from_blob’:
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:1666:18: error: implicit declaration of function ‘DSA_SIG_set0’; did you mean ‘DSA_SIG_new’? [-Werror=implicit-function-declaration]
             rc = DSA_SIG_set0(sig->dsa_sig, pr, ps);
                  ^~~~~~~~~~~~
                  DSA_SIG_new
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c:1746:22: error: implicit declaration of function ‘ECDSA_SIG_set0’; did you mean ‘ECDSA_SIG_new’? [-Werror=implicit-function-declaration]
                 rc = ECDSA_SIG_set0(sig->ecdsa_sig, pr, ps);
                      ^~~~~~~~~~~~~~
                      ECDSA_SIG_new
/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/pki_crypto.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-gnu-zero-variadic-macro-arguments’
cc1: some warnings being treated as errors
[56/60] /usr/bin/x86_64-pc-linux-gnu-gcc -DLIBSSH_EXPORTS -Isrc -I/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src -I/var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/include -I.  -DNDEBUG -O2 -pipe -march=native -fPIC   -fvisibility=hidden -std=gnu99 -Wpedantic -Wall -Wshadow -Wmissing-prototypes -Wcast-align -Werror=address -Wstrict-prototypes -Werror=strict-prototypes -Wwrite-strings -Werror=write-strings -Werror-implicit-function-declaration -Wpointer-arith -Werror=pointer-arith -Wdeclaration-after-statement -Werror=declaration-after-statement -Wreturn-type -Werror=return-type -Wuninitialized -Werror=uninitialized -Wimplicit-fallthrough -Werror=strict-overflow -Wstrict-overflow=2 -Wno-format-zero-length -Wformat -Wformat-security -Werror=format-security -Wno-gnu-zero-variadic-macro-arguments -fno-common -MD -MT src/CMakeFiles/ssh_shared.dir/sftp.c.o -MF src/CMakeFiles/ssh_shared.dir/sftp.c.o.d -o src/CMakeFiles/ssh_shared.dir/sftp.c.o -c /var/tmp/portage/net-libs/libssh-0.8.5/work/libssh-0.8.5/src/sftp.c
ninja: build stopped: subcommand failed.
 * ERROR: net-libs/libssh-0.8.5::gentoo failed (compile phase):
 *   ninja -v -j3 -l0 failed
 * 
 * Call stack:

Event Timeline

toralf created this task.Dec 17 2018, 3:23 PM
asn added a subscriber: asn.Feb 7 2019, 2:46 PM

I'm sorry but we don't have support libressl. If you want support for it you need to implement the support for it.

asn added a project: Restricted Project.Wed, Feb 27, 8:35 AM
asn triaged this task as Wishlist priority.

FWIW seems that libssh-0.8.6 compiles fine here with LibreSSL-2.8.3

asn closed this task as Resolved.Fri, Mar 1, 8:22 AM
asn claimed this task.