Subject: bin/6984: make build fails
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
List: netbsd-bugs
Date: 02/11/1999 08:32:46
>Number: 6984
>Category: bin
>Synopsis: make build fails
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 10 23:35:00 1999
>Last-Modified:
>Originator: Wolfgang Helbig
>Organization:
>Release: NetBSD-current from February 10
>Environment:
System: NetBSD rvc1 1.3I NetBSD 1.3I (RVC1) #6: Mon Feb 8 01:35:24 CET 1999 helbig@rvc1:/usr/src/sys/arch/i386/compile/RVC1 i386
>Description:
make build stops like this:
depend ===> sys/lkm/vfs/miscfs/fdesc
rm -f machine && ln -s /usr/src/sys/arch/i386/include machine
rm -f i386 && ln -s /usr/src/sys/arch/i386/include i386
mkdep -a -D_KERNEL -D_LKM -I. -I/usr/src/sys/lkm/vfs/miscfs/fdesc -I/usr/src/sys -I/usr/src/sys/arch -DUVM -DPMAP_NEW /usr/src/sys/lkm/vfs/miscfs/fdesc/lkminit_vfs.c /usr/src/sys/miscfs/fdesc/fdesc_vfsops.c /usr/src/sys/miscfs/fdesc/fdesc_vnops.c
In file included from /usr/src/sys/miscfs/fdesc/fdesc_vnops.c:54:
/usr/src/sys/sys/socketvar.h:45: opt_sb_max.h: No such file or directory
mkdep: compile failed.
*** Error code 1
>How-To-Repeat:
>Fix:
Here is a patch to sys/sys/socketvar.h:
--- socketvar.h.orig Wed Feb 10 13:21:50 1999
+++ socketvar.h Thu Feb 11 01:18:24 1999
@@ -41,9 +41,10 @@
#include <sys/select.h> /* for struct selinfo */
#include <sys/queue.h>
-#ifdef _KERNEL
+#if defined(_KERNEL) && !defined(_LKM)
#include "opt_sb_max.h"
-#else
+#endif
+#if !defined(_KERNEL)
struct uio;
#endif
>Audit-Trail:
>Unformatted: