net-misc/jwhois-4.0 gives "Error creating socket" when querying any IP address. net-misc/jwhois-3.2.3-r1 works as expected. I have tested/replicated this problem across atleast 4 machines. net-misc/jwhois-3.2.3-r1: host ~ # jwhois 127.0.0.1 [Querying whois.arin.net] [whois.arin.net] OrgName: Internet Assigned Numbers Authority OrgID: IANA Address: 4676 Admiralty Way, Suite 330 City: Marina del Rey StateProv: CA PostalCode: 90292-6695 Country: US NetRange: 127.0.0.0 - 127.255.255.255 CIDR: 127.0.0.0/8 NetName: LOOPBACK NetHandle: NET-127-0-0-0-1 Parent: NetType: IANA Special Use Comment: Please see RFC 3330 for additional information. RegDate: Updated: 2002-10-14 OrgAbuseHandle: IANA-IP-ARIN OrgAbuseName: Internet Corporation for Assigned Names and Number OrgAbusePhone: +1-310-301-5820 OrgAbuseEmail: abuse@iana.org OrgTechHandle: IANA-IP-ARIN OrgTechName: Internet Corporation for Assigned Names and Number OrgTechPhone: +1-310-301-5820 OrgTechEmail: abuse@iana.org # ARIN WHOIS database, last updated 2008-02-03 19:03 # Enter ? for additional hints on searching ARIN's WHOIS database. net-misc/jwhois-4.0: host ~ # jwhois 127.0.0.1 [Querying whois.arin.net] [Error creating socket] [Unable to connect to remote host] emerge --info output: Portage 2.1.3.19 (hardened/x86/2.6, gcc-3.4.6-hardenednossp, glibc-2.6.1-r0, 2.6.23-hardened-r6-2008012601 i686) ================================================================= System uname: 2.6.23-hardened-r6-2008012601 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Timestamp of tree: Sun, 03 Feb 2008 19:46: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-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 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.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon64 -msse3 -O2 -fomit-frame-pointer -fno-ident -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -msse3 -O2 -fomit-frame-pointer -fno-ident -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo/ ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ ftp://gentoo.osuosl.org/pub/gentoo/ ftp://mirror.usu.edu/mirrors/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="en en_US en_GB" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--compress --progress --exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d a52 aac aalib acl acpi adns alsa apache2 apm audiofile bash-completion bcmath berkdb bidi blas bluetooth bzip2 cairo calendar canna caps cdb cdinstall cdparanoia cdr cracklib crypt cscope ctype cups curl curlwrappers dba dbm dbus dbx dedicated dga dio directfb doc dri dts dv dvb dvd dvdr dvdread encode evo exif expat fam fastcgi fbcon ffmpeg fftw firefox flac flash flatfile foomaticdb fortran freetds freewnn ftp gb gcj gd gdbm geoip ggi gif ginac glut gmp gnome gnutls gphoto2 gpm gps graphviz gstreamer gtk gtk2 gtkhtml guile hal hardened iconv idn ieee1394 imagemagick imap imlib inifile ipv6 jack java javascript jbig jikes joystick jpeg jpeg2k junit kde ladspa lapack lash lcms ldap lesstif libcaca libg++ libgda libsamplerate libwww lirc lm_sensors lua mad maildir mailwrapper matroska mbox mcal mcve memlimit mhash midi mikmod mime ming mmap mmx mng mnogosearch mono motif mozilla mp3 mpeg mpi mplayer msession nas ncurses neXt netboot netcdf nis nls nptl nptlonly nsplugin ocaml offensive ofx ogg openal opengl osc pam pcntl pcre pda pdf perl php pic plotutils png portaudio posix ppds python qdbm qt3 qt4 quicktime radius readline recode ruby samba sasl scanner sdl seamonkey session sharedext sharedmem shorten simplexml slang slp smartcard smp sndfile snmp soap sockets socks5 sox speex spell spl sse sse2 ssl startup-notification svg svga sysvipc szip tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer truetype unicode urandom usb v4l vcd vhosts videos vim-syntax vorbis wddx wifi win32codecs wmf wxwindows x86 xface xine xinerama xinetd xml xmlrpc xorg xosd xpm xprint xsl xv xvid yaz zeo zlib" ALSA_CARDS="au8820 ca0106 emu10k1 intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev imstt mga nsc nv nvidia tdfx tga trident tseng v4l vesa vga via" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS Please let me know if I can be of further assitance. Reproducible: Always
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