On Darwin Kernel Version 8.5.0 (Mac OS X 10.4.5) it isn't possible to run the build_test.sh because of an error in timelimit.c. The problem is located at the new_process_group function: Mac OS X uses setpgrp(0,0) but it doesn't define BSD_SETPGRP. The easy sollution is to command out the #ifdef BSD_SETPGRP line and the else statement, but a nicer fix is on you :) timelimit.c: static void new_process_group(void) { #ifdef BSD_SETPGRP if (setpgrp(0,0) == -1) { perror("setpgrp"); exit(1); } #else if (setpgrp() == -1) { perror("setpgrp"); exit(1); } #endif }
Oke, I have a dirty, evil, patch right here. In unistd.h (wich is included by timelimit.c) I added the following two lines: #ifndef BSD_SETPGRP #define BSD_SETPGRP #endif Now gcc thinks that BSD_SETPRGRP is set, so it compiles timelimit.c, but I still like to see this fixed in timelimit itself :) I change to severity to major because it isn't blocking anymore...
Created attachment 1770 [details] patch for Darwin (Mac OS X) setpgrp
Steffond's fix looks good to me - thanks for the quick patch! I've committed it - let's see if the farm likes it :-) Cheers, Vance
The fix fixed it :)