From nobody  Thu Oct 30 08:05:48 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id IAA16867;
          Thu, 30 Oct 1997 08:05:48 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199710301605.IAA16867@hub.freebsd.org>
Date: Thu, 30 Oct 1997 08:05:48 -0800 (PST)
From: ji@research.att.com
To: freebsd-gnats-submit@freebsd.org
Subject: FreeBSD-stable kernel will not compile
X-Send-Pr-Version: www-1.0

>Number:         4893
>Category:       kern
>Synopsis:       FreeBSD-stable kernel will not compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 30 08:10:01 PST 1997
>Closed-Date:    Fri Mar 13 08:55:05 PST 1998
>Last-Modified:  Fri Mar 13 08:58:59 PST 1998
>Originator:     John Ioannidis
>Release:        2.2.2-RELEASE
>Organization:
AT&T Labs Research
>Environment:
FreeBSD elf.tla.org 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Sun Oct 12 16:21:34 EDT 1997     root@elf.tla.org:/usr/src/sys/compile/ELF  i386

>Description:
I mirrored the FreeBSD-stable kernel sources from ftp.cdrom.com; 
I proceeded to config the GENERIC kernel provided, and when I changed
to compile/GENERIC and typed "make depend", this is what I got:

elf$ make depend
cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith  -nostdinc -I- -I. -I../.. -I/usr/include -DAPM_BROKEN_STATCLOCK -DFAILSAFE -DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -DMAXUSERS=10 -UKERNEL ../../i386/i386/genassym.c
In file included from ../../i386/i386/genassym.c:43:
../../sys/proc.h:176: field `p_md' has incomplete type
In file included from ../../i386/i386/genassym.c:67:
../../sys/user.h:101: field `u_pcb' has incomplete type
../../sys/user.h:111: field `u_md' has incomplete type
../../i386/i386/genassym.c: In function `main':
../../i386/i386/genassym.c:121: dereferencing pointer to incomplete type
../../i386/i386/genassym.c:122: dereferencing pointer to incomplete type
../../i386/i386/genassym.c:123: dereferencing pointer to incomplete type
../../i386/i386/genassym.c:124: dereferencing pointer to incomplete type
../../i386/i386/genassym.c:125: dereferencing pointer to incomplete type
../../i386/i386/genassym.c:126: dereferencing pointer to incomplete type
../../i386/i386/genassym.c:127: dereferencing pointer to incomplete type
../../i386/i386/genassym.c:128: dereferencing pointer to incomplete type
[...and so on...]

I evencompiled the -stable version of /usr/sbin/config, and the problem
persists. 

Help!
>How-To-Repeat:
	
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Fri Mar 13 08:55:05 PST 1998 
State-Changed-Why:  
The FreeBSD-STABLE kernel post-Oct. 30, 1997, does in fact compile. 

It's possible that you simply were unlucky and got it while it was indeed 
broken.  It's less possible that it simply won't compile on 2.2.2 (which  
would be unfortunate). 
. 
>Unformatted:
