Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206808 - sys-devel/distcc-2.18.3-r12 using zeroconf has problems with ipv6-addresses
Summary: sys-devel/distcc-2.18.3-r12 using zeroconf has problems with ipv6-addresses
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: MATSUU Takuto (RETIRED)
URL: http://code.google.com/p/distcc/issue...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-20 20:48 UTC by Xake
Modified: 2009-03-19 17:38 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2008-01-20 20:48:22 UTC
Distcc does not seems to be able to sometimes handle ipv6-addresses. This manifests itself by choking on parsing of hosts-file resulting in distcc doing the compile locally.

Reproducible: Always

Steps to Reproduce:
1. Emerge distcc-2.18.3-r12
2. Enable zeroconf
3. run distcc --show-hosts

Actual Results:  
$ distcc --show-hosts
distcc[31262] (dcc_parse_tcp_host) ERROR: invalid tcp port specification in ":280:5fff:fed7:6814:3632/8
"
distcc[31262] (dcc_zeroconf_add_hosts) CRITICAL! failed to parse host file.

distcc[31262] (dcc_show_hosts) CRITICAL! Failed to get host list


Expected Results:  
(same output as this)
$ cat .distcc/zeroconf/hosts 
192.168.0.106:3632/8
192.168.0.1:3632/4
fe80::280:5fff:fed7:6814:3632/8


For a reason distcc chokes on this adress for some reason even if others are showing up. On the other hand: should distcc pick up local link addresses any way?

One other intresting point is that on my other system this is not a problem, as it only shows my ipv4-adresses.
distcc is compiled with ipv6-support on both computers.

Portage 2.1.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2-hardened, glibc-2.7-r1, 2.6.23-gentoo-r5 i686)
=================================================================
System uname: 2.6.23-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Timestamp of tree: Fri, 18 Jan 2008 17:47: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_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 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 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -pipe -O2 -ggdb -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -pipe -O2 -ggdb -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks parallel-fetch sandbox sfperms splitdebug strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.sunet.se/pub/os/Linux/distributions/gentoo"
LANG="sv"
LC_ALL="sv_SE.UTF-8"
LINGUAS="sv"
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 --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/openrc /usr/portage/local/layman/nouveau /usr/portage/local/layman/gnome /usr/local/overlays/portage"
SYNC="rsync://liten/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amr amrnb amrwb asf attr audioscrobbler avahi bash bash-completion berkdb bitmap-fonts bogofilter branding bzip2 cairo cdaudio cdda cddb cdr cli cracklib crypt cups curl dbus device-mapper disk-partition divx dpms dri dts dvd dvdnav dvdr dvdread eds eiglx emboss encode etcproposals evo evolution exif fam fat fbcondecor ffmpeg flac fortran freetype ftp fuse galago gd gdbm gedit gif gimp glib glitz glsa gmedia gmp gnome gnutls gpm gsf gstreamer gtk gtk2 gtkhtml hal hardened hpn iconv icu inotify ipv6 irda irmc isdnlog ithreads java jikes joystick jpeg kerberos keyring keyutils kqemu lcms ldap libnotify libofa libsexy lm_sensors logrotate mad matroska maxoptimization mdnsresponder-compat midi mikmod mmx mng mono moznocompose moznoirc moznomail mp3 mpeg msn mudflap musepack musicbrainz nautilus ncurses network network-cron networkmanager newspr nfs nls nntp nptl nptlonly ntp numeric obex offensive ogg opengl openmp pam pcre pdf perl physfs pic pidgin png policykit portage pppd print pulseaudio python qa qt3support quicktime rar readline real realmedia reflection rsvg rtc samba scanner sdl sensord session slang smp sou sound sox spamassasin spell spf spl sqlite sqlite3 srt sse sse2 ssh ssl startup-notification subtitles svg syslog tagwriting tcltk tcpd test theora threads tiff totem tracker truetype truetype-fonts tth type1-fonts unicode usb userlocales utf8 vnc vorbis win32codecs wma wmf wmp wnck wv wxwindows x264 x86 xattr xcb xinerama xinetd xml xml2 xorg xosd xprint xulrunner xv xvid zeroconf zlib" ALSA_CARDS="emu10k1 intel8x0 usb-audio" 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 rewrite setenvif 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="sv" USERLAND="GNU" VIDEO_CARDS="nouveau vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Xake 2008-04-10 14:41:35 UTC
the diffrence between the system seemed in the end being ipv6 being enabled for avahi on the non-working and disable on the working.

So distcc seems to not work (no matter if it is compiled with or without ipv6-support) with the ipv6 adresses provided by avahi.
Comment 2 Mike Hammill 2008-07-31 13:43:53 UTC
I can confirm the same behavior in distcc-2.18.3-r13 with avahi-0.6.22-r1: namely distcc fails to parse ipv6 addresses.  I agree also that if avahi has ipv6 enabled, distcc chokes whether or not the distcc's ipv6 flag is set or not.  The workaround is indeed to use -ipv6 with avahi. In that case distcc never sees any ipv6 addresses, so never chokes. Arch: i686.

Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2008-10-23 15:14:07 UTC
hmm, /etc/distcc/hosts, '--listen' and '--allow' also don't work with ipv6. I think that distcc does not support ipv6 yet. '--enable-rfc2553' is *not* for ipv6!!!