Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596666 - dev-libs/boost-1.62.0-r1: ssl provider doesn't work with libressl: /usr/include/boost/asio/ssl/impl/context.ipp:232:25: error: '::SSL_CTX_get_default_passwd_cb_userdata' has not been declared
Summary: dev-libs/boost-1.62.0-r1: ssl provider doesn't work with libressl: /usr/inclu...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL: https://svn.boost.org/trac/boost/tick...
Whiteboard:
Keywords:
: 611012 614456 614794 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-09 10:15 UTC by Klaus Kusche
Modified: 2019-02-20 19:30 UTC (History)
15 users (show)

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


Attachments
net-libs:nghttp2-1.15.0:20161009-083536.log (net-libs:nghttp2-1.15.0:20161009-083536.log,124.28 KB, text/plain)
2016-10-09 10:19 UTC, Klaus Kusche
Details
emerge-info.txt (emerge-info.txt,7.91 KB, text/plain)
2016-10-18 10:14 UTC, Toralf Förster
Details
config.log (config.log,116.26 KB, text/plain)
2016-10-18 10:14 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,388.17 KB, text/plain)
2016-10-18 10:14 UTC, Toralf Förster
Details
environment (environment,64.22 KB, text/plain)
2016-10-18 10:14 UTC, Toralf Förster
Details
net-libs:nghttp2-1.15.0:20161018-073014.log (net-libs:nghttp2-1.15.0:20161018-073014.log,50.50 KB, text/plain)
2016-10-18 10:14 UTC, Toralf Förster
Details
asio libressl patch (boost-1.62-asio-libressl.patch,2.14 KB, patch)
2016-10-28 10:30 UTC, Reinhard Biegel
Details | Diff
boost-1.62.0-r1_allow_build_against_libressl.patch (file_596666.txt,3.23 KB, patch)
2017-02-22 17:40 UTC, Pandu POLUAN
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Kusche 2016-10-09 10:15:52 UTC
Emerging net-libs/nghttp2-1.15.0 with dev-libs/boost-1.62.0-r1
fails with compile errors (see attached log)
(works with boost-1.61.0-r1).

emerge --info:
Portage 2.3.1 (python 2.7.12-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.4.0, glibc-2.23-r2, 4.7.6-hardened x86_64)
=================================================================
System uname: Linux-4.7.6-hardened-x86_64-Intel-R-_Core-TM-_i7-3940XM_CPU_@_3.00GHz-with-gentoo-2.3
KiB Mem:    32902628 total,  17639432 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 09 Oct 2016 07:15:01 +0000
sh bash 4.4
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.2::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-11.x Oracle-BCLA-JavaSE google-chrome googleearth Vivaldi FraunhoferFDK"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -flto -fuse-linker-plugin -O3 -fomit-frame-pointer -fweb -ftracer -fivopts -frename-registers -maccumulate-outgoing-args -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -flto -fuse-linker-plugin -O3 -fomit-frame-pointer -fweb -ftracer -fivopts -frename-registers -maccumulate-outgoing-args -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build --quiet-fail --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles keeptemp keepwork merge-sync news noclean parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.rub.de/download/gentoo-mirror http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo http://distfiles.gentoo.org"
LANG="en_DE.iso885915"
LC_ALL="en_DE.iso885915"
LDFLAGS="-march=native -mtune=native -flto -fuse-linker-plugin -O3 -fomit-frame-pointer -fweb -ftracer -fivopts -frename-registers -maccumulate-outgoing-args -pipe"
MAKEOPTS="-j8"
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/portage"
USE="64bit X a52 aac adobe-cff alsa amd64 apng applet archive ass avx bzip2 cairo cdda cdparanoia clang cli clipboard clockdiff contrast cups curl cxx dbus dconf demosaic detex devfs-compat dga divx dns dot dri dri3 drm dts dvd dvdnav dvdr dvi dvipdfm egl encode epspdf exif expat extra faad fdk ffmpeg fftw flac fontconfig foomaticdb fts3 g3dvl gallium gbm gdk-pixbuf gegl gif gimp glamor gles gles1 gles2 glib glibc-omitfp gmp graphics gs gstreamer gtk gtk2 gudev harfbuzz hpack-tools hpn htmlreport http http2 hwdb iconv icu imagemagick inotify javascript jbig jemalloc jemalloc3 jit jpeg jpeg2k kpathsea lasi latex latex3 lcdfilter lcms leaps_timezone lensfun libkms libnotify libopts libressl libsamplerate libwww lightning llvm llvm-gcc llvm-shared-libs lz4 lzma lzo mad matroska metalink metric midi minizip mmap mms mmx mmxext mng modern-top modules mp3 mpeg mpfr mta mudflap multicall natspec ncat ncurses ndiff nping nptl nscd nsplugin offensive ogg oldnet opencl opengl openmax openmp openvg opus orc pam pango pax_kernel pcap pcre pdf pdfimport pic plugins png policykit postproc postscript ppds proprietary-codecs pstricks pth ptpax quicktime r600-llvm-compiler rar raw readline realmedia right_timezone rle rpc rtc rule_generator sanitize scanner schroedinger scope seccomp secure-delete session smp sndfile sound sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 svc svg symlink sync-plugin-portage system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-sqlite systemd t1lib texi2html theora threads thunar tiff tools tracepath tremor truetype udev udisks unicode unlock-notify unwind usb user-session utils v4l v4l2 vaapi vdpau vim-with-x vorbis vpx webkit2 webp wext wifi wmf wmp wxwidgets x264 x265 xa xattr xcb xcomposite xetex xkb xmp xorg xpm xrandr xtpax xulrunner xv xvid xvmc zenmap zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard evdev synaptics" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_5 python2_7" RUBY_TARGETS="ruby22" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Klaus Kusche 2016-10-09 10:19:11 UTC
Created attachment 449656 [details]
net-libs:nghttp2-1.15.0:20161009-083536.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-09 10:24:33 UTC
In file included from /usr/include/boost/asio/ssl/context.hpp:786:0,
                 from /usr/include/boost/asio/ssl.hpp:19,
                 from /var/portage/portage/net-libs/nghttp2-1.15.0/work/nghttp2-1.15.0/src/includes/nghttp2/asio_http2.h:37,
                 from /var/portage/portage/net-libs/nghttp2-1.15.0/work/nghttp2-1.15.0/src/asio_common.h:32,
                 from /var/portage/portage/net-libs/nghttp2-1.15.0/work/nghttp2-1.15.0/src/asio_common.cc:25:
