change in buildworld output when gcc -> clang
Robert Huff
roberthuff at rcn.com
Tue Jan 15 14:35:40 UTC 2013
Alexandre writes:
> > Before the installation of clang and the default system
> > compiler, "make buildworld" ended with a nice little banner announcing
> > the fact and the time the build completed.
> > After, it ends like this:
>
> Your mail has been truncated. Could you please send us the end?
Appended.
Looking at current@, I see someone else has noticed this.
Robert Huff
/usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:79:9: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration]
if (open("/dev/null", 2) != 0) {
^
/usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:81:16: warning: implicit declaration of function 'dup' is invalid in C99 [-Wimplicit-function-declaration]
} else if (dup(0) != 1 || dup(0) != 2) {
^
/usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:84:9: warning: implicit declaration of function 'execl' is invalid in C99 [-Wimplicit-function-declaration]
(void) execl("/bin/sh", "sh", "-c", command, (char *) 0);
^
/usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:91:5: warning: implicitly declaring library function '_exit' with type 'void (int) __attribute__((noreturn))'
_exit(0);
^
/usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:91:5: note: please include the header <unistd.h> or explicitly provide a declaration for '_exit'
7 warnings generated.
/usr/src/lib/libwrap/../../contrib/tcp_wrappers/update.c:110:33: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
sprintf(request->pid, "%d", getpid());
^
1 warning generated.
cc: warning: argument unused during compilation: '-L/usr/obj/usr/src/lib32/usr/lib32'
cc: warning: argument unused during compilation: '-L/usr/obj/usr/src/lib32/usr/lib32'
cc: warning: argument unused during compilation: '-L/usr/obj/usr/src/lib32/usr/lib32'
More information about the freebsd-questions
mailing list