[distcc] Re: path gets trimmed to nothing (was distcc over SSH)

Ari Pollak ari at ccs.neu.edu
Tue Oct 14 02:43:43 GMT 2003


Actually, it looks like this problem suddenly went away on its
own, so I can't really test it. But yes, /arch/beta/bin/distcc
is a symlink (stow-style) to ../packages/distcc-2.11/bin/distcc.

On Mon, Oct 13, 2003 at 08:05:19PM +1000, Martin Pool wrote:
> On  2 Oct 2003, Ari Pollak <ari at ccs.neu.edu> wrote:
> > Hi, I'm having problems using distcc over SSH. distcc as a
> > daemon works fine, but this is less than optimal because of
> > security issues. However, running distcc over SSH seems to give
> > all sorts of PATH problems. distcc lives in /arch/beta/bin (the
> > convention for this enviornment). When calling make as 'make
> > CC="/arch/beta/bin/distcc /usr/bin/gcc"
> > CXX="/arch/beta/bin/distcc /usr/bin/g++"', it fails because it
> > either can't find ssh or as. Attached is the debugged output from
> > make/distcc.
> 
> Thanks for your bug report, and for including the right information.
> 
> > make[1]: Entering directory `/net/arch-linux/unix/src/wine-20030911/libs'
> > make[2]: Entering directory `/net/arch-linux/unix/src/wine-20030911/libs/port'
> > /arch/beta/bin/distcc /usr/bin/gcc -c -I. -I. -I../../include -I../../include  -D_REENTRANT -fPIC -D__WINESRC__ -Wall -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -g -O2 -o getopt.o getopt.c
> > distcc[15816] (dcc_trace_version) distcc 2.11 i686-pc-linux-gnu; built Oct  2 2003 09:30:44
> > distcc[15816] (dcc_recursion_safeguard) safeguard level=0
> > distcc[15816] (dcc_trim_path) original PATH /proj/crew/ari/BitTorrent-3.2.1b:~/bin:/proj/crew/ari/mplayer/bin:~/bin/linux:/proj/crew/ari/bin/linux:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/ccs/bin:/arch/beta/bin:/arch/beta/bin
> > distcc[15816] (dcc_set_path) setting PATH=
> 
> I think this is the problem.
> 
> Would I be right in guessing you have a link like 
> 
>   distcc -> distcc-2.11
> 
> in /arch/beta/bin?
> 
> Does this patch fix it?  You may need to make the change by hand.
> 
> Wayne, does this look reasonable to you?  I think trimming the path
> there is redundant.



More information about the distcc mailing list