/usr/include/boost/asio/ssl/impl/context.ipp: In destructor 'boost::asio::ssl::context::~context()':
/usr/include/boost/asio/ssl/impl/context.ipp:232:25: error: '::SSL_CTX_get_default_passwd_cb_userdata' has not been declared
     void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
                         ^
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-09 10:38:15 UTC
This may need a tracker bug.
Comment 4 Toralf Förster gentoo-dev 2016-10-18 10:14:02 UTC
Created attachment 450646 [details]
emerge-info.txt

same at a tinderbox image
Comment 5 Toralf Förster gentoo-dev 2016-10-18 10:14:08 UTC
Created attachment 450648 [details]
config.log
Comment 6 Toralf Förster gentoo-dev 2016-10-18 10:14:12 UTC
Created attachment 450650 [details]
emerge-history.txt
Comment 7 Toralf Förster gentoo-dev 2016-10-18 10:14:15 UTC
Created attachment 450652 [details]
environment
Comment 8 Toralf Förster gentoo-dev 2016-10-18 10:14:18 UTC
Created attachment 450654 [details]
net-libs:nghttp2-1.15.0:20161018-073014.log
Comment 9 Nick Wallingford 2016-10-18 18:43:07 UTC
(In reply to Jeroen Roovers from comment #3)
> This may need a tracker bug.

This does not need a tracker as it is a bug in libressl and/or boost-1.62.0. Just the act of including the relevant boost header will cause compilation to fail, eg:

 ~ $ cat boostfail.cpp
#define BOOST_ASIO_SEPARATE_COMPILATION
#include <boost/asio/ssl/impl/src.hpp>
 ~ $ g++ -c -o boostfail boostfail.cpp
In file included from /usr/include/boost/asio/ssl/impl/src.hpp:22:0,
                 from boostfail.cpp:2:
/usr/include/boost/asio/ssl/impl/context.ipp: In destructor ‘boost::asio::ssl::context::~context()’:
/usr/include/boost/asio/ssl/impl/context.ipp:232:25: error: ‘::SSL_CTX_get_default_passwd_cb_userdata’ has not been declared
     void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
                         ^
<snip>

The other bugs, eg #595858 and #595828 should probably rolled into a single bug filed against boost and/or libressl.
Comment 10 David Seifert gentoo-dev 2016-10-21 20:08:40 UTC
This seems like an asio issue. I've pushed a new version that supposedly contains the fix.

commit 56dc4b75b092839d4d34f38f9a008f2802918410
Author: David Seifert <soap@gentoo.org>
Date:   Fri Oct 21 20:32:48 2016 +0200

    dev-cpp/asio: Version bump to 1.10.8
Comment 11 Klaus Kusche 2016-10-23 08:31:38 UTC
(In reply to David Seifert from comment #10)
> This seems like an asio issue. I've pushed a new version that supposedly
> contains the fix.

??? Most likely not: dev-cpp/asio is not even installed here.
Comment 12 Reinhard Biegel 2016-10-28 10:30:04 UTC
Created attachment 451732 [details, diff]
asio libressl patch

Faced same problem when compiling an out-of-tree application. Attached patch allows compilation, but application is not tested.
Comment 13 Tolga Dalman 2016-10-30 19:18:48 UTC
(In reply to Reinhard Biegel from comment #12)
> Created attachment 451732 [details, diff] [details, diff]
> asio libressl patch
> 
> Faced same problem when compiling an out-of-tree application. Attached patch
> allows compilation, but application is not tested.

That patch looks good to me. Have you tried to bring it upstream?
Comment 14 Reinhard Biegel 2016-11-02 09:22:09 UTC
Filed a ticket at https://svn.boost.org/trac/boost/ticket/12575
Comment 15 Nick Wallingford 2016-12-24 20:46:37 UTC
There's a pull request on github

https://github.com/boostorg/asio/pull/45
Comment 16 Dirk Best 2017-01-18 11:10:40 UTC
Please add this to bug #561854 as blocker.
Comment 17 Pandu POLUAN 2017-02-22 17:35:40 UTC
This bug is still happening 2017-02-23, when I try to emerge net-libs/nghttp2-1.18.1

However, I used the patch suggested in https://github.com/chriskohlhoff/asio/pull/142 instead of the patch attached here.

That patch has 6 hunks, while the patch attached here has only 5.

The patch requires a search-and-replace before it applies to dev-libs/boost-1.62.0-r1, though: 's|asio/include/|boost/|g'

I will attach the edited patch; it *has* been successfully applied to an emerge of dev-libs/boost-1.62.0-r1
Comment 18 Pandu POLUAN 2017-02-22 17:40:24 UTC
Created attachment 464742 [details, diff]
boost-1.62.0-r1_allow_build_against_libressl.patch

Patch adapted from https://github.com/chriskohlhoff/asio/pull/142 by 's|asio/include|boost|g'.

TESTING: Patch successfully applied on 'emerge =dev-libs/boost-1.62.0-r1' and allows 'emerge =net-libs/nghttp2-1.18.1' to complete successfuly.
Comment 19 SpanKY gentoo-dev 2017-02-22 18:32:23 UTC
looks like a bug in boost
Comment 20 SpanKY gentoo-dev 2017-02-28 23:58:25 UTC
*** Bug 611012 has been marked as a duplicate of this bug. ***
Comment 21 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-04-05 18:44:05 UTC
*** Bug 614456 has been marked as a duplicate of this bug. ***
Comment 22 Toralf Förster gentoo-dev 2017-06-05 08:38:50 UTC
still an issue in 1.23.1:

                 from /var/tmp/portage/net-libs/nghttp2-1.23.1/work/nghttp2-1.23.1/src/asio_common.cc:25:
/usr/include/boost/asio/ssl/impl/context.ipp: In destructor ‘boost::asio::ssl::context::~context()’:
/usr/include/boost/asio/ssl/impl/context.ipp:232:25: error: ‘::SSL_CTX_get_default_passwd_cb_userdata’ has not been declared
     void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
                         ^~
/usr/include/boost/asio/ssl/impl/context.ipp: In member function ‘boost::system::error_code boost::asio::ssl::context::use_certificate_chain(const boost::asio::const_buffer&, boost::system::error_code&)’:
Comment 23 Thomas 2017-11-24 12:46:53 UTC
Same when emerging net-libs/libtorrent-rasterbar-1.1.5-r1

Attachment 464742 [details, diff] fixes the issue here, too.
Comment 24 SpanKY gentoo-dev 2018-01-29 20:00:22 UTC
*** Bug 614456 has been marked as a duplicate of this bug. ***
Comment 25 SpanKY gentoo-dev 2018-01-29 20:04:59 UTC
*** Bug 614794 has been marked as a duplicate of this bug. ***
Comment 26 Stefan Strogin gentoo-dev 2019-02-20 19:27:28 UTC
Is this bug still actual? Can we close it?