Overview Description: If system is ipv6 enabled and local environment variable MPD_HOTS is set to "localhost" mpc quits with error. Program build tested: media-sound/mpc-0.12.0 Steps to Reproduce: 1) Compile in or as module (module name ipv6) ipv6 support in the kernel. Load the module with modprobe ipv6; 2) Start MPD daemon (by default mpd is bind to "localhost" which is 127.0.0.1); 3) Set local environment variable MPD_HOST to "localhost" or specify it on the command line before the command itself; 4) Execute mpc. Actual Results: $ MPD_HOST="localhost" mpc error: problems getting a response from "localhost" on port 6600 : Connection refused Workaround: Set local environment variable MPD_HOST to "127.0.0.1". mpc than behaves as expected. Additional information: $ emerge --info Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17.13 i686) ================================================================= System uname: 2.6.17.13 i686 AMD Athlon(tm) 64 Processor 3800+ Gentoo Base System version 1.12.6 Last Sync: Sat, 23 Dec 2006 02:50:01 +0000 distcc[12647] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc/distcc.log: Permissi on denied [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch" GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ " LANG="en_LT.UTF-8" LC_ALL="lt_LT.UTF-8" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --de lete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages' " PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://kaulas/gentoo-portage" USE="x86 3dnow 3dnowext X aac alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_ati ixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 als a_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_inte l8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_ asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm _plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec 958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_ pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_pl ug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plug ins_softvol ao aotuv audiofile berkdb bitmap-fonts bzip2 cairo caps cdparanoia cli clock-screen cracklib crypt cups dbus djvu dlloader dri dts dvd dvdread elibc_glibc encode fbcon flac fortran gdbm gif glibc-om itfp glitz gnutls gpm gtk gtk2 hddtemp iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog jbig jpeg jpeg2k kernel_linux key-screen libg++ logrotate mad md5sum mikmod mmap mmx mmxext mng mouse mp3 mpd musepack ncurses nls nodrm nptl nptlonly nvidia ogg openal opengl pam pango paste64 pcre perl png ppds p ppd python readline reflection rtc sdl session spell spl sse sse2 ssl startup-notification svg symlink tc pd theora tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia video_car ds_vesa vim-pager vim-syntax vim-with-x vorbis win32codecs xorg xprint xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS $ cat /etc/hosts 127.0.0.1 localhost ::1 localhost
Created attachment 104658 [details] strace ouptut MPD_HOST="localhost" strace mpc &> strace.mpc
The strace output suggests that mpc resolves localhost as, and is trying to connect to, ::1 - this might be a bug in mpc (inconsistent behavior between mpd and mpc, as mpd picks first entry for localhost, while mpc picks last). If you're not content with using the workaround, please file a bug upstream, or suggest a change to mpd package (perhaps default bind explicitly to "127.0.0.1" or "::1", depending on the ipv6 USE flag). I don't have an ipv6 setup available, so I can't debug much here.
Reported upstream. Report ID 0001419 under section mpc.
(In reply to comment #3) > Reported upstream. Report ID 0001419 under section mpc. > Closing as UPSTREAM, since this is being taken care of by upstream devs. I'm watching the upstream bug. Thanks for reporting it.