Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688974 - net-libs/libssh-0.9.0 /work/libssh-0.9.0/include/libssh/libcrypto.h:115:26: error: implicit declaration of function ‘FIPS_mode’
Summary: net-libs/libssh-0.9.0 /work/libssh-0.9.0/include/libssh/libcrypto.h:115:26: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LibreSSL
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-06-30 00:00 UTC by jospezial
Modified: 2019-07-01 11:58 UTC (History)
1 user (show)

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


Attachments
libssh-0.9.0 build.log (build.log,46.60 KB, text/plain)
2019-06-30 00:00 UTC, jospezial
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2019-06-30 00:00:28 UTC
Created attachment 581458 [details]
libssh-0.9.0 build.log

[18/69] /usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DLIBSSH_EXPORTS -Isrc -I/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src -I/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/include -I.  -DNDEBUG -march=native -O2 -pipe -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 -Wmissing-field-initializers -Wformat -Wformat-security -Werror=format-security -fno-common -fstack-clash-protection -D_GNU_SOURCE -MD -MT src/CMakeFiles/ssh_shared.dir/kdf.c.o -MF src/CMakeFiles/ssh_shared.dir/kdf.c.o.d -o src/CMakeFiles/ssh_shared.dir/kdf.c.o -c /var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src/kdf.c
[19/69] /usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DLIBSSH_EXPORTS -Isrc -I/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src -I/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/include -I.  -DNDEBUG -march=native -O2 -pipe -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 -Wmissing-field-initializers -Wformat -Wformat-security -Werror=format-security -fno-common -fstack-clash-protection -D_GNU_SOURCE -MD -MT src/CMakeFiles/ssh_shared.dir/kex.c.o -MF src/CMakeFiles/ssh_shared.dir/kex.c.o.d -o src/CMakeFiles/ssh_shared.dir/kex.c.o -c /var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src/kex.c
FAILED: src/CMakeFiles/ssh_shared.dir/kex.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DLIBSSH_EXPORTS -Isrc -I/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src -I/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/include -I.  -DNDEBUG -march=native -O2 -pipe -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 -Wmissing-field-initializers -Wformat -Wformat-security -Werror=format-security -fno-common -fstack-clash-protection -D_GNU_SOURCE -MD -MT src/CMakeFiles/ssh_shared.dir/kex.c.o -MF src/CMakeFiles/ssh_shared.dir/kex.c.o.d -o src/CMakeFiles/ssh_shared.dir/kex.c.o -c /var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src/kex.c
In file included from /var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/include/libssh/wrapper.h:28,
                 from /var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/include/libssh/crypto.h:36,
                 from /var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/include/libssh/dh.h:26,
                 from /var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src/kex.c:33:
/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src/kex.c: In function ‘ssh_set_client_kex’:
/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/include/libssh/libcrypto.h:115:26: error: implicit declaration of function ‘FIPS_mode’ [-Werror=implicit-function-declaration]
  115 | #define ssh_fips_mode() (FIPS_mode() != 0)
      |                          ^~~~~~~~~
/var/tmp/portage/net-libs/libssh-0.9.0/work/libssh-0.9.0/src/kex.c:700:17: note: in expansion of macro ‘ssh_fips_mode’
  700 |             if (ssh_fips_mode()) {
      |                 ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
 * ERROR: net-libs/libssh-0.9.0::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 2563:  Called cmake-multilib_src_compile
 *   environment, line  743:  Called multilib-minimal_src_compile
 *   environment, line 1882:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 2126:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1817:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1815:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  611:  Called multilib-minimal_abi_src_compile
 *   environment, line 1876:  Called multilib_src_compile
 *   environment, line 2346:  Called cmake-utils_src_compile
 *   environment, line  763:  Called cmake-utils_src_make
 *   environment, line  944:  Called _cmake_ninja_src_make
 *   environment, line  460:  Called eninja
 *   environment, line 1243:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
Comment 1 jospezial 2019-06-30 00:06:47 UTC
The attachment function for submitting bug sucks.
No choice for file type.
Comment 2 Andreas Sturmlechner gentoo-dev 2019-06-30 11:01:18 UTC
libressl strikes again?
Comment 3 Andreas Sturmlechner gentoo-dev 2019-06-30 11:10:14 UTC
yes, it's libressl. https://marc.info/?l=openbsd-misc&m=139819485423701&w=2

> /* Returns true if the OpenSSL is operating in FIPS mode */
> #define ssh_fips_mode() (FIPS_mode() != 0)
Comment 4 Larry the Git Cow gentoo-dev 2019-07-01 11:58:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76c59c377a3f2cef432012075ebd9b2cec80102c

commit 76c59c377a3f2cef432012075ebd9b2cec80102c
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2019-07-01 11:17:51 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2019-07-01 11:57:37 +0000

    net-libs/libssh: add patch for LibreSSL
    
    Closes: https://bugs.gentoo.org/688974
    Package-Manager: Portage-2.3.67, Repoman-2.3.16
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 net-libs/libssh/files/libssh-0.9.0-libressl.patch | 33 +++++++++++++++++++++++
 net-libs/libssh/libssh-0.9.0.ebuild               |  5 +++-
 net-libs/libssh/libssh-9999.ebuild                |  5 +++-
 3 files changed, 41 insertions(+), 2 deletions(-)