distcc-2.12.1 builds just fine on Solaris 8 using the Sun ONE Studio 7 compiler, except for one warning you may want to fix:
"src/mon-gnome.c", line 425: warning: implicit function declaration: getloadavg
Indeed getloadavg is not a POSIX function, it's a BSD function that's probably available on most UNIX systems, but not necessarily in the same header or library.
On Linux it is documented to live in <stdlib.h> while on Solaris it lives in <sys/loadavg.h>:
$ uname -sr SunOS 5.8 $ fgrep getloadavg /usr/include/*.h /usr/include/*/*.h /usr/include/sys/loadavg.h:extern int getloadavg(int *, int); /usr/include/sys/loadavg.h:extern int getloadavg(double [], int); /usr/include/sys/loadavg.h:extern int __getloadavg(int *, int); /usr/include/sys/syscall.h:#define SYS_getloadavg 105 $
I think there's an autoconf macro to handle that: http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_chapter/autoconf_5.html#IDX244 http://list-archive.xemacs.org/xemacs-patches/200007/msg00142.html
-- Dimitri
__ distcc mailing list http://distcc.samba.org/
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/distcc