Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614784 - <net-libs/libssh2-1.8.0 with dev-libs/openssl-1.1 - ../src/.libs/libssh2.so: undefined reference to `OpenSSL_add_all_ciphers'
Summary: <net-libs/libssh2-1.8.0 with dev-libs/openssl-1.1 - ../src/.libs/libssh2.so: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/libssh2/libssh2/is...
Whiteboard:
Keywords:
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2017-04-05 16:02 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2018-06-20 17:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,28.60 KB, text/plain)
2017-04-05 16:02 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-04-05 16:02:41 UTC
Created attachment 469286 [details]
build.log

make[1]: Entering directory '/var/tmp/portage/net-libs/libssh2-1.8.0/work/libssh2-1.8.0-abi_x86_64.amd64/tests'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/net-libs/libssh2-1.8.0/work/libssh2-1.8.0/tests -I../src -I../example  -I/var/tmp/portage/net-libs/libssh2-1.8.0/work/libssh2-1.8.0/src -I/var/tmp/portage/net-libs/libssh2-1.8.0/work/libssh2-1.8.0/include -I../src   -march=native -mtune=native -O2 -pipe -c -o ssh2.o /var/tmp/portage/net-libs/libssh2-1.8.0/work/libssh2-1.8.0/tests/ssh2.c
/bin/bash ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -mtune=native -O2 -pipe  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -o ssh2 ssh2.o ../src/libssh2.la 
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o .libs/ssh2 ssh2.o  -Wl,--as-needed ../src/.libs/libssh2.so -L/usr/lib64 -lssl -lcrypto -lz
../src/.libs/libssh2.so: undefined reference to `OpenSSL_add_all_ciphers'
../src/.libs/libssh2.so: undefined reference to `OpenSSL_add_all_algorithms'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:616: ssh2] Error 1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-08-15 04:26:27 UTC
https://www.libssh2.org/changes.html :

* openssl: add OpenSSL 1.1.0 compatibility
Comment 2 Andrew John Hughes 2018-06-20 17:26:31 UTC
Not sure why this is marked as fixed:

/mnt/builder/portage.build/portage/net-libs/libssh2-1.8.0-r1/work/libssh2-1.8.0/src/openssl.c:1071:9: error: implicit declaration of function ‘OpenSSL_add_all_ciphers’ [-Werror=implicit-function-declaration]
         OpenSSL_add_all_ciphers();
         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/builder/portage.build/portage/net-libs/libssh2-1.8.0-r1/work/libssh2-1.8.0/src/crypto.h:42:0,
                 from /mnt/builder/portage.build/portage/net-libs/libssh2-1.8.0-r1/work/libssh2-1.8.0/src/libssh2_priv.h:140,
                 from /mnt/builder/portage.build/portage/net-libs/libssh2-1.8.0-r1/work/libssh2-1.8.0/src/global.c:39:
/mnt/builder/portage.build/portage/net-libs/libssh2-1.8.0-r1/work/libssh2-1.8.0/src/global.c: In function ‘libssh2_init’:
/mnt/builder/portage.build/portage/net-libs/libssh2-1.8.0-r1/work/libssh2-1.8.0/src/openssl.h:230:3: error: implicit declaration of function ‘OpenSSL_add_all_algorithms’; did you mean ‘SN_id_tc26_algorithms’? [-Werror=implicit-function-declaration]
   OpenSSL_add_all_algorithms(); \
   ^
/mnt/builder/portage.build/portage/net-libs/libssh2-1.8.0-r1/work/libssh2-1.8.0/src/global.c:48:9: note: in expansion of macro ‘libssh2_crypto_init’
         libssh2_crypto_init();
         ^~~~~~~~~~~~~~~~~~~
Comment 3 Pacho Ramos gentoo-dev 2018-06-20 17:36:04 UTC
[master ec6f3e60c1ef] net-libs/libssh2: Fix openssl-1.1 compat (#614784)
 2 files changed, 78 insertions(+), 13 deletions(-)
 create mode 100644 net-libs/libssh2/files/libssh2-1.8.0-openssl11.patch