Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 694540 - dev-db/mysql-connector-c-8.0.17-r3: undefined reference to `SSL_CTX_set_ciphersuites'
Summary: dev-db/mysql-connector-c-8.0.17-r3: undefined reference to `SSL_CTX_set_ciphe...
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: 2019-09-16 09:43 UTC by Miroslav Šulc
Modified: 2019-09-16 17:29 UTC (History)
0 users

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


Attachments
build.log (build.log,267.51 KB, text/x-log)
2019-09-16 09:43 UTC, Miroslav Šulc
Details
environment (environment,111.22 KB, text/plain)
2019-09-16 09:44 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2019-09-16 09:43:12 UTC
Created attachment 589974 [details]
build.log

# emerge --info '=dev-db/mysql-connector-c-8.0.17-r3::gentoo'
Portage 2.3.76 (python 3.7.4-final-0, default/linux/amd64/17.1/hardened, gcc-9.2.0, glibc-2.29-r5, 5.2.14-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    32866892 total,  21470852 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 16 Sep 2019 08:00:01 +0000
Head commit of repository gentoo: 58c0cd655a74ade8e4ce2ca21cdd33094a6dbdfb
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7.4-r1::gentoo
dev-util/cmake:           3.15.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-vcs-ignore: true
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

fordfrog
    location: /usr/src/fordfrog.git
    masters: gentoo
    priority: 0

local
    location: /usr/local/portage
    masters: gentoo

waebbl
    location: /usr/src/waebbl-gentoo.git
    masters: gentoo
    priority: 1

audio-overlay
    location: /var/lib/layman/audio-overlay
    masters: gentoo
    priority: 50

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.1/conf /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf"
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 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs cs_CZ en en_US en_UK"
MAKEOPTS="-j9"
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 acl alsa amd64 bzip2 cdda cddb cdr color-management colord crypt cups cxx d3d9 dbus dia dssi dvb dvd elogind exif ffmpeg flac gegl gif gphoto2 gsm gtk gtk3 hardened http2 iconv icu id3tag ipv6 jack jacksession javafx jpeg ladspa lastfm latex lcms libass libnotify libproxy libtirpc lilypond lv2 mad modplug mp3 mpeg mpi mtp multilib musepack ncurses nls nptl ocr ogg opencl openexr opengl openmp opus pam pcre pdf pie png policykit pulseaudio qt5 raw readline samba scanner seccomp sf2 sndfile soundio speex spell split-usr ssl ssp startup-notification svg taglib theora tiff timidity tk tray truetype udev unicode usb vaapi vdpau visio vorbis vpx vst wavpack webp widevine wmf x264 x265 xattr xinerama xmp xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" 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="alias auth_basic authn_core authn_file authz_core authz_host authz_user deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput synaptics wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="*" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 radeon radeonsi" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


# emerge -pqv '=dev-db/mysql-connector-c-8.0.17-r3::gentoo'
[ebuild  r  U ] dev-db/mysql-connector-c-8.0.17-r3 [6.1.11-r2] USE="-ldap% -libressl -static-libs" ABI_X86="32 (64) (-x32)" 
[ebuild  rR   ] media-tv/kodi-9999  USE="X alsa css dbus dvd lcms mysql opengl pulseaudio samba (system-ffmpeg) udev udisks upower vaapi vdpau xslt -airplay -bluetooth -bluray -caps -cec -gbm -gles -libressl -libusb -lirc -mariadb -nfs (-raspberry-pi) -systemd -test -upnp -wayland -webserver -zeroconf" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_5 -python3_7" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7" 

The following packages are causing rebuilds:

  (dev-db/mysql-connector-c-8.0.17-r3:0/21::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (media-tv/kodi-9999:0/0::gentoo, ebuild scheduled for merge)
Comment 1 Miroslav Šulc gentoo-dev 2019-09-16 09:44:05 UTC
Created attachment 589976 [details]
environment
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-09-16 12:04:19 UTC
CMake detected TLS 1.3 support so you should have SSL_CTX_set_ciphersuites. Please tell us more about your used ssl provider.
Comment 3 Miroslav Šulc gentoo-dev 2019-09-16 12:50:14 UTC
i rebuilt openssl but the problem persists.

here is my openssl:

# equery list openssl
 * Searching for openssl ...
[IP-] [  ] dev-libs/openssl-1.1.1d:0/1.1

# emerge -vp openssl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-libs/openssl-1.1.1d:0/1.1::gentoo  USE="asm zlib -bindist -rfc3779 -sctp -sslv3 -static-libs -test -tls-heartbeat -vanilla" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="(sse2)" 0 KiB


# grep SSL_CTX_set_ciphersuites /usr/include/openssl/* -r
/usr/include/openssl/ssl.h:__owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);


/usr/lib/libssl.so contains following line:
923: 00025fe0    58 FUNC    GLOBAL DEFAULT   12 SSL_CTX_set_ciphersuites@@OPENSSL_1_1_1

the same for /usr/lib64/libssl.so:
923: 0000000000032450    50 FUNC    GLOBAL DEFAULT   12 SSL_CTX_set_ciphersuites@@OPENSSL_1_1_1


anything else that i could provide?
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2019-09-16 16:25:51 UTC
I am unable to reproduce. But wait, are you doing some 'crazy' multilib things? Your last comment looks like you have openssl only for ABI_X86="32" installed.
Comment 5 Brian Evans (RETIRED) gentoo-dev 2019-09-16 16:30:02 UTC
(In reply to Thomas Deutschmann from comment #4)
> I am unable to reproduce. But wait, are you doing some 'crazy' multilib
> things? Your last comment looks like you have openssl only for ABI_X86="32"
> installed.

You are misinterpreting the output.  It says ABI_X86="32 64" is enabled. It is just that 64 is forced by profile.
Comment 6 Brian Evans (RETIRED) gentoo-dev 2019-09-16 16:43:06 UTC
(In reply to Miroslav Šulc from comment #3)
> i rebuilt openssl but the problem persists.
> 
> here is my openssl:
> 
> # equery list openssl
>  * Searching for openssl ...
> [IP-] [  ] dev-libs/openssl-1.1.1d:0/1.1
> 
> # emerge -vp openssl
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] dev-libs/openssl-1.1.1d:0/1.1::gentoo  USE="asm zlib
> -bindist -rfc3779 -sctp -sslv3 -static-libs -test -tls-heartbeat -vanilla"
> ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="(sse2)" 0 KiB
> 
> 
> # grep SSL_CTX_set_ciphersuites /usr/include/openssl/* -r
> /usr/include/openssl/ssl.h:__owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx,
> const char *str);
> 
> 
> /usr/lib/libssl.so contains following line:
> 923: 00025fe0    58 FUNC    GLOBAL DEFAULT   12
> SSL_CTX_set_ciphersuites@@OPENSSL_1_1_1
> 
> the same for /usr/lib64/libssl.so:
> 923: 0000000000032450    50 FUNC    GLOBAL DEFAULT   12
> SSL_CTX_set_ciphersuites@@OPENSSL_1_1_1
> 
> 
> anything else that i could provide?

The CMake detection and linking happens on /usr/lib32/libssl.so not any of the providers listed there.  Perhaps this is the real issue.
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2019-09-16 16:44:44 UTC
Oh OK.

Just tried with ABI_X86="32 64" for dev-libs/openssl and dev-db/mysql-connector-c but still unable to reproduce.
Comment 8 Miroslav Šulc gentoo-dev 2019-09-16 17:05:19 UTC
(In reply to Brian Evans from comment #6)
> The CMake detection and linking happens on /usr/lib32/libssl.so not any of
> the providers listed there.  Perhaps this is the real issue.

thank you, i did not notice that, but that's exactly the cause. i removed /usr/lib32/libssl.so and now it compiles fine. i'll have to clean up /usr/lib32/ from libraries not claimed by any package...
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2019-09-16 17:08:27 UTC
Was this an incomplete 17.1 migration?
Comment 10 Miroslav Šulc gentoo-dev 2019-09-16 17:29:21 UTC
tbh, the migration was real mess in my case. idk how but lib32 dirs became symlinks to real lib dirs (and i did not notice that) so when i removed the lib32 dirs, i removed the live libs and my system was badly broken. i partially recovered it from backup and then rebuilt everything and cleaned up the system (at least i thought so), i even think i did not have /usr/lib32 dir there anymore but obviously the reality is different. will have to clean it again and verify things are not broken.