Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 742641

Summary: net-misc/curl-7.72.0::gentoo failed (configure phase) - configure: error: Default SSL backend gnutls not enabled!
Product: Gentoo Linux Reporter: Piotr Szymaniak <bugzie>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: CONFIRMED ---    
Severity: normal CC: kfm, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Piotr Szymaniak 2020-09-15 10:57:57 UTC
After some updates and removals I had to @preserve-rebuild curl because of gnutls changes, but it's not installed and curl rebuild failed. Not sure if thats a bug, but I have CURL_SSL="gnutls" and USE="-gnutls" - maybe it should check if those settings are correct?

(...)
checking openssl/pem.h usability... yes
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking for RAND_egd... no
checking for SSLv2_client_method... no
checking for OpenSSL_version... yes
checking for BoringSSL... no
checking for libressl... no
checking for OpenSSL >= v3... no
checking for OpenSSL headers version... 1.1.1 - 0x1010107fL
checking for OpenSSL library version... 1.1.1
checking for OpenSSL headers and library versions matching... yes
checking for "/dev/urandom"... yes
checking for SRP_Calc_client_key in -lcrypto... yes
checking for x86_64-pc-linux-gnu-pkg-config... (cached) /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking for gnutls options with pkg-config... no
configure: built with one SSL backend
configure: error: Default SSL backend gnutls not enabled!

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-misc/curl-7.72.0/work/curl-7.72.0-abi_x86_64.amd64/config.log
 * ERROR: net-misc/curl-7.72.0::gentoo failed (configure phase):


emerge --info
Portage 3.0.7 (python 3.7.9-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r1, 5.4.41 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.41-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.7
KiB Mem:     4041880 total,   2057204 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: bb16158910494c297a9baf2ee93ea36b15129777

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
ccache version 3.7.11 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.18.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mno-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -mno-sse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="amd64 libglvnd mmx openmp openssl readline split-usr sse sse2 ssl threads udev unicode" ABI_X86="64" CURL_SSL="gnutls" ELIBC="glibc" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python3_7" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-misc/curl-7.72.0::gentoo was built with the following:
USE="openssl ssl threads -adns -alt-svc -brotli -ftp -gnutls -gopher -http2 -idn -imap -ipv6 -kerberos -ldap -libressl -mbedtls -metalink (-nghttp3) -nss -pop3 -progress-meter -quiche -rtmp -samba -smtp -ssh -static-libs -telnet -test -tftp (-winssl)" ABI_X86="(64) -32 (-x32)" CURL_SSL="gnutls -libressl -mbedtls -nss -openssl (-winssl)"
FEATURES="unmerge-logs ebuild-locks config-protect-if-modified buildpkg binpkg-docompress binpkg-logs qa-unresolved-soname-deps strict binpkg-dostrip ipc-sandbox news merge-sync sandbox parallel-fetch usersandbox protect-owned unknown-features-warn sfperms usersync multilib-strict userfetch distlocks assume-digests pid-sandbox preserve-libs network-sandbox unmerge-orphans userpriv fixlafiles"


~ # emerge -pqv '=net-misc/curl-7.72.0::gentoo'
[ebuild   R   ] net-misc/curl-7.72.0  USE="openssl ssl threads -adns -alt-svc -brotli -ftp -gnutls -gopher -http2 -idn -imap -ipv6 -kerberos -ldap -libressl -mbedtls -metalink (-nghttp3) -nss -pop3 -progress-meter -quiche -rtmp -samba -smtp -ssh -static-libs -telnet -test -tftp (-winssl)" ABI_X86="(64) -32 (-x32)" CURL_SSL="gnutls -libressl -mbedtls -nss -openssl (-winssl)"


Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-09 08:58:14 UTC
Full build.log and config.log please
Comment 2 Rolf Eike Beer archtester 2021-04-17 16:47:59 UTC
Created attachment 700416 [details]
build.log

Happens the same with 7.76.0.

The problem is that the normal useflags (e.g. USE=gnutls) are not synced against curl_ssl_flags (e.g. curl_ssl_mbedtls). It is verified that only one crypto library is enabled, but there are 2 different ways to do this, and those 2 are not synced. It is only verified that only one is activated in either set.
Comment 3 Rolf Eike Beer archtester 2021-08-14 08:07:37 UTC
Still in 7.78.0