Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576280 - sys-cluster/galera-25.3.13 -- ssl support required but asio/ssl.hpp not found or not usable -- '::SSLv2_method' has not been declared
Summary: sys-cluster/galera-25.3.13 -- ssl support required but asio/ssl.hpp not found...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 19:48 UTC by Gary E. Miller
Modified: 2016-03-02 21:40 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,2.88 KB, text/plain)
2016-03-02 19:50 UTC, Gary E. Miller
Details
environment (environment,102.35 KB, text/plain)
2016-03-02 19:50 UTC, Gary E. Miller
Details
config.log (config.log,7.61 KB, text/plain)
2016-03-02 19:52 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2016-03-02 19:48:16 UTC
Package fails in compile phase during emerge.

dagwood ~ # emerge sys-cluster/galera
[...]
Checking for C++ header file asio.hpp... yes
Checking for C++ header file asio/ssl.hpp... no
ssl support required but asio/ssl.hpp not found or not usable
compile with ssl=0 or check that openssl devel headers are usable
 * ERROR: sys-cluster/galera-25.3.13::gentoo failed (compile phase):
[...]

dagwood ~ # emerge --info '=sys-cluster/galera-25.3.13::gentoo'
Portage 2.2.27 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop, gcc-5.3.0, glibc-2.22-r2, 4.4.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    32775428 total,  29283368 free
KiB Swap:   25599996 total,  25599996 free
Timestamp of repository gentoo: Wed, 02 Mar 2016 18:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.5-r2::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://backup.rellim.com/gentoo-portage
    priority: -1000

bumblebee
    location: /var/lib/layman/bumblebee
    masters: gentoo
    priority: 50

mva
    location: /var/lib/layman/mva
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

voip
    location: /var/lib/layman/voip
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=ivybridge -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /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=ivybridge -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=20"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l2"
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="X a52 aac aacplus aacs accessibility acl acpi adns aesicm aio alsa amazon amd64 amr amrenc ao apng archive ares asyncdns asyncns audacious audiofile avahi avx bash-completion bbswitch bcmath berkdb binary-drivers bluetooth bluray bonjour bookmarks branding btrfs bzip2 cairo calendar capi caps cdaudio cdb cdda cdr celt cgroup chroot clang cli clucene consolekit cracklib crypt cryptsetup cscope ctype cups curl custom-optimization cxx daap dane dbus dc1394 declarative dga dirac diskio divx dlz dri dtmf dts dv dvb dvbplayer dvd dvdr dvi ecwj2k egl emboss encode equalizer exif expat extrafilters extras faac faad fam fame fat fdk festival ffmpeg fftw fileinfo filter firefox fits flac flite fontconfig foomaticdb fortran fortune fpm ftp g3dvl gallium gcdmaster gcrypt gd gdbm geoip geoloc geonames geos geotiff gif gimp git gkrellm glamor gles gles1 gles2 glib gmath gml gmp gnome-keyring gnuplot gnutls gost gpg gpgme gphoto2 gpm grammar grass grilo gs gsl gsm gstreamer gtk gtk3 gucharmap gutenprint h323 hardened harfbuzz hash hddtemp hfs highlight hostip hpijs http http2 httpd iax iconv icu id3tag imagemagick imlib infinality inkjar inotify introspection ipp iproute2 ipsec ipv6 irc ivr jabber jack java javascript jbig jpeg jpeg2k json keybinder krb4 ladspa lame largefile latex lcms ldap less libass libburn libedit libextractor libgcrypt libindicate libinput liblockfile libnotify libsamplerate libsoxr libsysfs libv4l2 libvisual live lm_sensors lmdb logrotate lua lv2 lxc lzma lzo mad manual math matroska mbrola mdadm mdnsresponder-compat mhash midi mkl mmap mmx mmxext mng modules mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer mtp multilib music musicbrainz mysql mysqli ncurses netcdf netlink network nfs nfsv4 nls nodrm nominatim nptl nsplugin ntfs nvidia offensive ogdi ogg ogm openal opencl opencv openexr opengl openmp openssl opus osmesa oss pam pango passwdqc pcap pch pcntl pcre pdf pdfimport perl phar pixmaps plazes plotutil plotutils png pnm policykit popcnt posix postproc ppds proj pth pulseaudio pvr python qos qt-static qt3support qt4 qt5 quicktime quvi rar raw rdesktop readline realmedia realtime rle rpc rpz rrdtool rtc rtmp rtsp run-as-root scanner schroedinger screen script scripts sctp sdl seccomp secure-delete server session sftp sharedmem shm shout simplexml sip sipim skins smi smime smp sndfile snmp sound spamassassin speex spell sqlite srt srtp sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification stream svg swat syntax-check syslog taglib tcl tcpd tcpwrapper theora thesaurus threads thumbnail tidy tiff timidity tk tokenizer toolame tools totem transcode tremor truetype tts tunepimp twolame udev udisks unbound unicode upnp upower urandom usb utils uxa v4l v4l2 vaapi vamp vcd vcdinfo vcdx vdpau vdr video vim-syntax visualization vlm vnc vorbis vorbis-psy vpx vxml wav wavpack webkit webp wifi wikipedia wireshark wma wmf wmp wps wxwidgets x264 x265 xanim xattr xcap xcb xcf xcomposite xface xfce xforms xft xine xinerama xml xmlrpc xmp xorg xosd xpm xrandr xrender xscreensaver xsl xslt xulrunner xv xvfb xvid xvmc xz yahoo yahoo-geo youtube zephyr zeroconf zip zlib zrtp zvbi" ABI_X86="64 32" 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="canon fuji 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" 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" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse synaptics evdev roccat_savu" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" USERLAND="GNU" VIDEO_CARDS="vesa intel" 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

dagwood ~ # emerge -pqv '=sys-cluster/galera-25.3.13::gentoo'
[ebuild  N    ] sys-cluster/galera-25.3.13  USE="ssl -garbd {-test}" CPU_FLAGS_X86="sse4_2"
Comment 1 Gary E. Miller 2016-03-02 19:50:07 UTC
Created attachment 427244 [details]
build.log
Comment 2 Gary E. Miller 2016-03-02 19:50:36 UTC
Created attachment 427246 [details]
environment
Comment 3 Gary E. Miller 2016-03-02 19:52:10 UTC
Created attachment 427248 [details]
config.log
Comment 4 Gary E. Miller 2016-03-02 19:53:04 UTC
Smoking gun in the config.log:

In file included from /usr/include/asio/ssl/context_service.hpp:25:0,
                 from /usr/include/asio/ssl/context.hpp:21,
                 from /usr/include/asio/ssl.hpp:19,
                 from .sconf_temp/conftest_11.cpp:2:
/usr/include/asio/ssl/detail/openssl_context_service.hpp: In member function 'void asio::ssl::detail::openssl_context_service::create(SSL_CTX*&, asio::ssl::context_base::method)':
/usr/include/asio/ssl/detail/openssl_context_service.hpp:69:28: error: '::SSLv2_method' has not been declared
       impl = ::SSL_CTX_new(::SSLv2_method());
                            ^
/usr/include/asio/ssl/detail/openssl_context_service.hpp:72:28: error: '::SSLv2_client_method' has not been declared
       impl = ::SSL_CTX_new(::SSLv2_client_method());
                            ^
/usr/include/asio/ssl/detail/openssl_context_service.hpp:75:28: error: '::SSLv2_server_method' has not been declared
       impl = ::SSL_CTX_new(::SSLv2_server_method());
                            ^
Comment 5 Gary E. Miller 2016-03-02 19:56:16 UTC
So it seems the bug is really in the dev-cpp/asio-1.4.8-r1 package, broken by openssl-1.0.2g-r1
Comment 6 Gary E. Miller 2016-03-02 19:58:56 UTC
I can re-emerging dev-cpp/asio-1.4.8-r1::gentoo just fine.  After re-emerging I still see this bug.
Comment 7 Brian Evans (RETIRED) gentoo-dev 2016-03-02 21:23:11 UTC

*** This bug has been marked as a duplicate of bug 576128 ***
Comment 8 Gary E. Miller 2016-03-02 21:30:21 UTC
(In reply to Brian Evans from comment #7)
> 
> *** This bug has been marked as a duplicate of bug 576128 ***

I disagree this is a duplicate, there is code in sys-cluster/galera that needs to change to support the new openssl.  Maybe depends on or blocks is a better approach.
Comment 9 Brian Evans (RETIRED) gentoo-dev 2016-03-02 21:32:33 UTC
(In reply to Gary E. Miller from comment #8)
> (In reply to Brian Evans from comment #7)
> > 
> > *** This bug has been marked as a duplicate of bug 576128 ***
> 
> I disagree this is a duplicate, there is code in sys-cluster/galera that
> needs to change to support the new openssl.  Maybe depends on or blocks is a
> better approach.

This is not a galera problem but an issue with dev-cpp/asio.  Please file a bug with them.
Comment 10 Gary E. Miller 2016-03-02 21:38:19 UTC
(In reply to Brian Evans from comment #9)
> 
> This is not a galera problem but an issue with dev-cpp/asio.  Please file a
> bug with them.

I just searched the code and I agree.  Given how big this mess is I'll let the 
big dogs resolve the core of the problems before proceeding.