[distcc] bug: distcc compile fail on AIX 4.3.3

giovanni gpanco at tiscali.it
Tue Nov 23 10:57:00 GMT 2004


hi,
i got an error while building distcc 2.18.1 on AIX 4.3.3 using gcc
3.3.4:

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src
-DSYSCONFDIR="\"/usr/local/etc\""
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I./lzo -mcpu=power -O3
-W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wconversion -Wpointer-arith
-Wmissing-declarations -o src/rpc.o -c src/rpc.c 
src/rpc.c:207: error: conflicting types for `dcc_r_str_alloc'
src/distcc.h:268: error: previous declaration of `dcc_r_str_alloc'
make: *** [src/rpc.o] Error 1

after  this patch,  compile and go ok (for me): 

--- distcc.h.org        2004-11-03 03:47:22.000000000 +0100
+++ distcc.h    2004-11-23 10:09:24.000000000 +0100
@@ -265,7 +265,6 @@
 
 int dcc_readx(int fd, void *buf, size_t len);
 int dcc_pump_sendfile(int ofd, int ifd, size_t n);
-int dcc_r_str_alloc(int fd, size_t len, char **buf);
 
 int tcp_cork_sock(int fd, int corked);
 int dcc_close(int fd);

plese cc to me i am not subcribed to ml.

-- 
giovanni


More information about the distcc mailing list