From nobody@FreeBSD.org  Wed Dec  8 18:07:56 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5384416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Dec 2004 18:07:56 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3D11D43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Dec 2004 18:07:56 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iB8I7tdm035549
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Dec 2004 18:07:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iB8I7sDf035548;
	Wed, 8 Dec 2004 18:07:54 GMT
	(envelope-from nobody)
Message-Id: <200412081807.iB8I7sDf035548@www.freebsd.org>
Date: Wed, 8 Dec 2004 18:07:54 GMT
From: Edward Lambert <efl@eticomm.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: on kernel recompile, "make depend" fails 
X-Send-Pr-Version: www-2.3

>Number:         74860
>Category:       kern
>Synopsis:       on kernel recompile, "make depend" fails
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 08 18:10:30 GMT 2004
>Closed-Date:    Tue Apr 12 00:43:49 GMT 2005
>Last-Modified:  Tue Apr 12 00:43:49 GMT 2005
>Originator:     Edward Lambert
>Release:        FreeBSD 5.3-RELEASE
>Organization:
ETI
>Environment:
FreeBSD name1.eticomm.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
    
>Description:
kernel rebuild fails on "make depend".
-------------------------------------------
  CC=cc make -f ../../../dev/aic7xxx/aicasm/Makefile MAKESRCPATH=../../../dev/aic7xxx/aicasm
Warning: Object directory not changed from original /usr/src/sys/i386/compile/NS1KERNEL
cc -O -pipe  -nostdinc -I/usr/include -I. -I../../../dev/aic7xxx/aicasm  -c ../../../dev/aic7xxx/aicasm/aicasm_symbol.c
./../../dev/aic7xxx/aicasm/aicasm_symbol.c:52:19: fcntl.h: No such file or directory
./../../dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_open':
./../../dev/aic7xxx/aicasm/aicasm_symbol.c:134: error: `O_CREAT' undeclared (first use in this function)
./../../dev/aic7xxx/aicasm/aicasm_symbol.c:134: error: (Each undeclared identifier is reported only once
./../../dev/aic7xxx/aicasm/aicasm_symbol.c:134: error: for each function it appears in.)
./../../dev/aic7xxx/aicasm/aicasm_symbol.c:134: error: `O_NONBLOCK' undeclared (first use in this function)
./../../dev/aic7xxx/aicasm/aicasm_symbol.c:134: error: `O_RDWR' undeclared (first use in this function)
*** Error code 1

Stop in /usr/src/sys/i386/compile/NS1KERNEL.
*** Error code 1
   
>How-To-Repeat:
< attempt to recompile kernel >

after "config mykernel" and cd to ../compile/mykernel, "make depend" fails.
Even if you try to recompile the GENERIC kernel, it fails.

>Fix:
Unknown
>Release-Note:
>Audit-Trail:

From: "Edward F. Lambert" <efl@eticomm.net>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: i386/74860: on kernel recompile, "make depend" fails - UPDATE
Date: Wed, 8 Dec 2004 14:25:01 -0500

 Solution:
 
 by copying the fcntl.h file from the /usr/src/sys directory
 to the /usr/src/sys/dev/aic7xxx/aicasm directory, the "make depend"
 now works.
 
 but the "make depend" fails if I use SCHED_ULE instead of SCHED_4BSD.
 
 =======================================================================
   Edward F. Lambert                      Email: efl@eticomm.net
   Senior Network Engineer                URL: http://www.eticomm.net/
   ETI                                    Phone: 856.753.3810 x1300
   Berlin, NJ  08009                      Fax:   856.753.9838
 =======================================================================
 
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Apr 12 00:41:53 GMT 2005 
State-Changed-Why:  
Please report kernel compile failures on the appropriate mailing 
list, in this case, freebsd-stable.  Build failures tend to get 
fixed very quickly due to the high number of developers who track 
the latest code, and the automated tinderboxes that continually 
run builds. 


Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Apr 12 00:41:53 GMT 2005 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=74860 
>Unformatted:
