Couple of days ago after mysql-connector-c got updated from 6.x to 8.x bind wanted to rebuild it self and it fails with following error: ../../contrib/dlz/drivers/dlz_mysql_driver.c: In function ‘mysql_create’: ../../contrib/dlz/drivers/dlz_mysql_driver.c:793:9: error: unknown type name ‘my_bool’; did you mean ‘bool’? 793 | my_bool auto_reconnect = 1; | ^~~~~~~ | bool Since i technically dont need mysql in bind i can simply add -mysql for net-dns/bind or mask >=dev-db/mysql-connector-c-8.0.17-r1 (currently i have it masked because it also causes problems with some auth module for apache, which i do need). Reproducible: Always Steps to Reproduce: 1. update to >=dev-db/mysql-connector-c-8.0.17-r1 2. USE=mysql emerge -1 net-dns/bind 3. mih ~ # emerge --info net-dns/bind Portage 2.3.73 (python 3.7.4-final-0, default/linux/amd64/17.1/hardened, gcc-9.2.0, glibc-2.29-r4, 5.2.9-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.2.9-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.6 KiB Mem: 6098120 total, 1267780 free KiB Swap: 4194300 total, 4192508 free Timestamp of repository gentoo: Sat, 24 Aug 2019 16:46:33 +0000 Head commit of repository gentoo: 6ee2854a568e6f7cdb0c40362a8c2ca05eec26d8 sh bash 5.0_p9 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 5.0_p9::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.7.4-r1::gentoo dev-util/cmake: 3.15.2::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.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.0::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-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 LocalPortage location: /usr/local/portage masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -pipe -O2 -fomit-frame-pointer -mfpmath=sse" 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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -pipe -O2 -fomit-frame-pointer -mfpmath=sse" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--exclude net-firewall/xtables-addons" 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="-march=native -pipe -O2 -fomit-frame-pointer -mfpmath=sse" 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="-march=native -pipe -O2 -fomit-frame-pointer -mfpmath=sse" GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://mirror.yandex.ru/gentoo-distfiles/" LANG="sl_SI.UTF8" LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu" LINGUAS="en sl" MAKEOPTS="-j4" PKGDIR="/var/cache/binpkgs" 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 apache2 apng authfile berkdb bittorrent bzip2 caps cgi cli client corefonts cracklib crypt curl cxx dhcp dlz dovecot-sasl eap exif expat experimental extraengine fontconfig ftp gd gdbm gif glib gmp gssapi gzip hardened http2 iconv icu idn intl iproute2 iptables ipv6 ithreads java jpeg kerberos lcms libtirpc lm_sensors lz4 lzma lzo maildir managesieve mp3 multilib mysql mysqli ncurses nls nptl openmp openssl pam pci pcntl pcre pcre16 pcre32 pdo perl php pie png posix python rar readline rpc rtmp ruby samba seccomp server session sieve slang smtp soap sockets socks5 spell split-usr sqlite ssh ssl ssp suexec svg tcpd threads tiff tracepath truetype udev unicode urandom usb vhosts webui xattr xml xmlreader xmlrpc xmlwriter xslt xtpax xz zip zlib zstd" 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 authn_dbd authn_socache authz_dbd cache_socache dbd http2 proxy proxy_html proxy_http proxy_http2 xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 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="libinput keyboard mouse" KERNEL="linux" L10N="en sl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="geoip" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= net-dns/bind-9.14.4::gentoo was built with the following: USE="berkdb caps dlz gssapi mysql python urandom xml zlib -dnsrps -dnstap -doc -fixed-rrset -geoip -gost -json -ldap -libressl -lmdb -odbc -postgres (-selinux) -static-libs" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_7 -python3_5 -python3_6" CFLAGS="-march=native -pipe -O2 -fomit-frame-pointer -mfpmath=sse -I/usr/include/db6.0" CXXFLAGS="-march=native -pipe -O2 -fomit-frame-pointer -mfpmath=sse -I/usr/include/db6.0" LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu -L/usr/lib64"
Created attachment 587964 [details] build.log attached build.log (obviously this is also probably problem for bind-9.15+)
Confirming on bind-9.14.6 here. Putting a mask on >=dev-db/mysql-connector-c-8.0.17-r1 makes it work for now, thank you. /Charlie
Created attachment 610712 [details, diff] Allow building against >=dev-db/mysql-connector-c-8 as well as earlier The patch is based on how dev-libs/poco-1.10.0 was changed for this upstream and applies against net-dns/bind-9.14.[89]. Someone with access should mark this bug as blocking bug 692570, BTW. I almost posted a duplicate.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1391e36805f38ef6a18fd2077095ad3f6c63261 commit a1391e36805f38ef6a18fd2077095ad3f6c63261 Author: Jouni Kosonen <jouni.kosonen@tukesoft.com> AuthorDate: 2020-02-02 05:48:52 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-02-14 16:01:41 +0000 net-dns/bind: fix building against >=dev-db/mysql-connector-c-8.x Closes: https://bugs.gentoo.org/692834 Signed-off-by: Jouni Kosonen <jouni.kosonen@tukesoft.com> Closes: https://github.com/gentoo/gentoo/pull/14529 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> net-dns/bind/bind-9.14.8.ebuild | 4 ++++ net-dns/bind/bind-9.14.9.ebuild | 4 ++++ net-dns/bind/bind-9.15.6.ebuild | 4 ++++ net-dns/bind/files/bind-9.14.8-mysql8-bool.patch | 15 +++++++++++++++ 4 files changed, 27 insertions(+)
This one is back btw with bind 9.16 version, because patch did not get carried over from previous versions, but until apr-util gets fixed i need to have >=mysql-connector-c-8 masked anyway....