[distcc] building distcc 2.18 on Solaris

Dimitri Papadopoulos-Orfanos papadopo at www.NOSPAM.fr
Tue Oct 12 09:26:16 GMT 2004


Hi,

I got an errors while building distcc 2.18 on Solaris 8 using Sun's 
Forte 7 compiler:

cc -DHAVE_CONFIG_H -D_GNU_SOURCE -I./popt -I./src 
-DSYSCONFDIR="\"/usr/local/etc\"" 
-DPKGDATADIR="\"/usr/local/distcc-2.18/share/distcc\"" -Isrc -I./lzo -O 
-o src/history.o -c src/history.c
"src/distcc.h", line 122: syntax error before or at: pid_t
"src/distcc.h", line 122: warning: undefined or missing type for: pid_t
"src/distcc.h", line 137: syntax error before or at: pid_t
"src/distcc.h", line 137: warning: undefined or missing type for: pid_t
"src/distcc.h", line 138: warning: undefined or missing type for: int
"src/distcc.h", line 139: warning: undefined or missing type for: const
"src/distcc.h", line 140: warning: undefined or missing type for: const
"src/distcc.h", line 141: warning: undefined or missing type for: struct
"src/distcc.h", line 203: warning: dubious tag declaration: struct timeval
"src/distcc.h", line 204: warning: dubious tag in function prototype: 
struct timeval
"src/distcc.h", line 242: syntax error before or at: pid_t
"src/distcc.h", line 242: warning: undefined or missing type for: pid_t

This is because header distcc.h lacks the following line
	#include <sys/types.h>
to define "pid_t" and other types.

--
Dimitri Papadopoulos




More information about the distcc mailing list