Skip to content

Hosts found by Zeroconf do not have ,cpp,lzo options when listing with distcc --show-hosts #59

Description

@GoogleCodeExporter
My goal is to use distcc with pump while fetching the list of servers by
zeroconf.

What I did:
$ pump --startup
/usr/bin/pump: error: pump mode requested, but distcc hosts list does not
contain any hosts with ',cpp' option

The following output confirmed the problem:
$ distcc --show-hosts
192.168.0.71:3632/16
192.168.0.13:3632/8

distcc was configured to fetch the list of servers only from zeroconf
(which is what I need):
$ cat /etc/distcc/hosts
+zeroconf

When I changed the content of /etc/distcc/hosts to
192.168.0.71:3632/16,cpp,lzo
192.168.0.13:3632/8,cpp,lzo

pump managed to start and compilation went like a charm.
That was natural as those hosts have the same version of distccd and thus
support cpp and lzo.

I suppose that zeroconf host listing code should figure out somehow whether
remote host supports cpp and/or lzo features (maybe by means of extra
zeroconf TXT field?) and add those options to host description lines so
that distcc-pump can work with hosts found by means of zeroconf.

$ distcc --version
distcc 3.1 x86_64-pc-linux-gnu
  (protocols 1, 2 and 3) (default port 3632)
  built Jan 23 2010 16:47:55
Copyright (C) 2002, 2003, 2004 by Martin Pool.
Includes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer.
Portions Copyright (C) 2007-2008 Google.

distcc comes with ABSOLUTELY NO WARRANTY.  distcc is free software, and
you may use, modify and redistribute it under the terms of the GNU 
General Public License version 2 or later.

Built with Zeroconf support.

Installed from Ubuntu Karmic repository.

I'm running Ubuntu Karmic Koala.

$ gcc --version
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1

$ uname -a
Linux cesar-laptop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC
2009 x86_64 GNU/Linux

$ avahi-daemon --version
avahi-daemon 0.6.25

Original issue reported on code.google.com by madkinder on 23 Jan 2010 at 4:38

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions