kern/176026: TCP wrappers caused quite a lot of warnings during "make buildworld"
Jukka Ukkonen
jau at iki.fi
Mon Feb 11 10:10:03 UTC 2013
>Number: 176026
>Category: kern
>Synopsis: TCP wrappers caused quite a lot of warnings during "make buildworld"
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 11 10:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Jukka Ukkonen
>Release: 9.1-STABLE
>Organization:
-----
>Environment:
FreeBSD sleipnir 9.1-STABLE FreeBSD 9.1-STABLE #0 r246649M: Mon Feb 11 09:30:26 EET 2013 root at sleipnir:/usr/obj/usr/src/sys/Sleipnir amd64
>Description:
TCP wrappers caused quite a lot of warnings during "make buildworld".
>How-To-Repeat:
Direct the output from "make buildworld" to a file and look for warnings generated while compiling tcp_wrappers.
>Fix:
Apply the attached patch.
Patch attached with submission follows:
--- contrib/tcp_wrappers/rfc931.c.orig 2013-02-11 08:22:46.000000000 +0200
+++ contrib/tcp_wrappers/rfc931.c 2013-02-11 08:23:10.000000000 +0200
@@ -17,6 +17,7 @@
/* System libraries. */
+#include <unistd.h>
#include <stdio.h>
#include <syslog.h>
#include <sys/types.h>
--- /usr/src/contrib/tcp_wrappers/clean_exit.c.orig 2013-02-11 08:26:58.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/clean_exit.c 2013-02-11 08:27:17.000000000 +0200
@@ -12,6 +12,7 @@
static char sccsid[] = "@(#) clean_exit.c 1.4 94/12/28 17:42:19";
#endif
+#include <unistd.h>
#include <stdio.h>
extern void exit();
--- /usr/src/contrib/tcp_wrappers/hosts_access.c.orig 2013-02-11 08:30:42.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/hosts_access.c 2013-02-11 08:31:20.000000000 +0200
@@ -35,6 +35,8 @@
#endif
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <stdio.h>
#include <syslog.h>
#include <ctype.h>
--- /usr/src/contrib/tcp_wrappers/options.c.orig 2013-02-11 08:32:30.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/options.c 2013-02-11 08:33:02.000000000 +0200
@@ -41,6 +41,8 @@
#include <sys/socket.h>
#include <sys/stat.h>
#include <netinet/in.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <netdb.h>
#include <stdio.h>
#define SYSLOG_NAMES
--- /usr/src/contrib/tcp_wrappers/percent_x.c.orig 2013-02-11 08:34:16.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/percent_x.c 2013-02-11 08:34:34.000000000 +0200
@@ -16,6 +16,7 @@
/* System libraries. */
+#include <unistd.h>
#include <stdio.h>
#include <syslog.h>
#include <string.h>
--- /usr/src/contrib/tcp_wrappers/shell_cmd.c.orig 2013-02-11 08:36:21.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/shell_cmd.c 2013-02-11 08:38:47.000000000 +0200
@@ -16,6 +16,8 @@
#include <sys/types.h>
#include <sys/param.h>
+#include <sys/wait.h>
+#include <unistd.h>
#include <signal.h>
#include <stdio.h>
#include <syslog.h>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list