Summary: | net-misc/jwhois-4.0 - Error creating socket when querying an IP address | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gordon Malm (RETIRED) <gengor> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | commando2004 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | https://savannah.gnu.org/bugs/index.php?37135 | ||
See Also: | http://bugs.debian.org/542148 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
fix ipv6 socket connection failure fallback
new ebuild with ipv4_ipv6 patch ipv4_ipv6 patch file for new ebuild 4.0-r1 |
Description
Gordon Malm (RETIRED)
2008-02-04 19:15:42 UTC
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gen too-r4 i686) ================================================================= System uname: 2.6.24-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Timestamp of tree: Thu, 10 Apr 2008 20:21:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/shar e/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon f /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-p hp5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans use rfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu de=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aac aalib acl alsa apache2 avahi bash-completion berkdb bonjour branding bzip2 cli cracklib crypt cups daap dbus dri ffmpeg flac fortran gd gdbm gnome gn utls gpm gstreamer gtk hal iconv ifp imap ipod ipv6 isdnlog java jpeg kde mad mi di mmx mozilla mp3 mp4 mudflap musepack musicbrainz mysql ncurses nls nptl nptlo nly nsplugin ntpl ntponly opengl openmp pam pcre perl php png postgres ppds pppd pulseaudio python qt3 qt4 readline reflection ruby samba session snmp spell spl sse2 ssl tcpd truetype unicode utf8 vim-syntax vorbis win32codecs x86 xinerama xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmip ci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel 8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS=" adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug l adspa lfloat linear meter mulaw multi null plug rate route share shm softvol" AP ACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_d bm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host a uthz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_c ache env expires ext_filter file_cache filter headers ident imagemap include inf o log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_b alancer proxy_connect proxy_http rewrite setenvif so speling status unique_id us erdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL ="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb n curses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Created attachment 159595 [details, diff]
fix ipv6 socket connection failure fallback
there was an error in the handling of the connection of the socket. if your kernel doesn't support ipv6 it didn't properly fall back to ipv4.
(In reply to comment #2) > there was an error in the handling of the connection of the socket. if your > kernel doesn't support ipv6 it didn't properly fall back to ipv4. actually i should probably post the patch when i wrote it since my memory was faulty. the issue is actually that it on systems that support getaddrinfo() it wouldn't detect when the connect() call succeeds and would work by accident if the final connect() succeeded. the final address that getaddrinfo() returns is usually ipv6 so on systems that don't support ipv6 it will fail and on systems that do support ipv6 it'll make several aborted attempts. Created attachment 283903 [details]
new ebuild with ipv4_ipv6 patch
Created attachment 283905 [details]
ipv4_ipv6 patch file for new ebuild 4.0-r1
But why this patch isn't in official portage!?! fixed in 4.0-r1 |