Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


DistCC | 5 comments | Create New Account
Click here to return to the 'DistCC' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
DistCC
Authored by: TheGS on Aug 05, '03 09:18:08AM
I grabbed the source from distcc.samba.org and successfuly compiled and installed it on both my iBook and another machine, both running 10.2.6.

The only problem I had was when I tried to run distccd as a daemon when the current user was root (through the 'sudo' program) -- I did this to try to see what would happen if I set it up as a service in /Library/StartupItems/.

When run like this, distccd tries very hard to become a different user ('distcc', or 'nobody', but definitely not root). When it does this, it tries to give up as many privileges of root as it can before it switches to the desired user. One of the things it changes is the access group list for the process, and this is what caused distccd to exit for me. There is a call to setgroups(), passing 0 and NULL in order to clear out the access group list. The result of this call is an error (invalid parameter), and distccd handles this by spitting out an error message and quitting. Talk about a glass jaw!

My immediate workaround was to #ifdef out the appropriate lines of code in the source.

Works like a charm after that.

[ Reply to This | # ]