[distcc] Re: Re: distccmon-text doesn't only shows blank lines

Mark Morschhäuser mark at tvk.rwth-aachen.de
Wed Jul 14 08:20:55 GMT 2004


Martin Pool wrote:
> 
> What doesn't work?
> 
I am using 2 Gentoo-Machines with distcc and ccache. distcc works, I can see
that with gkrellm, top and in my syslog.
But distccmon-text and distccmon-gnome do not work: they just show blank lines.

I invoke the command on the client-machine (I tried the server-machine too) with
DISTCC_DIR=/var/tmp/portage/.distcc distccmon-gnome

and it doesn't work. I have read that there might be a permissionproblem:
It has to be executed as portage-user or as the same user that compiles/emerges
on the server.

So I tried
DISTCC_DIR=/var/tmp/portage/.distcc sudo -u portage distccmon-gnome

But that doesn't work too. I am emerging and compiling as root and the command
doesn't work when I'm root.

I have read that I should watch the DISTCC_DIR while I execute
distccmon-text/gnome but in that directory doesn't happen anything.

I checked the permissions from that directory but that seems to be ok:
drwxrwsr-x     4 portage portage    96 13. Jul 14:00 .distcc

/var/tmp/portage/.distcc:
drwxrwsr-x     4 portage portage    96 13. Jul 14:00 .
drwxr-xr-x  1202 portage portage 41856 14. Jul 01:34 ..
drwxrwsr-x     2 portage portage   128 13. Jul 14:00 lock
drwxrwsr-x     2 portage portage    48 13. Jul 18:33 state

/var/tmp/portage/.distcc/lock:
insgesamt 0
drwxrwsr-x  2 portage portage 128 13. Jul 14:00 .
drwxrwsr-x  4 portage portage  96 13. Jul 14:00 ..
-rw-r--r--  1 portage portage   0 13. Jul 14:00 cpu_localhost_0
-rw-r--r--  1 portage portage   0 13. Jul 14:00 cpu_tcp_SERVERIP_3632_0

/var/tmp/portage/.distcc/state:
insgesamt 0
drwxrwsr-x  2 portage portage 48 13. Jul 18:33 .
drwxrwsr-x  4 portage portage 96 13. Jul 14:00 ..

Then I have read that I should try an strace but I cannot see something there:
DISTCC_DIR='/var/tmp/portage/.distcc' strace distccmon-text
execve("/usr/bin/distccmon-text", ["distccmon-text"], [/* 47 vars */]) = 0
uname({sys="Linux", node="moon", ...})  = 0
brk(0)                                  = 0x8052000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=98037, ...}) = 0
mmap2(NULL, 98037, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 U\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1201416, ...}) = 0
mmap2(NULL, 1132332, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40030000
mmap2(0x4013f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10e)
= 0x4013f000
mmap2(0x40142000, 10028, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED
MAP_ANONYMOUS, -1, 0) = 0x40142000
close(3)                                = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x40017840, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
useable:1}) = 0
munmap(0x40018000, 98037)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "h\234\214B", 4)                = 4
close(3)                                = 0
brk(0)                                  = 0x8052000
brk(0x8073000)                          = 0x8073000
brk(0)                                  = 0x8073000
mkdir("/var/tmp/portage/.distcc/state", 0777) = -1 EEXIST (File exists)
open("/var/tmp/portage/.distcc/state", O_RDONLY|O_NONBLOCK|O_LARGEFILE
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|S_ISGID|0775, st_size=48, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 2 entries */, 131072)  = 48
getdents64(3, /* 0 entries */, 131072)  = 0
close(3)                                = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 184), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
write(1, "\n", 1
)                       = 1
nanosleep({0, 0}, NULL)                 = 0
munmap(0x40018000, 4096)                = 0
exit_group(0)                           = ?

I have checked every google-page, the gentoo-distcc-manual and some forums but
nothing helps...




More information about the distcc mailing list