[distcc] distcc-2.12 on IRIX
Dimitri Papadopoulos-Orfanos
papadopo at shfj.cea.fr
Fri Dec 19 14:44:18 GMT 2003
Hi,
distcc-2.12 builds just fine on IRIX 6.5.18 using SGI's MIPSpro 7.3.1.3
compiler, except for a few warnings you may want to fix.
cc-1164 cc: WARNING File = src/clinet.c, Line = 117
Argument of type "socklen_t *" is incompatible with parameter of type
"int *".
if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &rs, &rs_len) == 0)
^
cc-1552 cc: WARNING File = src/clinet.c, Line = 89
The variable "ret" is set but never used.
int ret;
^
cc-1552 cc: WARNING File = src/state.c, Line = 163
The variable "ret" is set but never used.
int ret;
^
cc-1116 cc: WARNING File = src/exec.c, Line = 261
Non-void function "dcc_spawn_child" (declared at line 240) should
return a
value.
}
^
cc-1116 cc: WARNING File = src/pump.c, Line = 162
Non-void function "dcc_r_bulk" (declared at line 147) should return a
value.
}
^
cc-1164 cc: WARNING File = src/daemon.c, Line = 277
Argument of type "socklen_t *" is incompatible with parameter of type
"int *".
if ((getpeername(STDIN_FILENO, psa, &len) == -1)) {
^
cc-1515 cc: WARNING File = src/dopt.c, Line = 222
A value of type "const char *" cannot be assigned to an entity of
type "char *"
.
level_name = poptGetOptArg(po);
^
cc-1185 cc: WARNING File = src/dopt.c, Line = 228
An enumerated type is mixed with another type.
rs_trace_set_level(level);
^
cc-1116 cc: WARNING File = src/dopt.c, Line = 262
Non-void function "distccd_parse_options" (declared at line 169)
should return
a value.
}
^
cc-1116 cc: WARNING File = src/dparent.c, Line = 150
Non-void function "dcc_standalone_server" (declared at line 96)
should return
a value.
}
^
cc-1164 cc: WARNING File = src/dparent.c, Line = 242
Argument of type "socklen_t *" is incompatible with parameter of type
"int *".
(struct sockaddr *) &cli_addr, &cli_len);
^
cc-1164 cc: WARNING File = src/dparent.c, Line = 279
Argument of type "socklen_t *" is incompatible with parameter of type
"int *".
acc_fd = accept(listen_fd, (struct sockaddr *) &cli_addr,
&cli_len);
^
cc-1164 cc: WARNING File = src/prefork.c, Line = 134
Argument of type "socklen_t *" is incompatible with parameter of type
"int *".
&cli_len);
^
By the way, about the accept() argument type (int, size_t, or socklen_t)
issue I had already reported in a previous post, an autoconf macro is
available after all. See:
http://www.gnu.org/software/ac-archive/htmldoc/ac_prototype_accept.html
http://www.gnu.org/software/ac-archive/htmldoc/ac_func_accept_argtypes.html
It would be better to fix this specific issue, as I think it could break
64-bit builds where the type of the argument is actually important.
--
Dimitri
More information about the distcc
mailing list