net-dns/bind-9.5.0 is running several configure tests to determine whether IPv6 is availiable. One of these is failing: configure:16757: checking for in6_pktinfo configure:16805: result: no -- disabling runtime ipv6 support I have seen in the bug #225937 similar issue with freeradius, and it was related with glibc 2.8. Last time the BIND server was built with previous glibc, and IPv6 worked. So I suppose this structure was moved or renamed in glibc 2.8. Reproducible: Always Steps to Reproduce: 1.Emerge net-dns/bind-9.5.0 with USE-flag ipv6 2.Watch the configure log 3. Actual Results: IPv6 was disabled, though it is supported and needed. Expected Results: Compiling with IPv6 support. emerge --info: Portage 2.1.5.5 (hardened/x86/2.6, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-hardened-r2 i686) ================================================================= System uname: 2.6.24-hardened-r2 i686 AMD Sempron(tm) Processor 2800+ Timestamp of tree: Sat, 14 Jun 2008 22:45:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13, 2.5.2-r4 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.62 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=athlon-4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles ftp://distfiles.gentoo.org" LANG="en_US.UTF-8" LC_ALL="" LDFLAGS="" LINGUAS="en ru" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acpi alsa apache2 apm bash-completion berkdb cracklib crypt fbcon hardened imap ipv6 java ldap midi mysql ncurses nls nptl nptlonly pam php pic pop readline samba sasl smtp ssl tcpd truetype unicode utf8 vhosts vim-syntax x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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 proxy proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Ok, it seems I have solved this bug. This is indeed related to _GNU_SOURCE. Attaching new ebuild and patch file. Bind built from it works with IPv6 perfectly.
Created attachment 157017 [details] ebuild file that fixes the problem This is a ebuild that fixes this bug by applying a patch and initiatiang eautoreconf in one subdirectory (which has got separate configure script).
Created attachment 157021 [details, diff] patch that fixes the bug This is a patchfile for defining _GNU_SOURCE and fixing a forgotten #include <config.h> in one .c file.
Created attachment 157023 [details] ebuild file that fixes the problem for bind-tools This is similar ebuild that adds patch and eautoreconf to enable ipv6 in bind-tools.
Created attachment 157025 [details, diff] A patch to bind-tools A patch to bind-tools that fixes problem with IPv6
Is this going to make it into the tree? Please? The patch for the recent dns security issue bumped the ebuild... but this patch didn't make it, so ipv6 dns support got re-broken on all my machines with ~glibc.
bump... the patch isn't in the ebuild as of bind-9.5.0_p1-r1
(In reply to comment #7) > bump... the patch isn't in the ebuild as of bind-9.5.0_p1-r1 > would you please stop that? i know what patches are in and what is still on my todo list. thanks ...
Fixed in bind-tools-9.5.0_p1-r2 and bind-9.5.0_p1-r2.