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

Bug 665156

Summary: dev-libs/apr-util-1.5.4 fails to build against mariadb + mysql-connector-c
Product: Gentoo Linux Reporter: Manuel Schmitt <manuel.schmitt>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED INVALID    
Severity: major CC: hydrapolic, jstein
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 635272    
Bug Blocks:    

Description Manuel Schmitt 2018-09-03 12:24:34 UTC
We encounter this problem on multiple hosts.

When building apr-util 1.5.4 against systems with

  dev-db/mysql-connector-c-6.1.11-r1

  dev-db/mariadb-10.1.34
  (both just client-libs -server)

and USE-flag "mysql" set for apr-util, it fails to build

  /usr/lib64/apr-util-1/apr_dbd_mysql.so

It compiles perfectly, no errors, nothing, but the file is NOT there.

On systems with origignal mysql it does NOT cause these problems.
Comment 1 Manuel Schmitt 2018-09-03 12:25:15 UTC
Possibly it has to do with

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759158
Comment 2 Manuel Schmitt 2018-09-03 13:05:06 UTC
It happens with
* 1.5.4
* 1.5.4-r3 

It does NOT happen with
* 1.6.1

Seems to be the bug from debia.org above.
Comment 3 Jonas Stein gentoo-dev 2018-09-03 17:56:02 UTC
Thank you for the report. Please recompile and 
*attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The logs must be part of the ticket, but not on external websites.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 4 Manuel Schmitt 2018-09-04 04:47:52 UTC
[ emerge --info dev-libs/apr-util ]

Portage 2.3.40 (python 3.6.5-final-0, gcc-7.3.0, glibc-2.26-r7, 4.14.33 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.33-x86_64-AMD_FX-tm-6100_Six-Core_Processor-with-gentoo-2.4.1
KiB Mem:    16397136 total,    276444 free
KiB Swap:    4194236 total,   4194236 free
Timestamp of repository gentoo: Tue, 04 Sep 2018 01:15:01 +0000
Head commit of repository gentoo: a97f793050faa0bb5a9c9fe6e843545382d4b405
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r4::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://CENSORED/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA intel-ucode-20180807"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync multilib-strict news 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://mirror.manitu.net/gentoo http://ftp.uni-erlangen.de/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en us en_GB en_US"
MAKEOPTS="-j6"
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="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv idn ipv6 jpeg libtirpc modules multilib ncurses nls nptl openmp openssl pam pcre png python qemu readline seccomp ssl tcpd tiff unicode vhost-net vim-syntax virt-network xattr 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de-DE en-US en-GB en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-libs/apr-util-1.5.4::gentoo was built with the following:
USE="berkdb gdbm mysql openssl -doc -freetds -ldap -nss -odbc -postgres -sqlite -static-libs" ABI_X86="(64)"



[ /var/tmp/portage/dev-libs/apr-util/temp/build.log ]

Log does not exist as it the compile works but does not build the correct file!
Comment 5 Manuel Schmitt 2018-09-04 05:00:39 UTC
Possible it has to do with

    https://bz.apache.org/bugzilla/show_bug.cgi?id=61517

    http://mail-archives.apache.org/mod_mbox/apr-bugs/201709.mbox/%3Cbug-61517-43213@https.bz.apache.org/bugzilla/%3E

    https://jira.mariadb.org/browse/MDEV-15220

And also (even if the following just tells about mariadb-connector-c and this also happens with mariadb+mysql-connector-c):

    https://bugzilla.redhat.com/show_bug.cgi?id=1494093
Comment 6 Manuel Schmitt 2018-09-13 07:51:08 UTC
Maybe also relevant:

    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230538
Comment 7 Manuel Schmitt 2018-09-17 11:42:40 UTC
As it seems, the problem is more far-reaching that just this bug. Closing it.
Comment 8 Manuel Schmitt 2018-09-17 11:55:43 UTC
We did open a new bug report:

   https://bugs.gentoo.org/666406

It seems the problem is apache related, not apr-util itself.