From nobody@FreeBSD.org  Mon Jun  7 23:57:18 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 2791716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Jun 2004 23:57:18 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0A54343D39
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Jun 2004 23:57:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i57Nv9Ib099559
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 7 Jun 2004 23:57:09 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i57Nv8f7099558;
	Mon, 7 Jun 2004 23:57:08 GMT
	(envelope-from nobody)
Message-Id: <200406072357.i57Nv8f7099558@www.freebsd.org>
Date: Mon, 7 Jun 2004 23:57:08 GMT
From: alexus <freebsd@alexus.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel 5.2.1 
X-Send-Pr-Version: www-2.3

>Number:         67694
>Category:       kern
>Synopsis:       kernel build fails with damaged /usr/include in src/sys/dev/aic7xxx/aicasm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 08 00:00:50 GMT 2004
>Closed-Date:    Sat Apr 09 00:59:41 GMT 2005
>Last-Modified:  Sat Apr  9 06:30:31 GMT 2005
>Originator:     alexus
>Release:        5.2.1-RELEASE-p3
>Organization:
alexus dot org
>Environment:
d# uname -a
FreeBSD d.alexus.org 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #0: Mon Mar 22 00:11:36 EST 2004     alexus@d.alexus.org:/usr/obj/usr/src/sys/d  i386
d# 
>Description:
I installed a FreeBSD-5.x then back then i upgraded it to -p3 and ever since then when you guys released -p4-p8 when i do upgrade/build (make) kernel i get this error:

cd /usr/obj/usr/src/sys/GENERIC;  MAKESRCPATH=/usr/src/sys/dev/aic7xxx/aicasm  make -DNO_CPU_CFLAGS -f /usr/src/sys/dev/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original /usr/obj/usr/src/sys/GENERIC
cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm  -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm  -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symbol_delete':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:91: warning: passing arg 2 of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:91: error: too few arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_open':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:135: warning: assignment makes pointer from integer without a cast
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_close':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: structure has no member named `seq'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: `R_FIRST' undeclared (first use in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: (Each undeclared identifier is reported only once
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: for each function it appears in.)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:157: error: too few arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_get':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:176: warning: passing arg 2 of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:176: error: too few arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:189: warning: passing arg 2 of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:189: error: too few arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_dump':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:486: error: `R_FIRST' undeclared (first use in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:487: error: structure has no member named `seq'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:524: error: `R_NEXT' undeclared (first use in this function)
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
d# 


>How-To-Repeat:
cd /usr/src
make buildkernel
>Fix:
i wish i knew..
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: bms 
State-Changed-When: Wed Jun 23 06:55:45 GMT 2004 
State-Changed-Why:  
Please nuke your source directories, perform a full checkout of 
a recent -CURRENT via cvsup, nuke your kernel compile directories, 
and try again. -CURRENT is known to build as of this message. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=67694 

From: "alexus" <alexus@alexus.org>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc: <freebsd@alexus.org>
Subject: Re: kern/67694: kernel 5.2.1
Date: Wed, 23 Jun 2004 09:07:09 -0400

 Hello
 
 Thanks for response, I can't really use -CURRENT due to this is a remote
 production server and it has to be up at all the time. As I stated earlier I
 installed 5.2.1-RELEASE then I successfully update it to -p1, p2 and p3, but
 after p3 something got broken and I'm unable to update ever since.
 
 Dmitry Chorine
 IT Consultant
 
 
 

From: Tilman Linneweh <arved@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, freebsd@alexus.org
Cc:  
Subject: Re: kern/67694: cannot build updated 5.2.1 kernel: fails in src/sys/dev/aic7xxx
Date: Tue, 24 Aug 2004 18:50:13 +0200

 bms wanted to say RELENG_5_2 when he said CURRENT :-).
 As he said, your problem is probably caused by a broken Source tree

From: "alexus" <alexus@alexus.org>
To: "'Tilman Linneweh'" <arved@FreeBSD.org>,
	<freebsd-gnats-submit@FreeBSD.org>, <freebsd@alexus.org>
Cc:  
Subject: RE: kern/67694: cannot build updated 5.2.1 kernel: fails in src/sys/dev/aic7xxx
Date: Tue, 24 Aug 2004 13:01:47 -0400

 Guys,
 
 That is exactly what I did.
 
 1.I deleted my /usr/src
 2.I cvsup RELENG_5_2
 3.I tried to build it
 
 And then I did it again and again and again and again and again and so on..
 All of those times end up with same thing..
 
 
 
 Dmitry Chorine at alexus dot biz
 http://alexus.biz/ is coming soon
 
  

From: Tilman Linneweh <arved@FreeBSD.org>
To: alexus <alexus@alexus.org>
Cc: freebsd-gnats-submit@FreeBSD.org, freebsd@alexus.org
Subject: RE: kern/67694: cannot build updated 5.2.1 kernel: fails in
	src/sys/dev/aic7xxx
Date: Tue, 24 Aug 2004 19:14:34 +0200

 > That is exactly what I did.
 > 
 > 1.I deleted my /usr/src
 > 2.I cvsup RELENG_5_2
 > 3.I tried to build it
 > 
 > And then I did it again and again and again and again and again and so on..
 > All of those times end up with same thing..
 
 Try replacing /usr/include/db.h with /usr/src/include/db.h
 
 See this thread from comp.unix.freebsd.misc
 http://groups.google.de/groups?threadm=bemni9%24g0g%241%40alnews&rnum=1&prev=/groups%3Fq%3D%2522aicasm_symbol.c:91:%2Bwarning:%2Bpassing%2Barg%2B2%2Bof%2Bpointer%2Bto%2Bfunction%2Bfrom%2Bincompatible%2Bpointer%2Btype%2522%26hl%3Dde%26lr%3D%26ie%3DUTF-8%26selm%3Dbemni9%2524g0g%25241%2540alnews%26rnum%3D1
 
 regards
 tilman

Adding to Audit-trail:
	The link seems to be broken on the webfrontend, here is one to a 
        single message of the thread:

http://groups.google.com/groups?as_umsgid=%3Cfd707556.0307080529.3c7b056a@posting.google.com

	Here is a mail from bde explaining the current buildflags:
http://docs.freebsd.org/cgi/mid.cgi?20030712101114.M31542

From: "alexus" <alexus@alexus.org>
To: "'Tilman Linneweh'" <arved@FreeBSD.org>
Cc: <freebsd-gnats-submit@FreeBSD.org>, <freebsd@alexus.org>
Subject: RE: kern/67694: cannot build updated 5.2.1 kernel: fails insrc/sys/dev/aic7xxx
Date: Tue, 24 Aug 2004 15:30:51 -0400

 Tilman,
 
 That link that you sent me earlier, describes problem with db.h and in my
 case (according to my original post)
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=67694
 
 There were nothing mention regarding db.h 
 
 
 
 Dmitry Chorine at alexus dot biz
 http://alexus.biz/ is coming soon
 
  
 -----Original Message-----
 From: Tilman Linneweh [mailto:arved@FreeBSD.org] 
 Sent: Tuesday, August 24, 2004 1:15 PM
 To: alexus
 Cc: freebsd-gnats-submit@FreeBSD.org; freebsd@alexus.org
 Subject: RE: kern/67694: cannot build updated 5.2.1 kernel: fails
 insrc/sys/dev/aic7xxx
 
 
 > That is exactly what I did.
 > 
 > 1.I deleted my /usr/src
 > 2.I cvsup RELENG_5_2
 > 3.I tried to build it
 > 
 > And then I did it again and again and again and again and again and so
 on..
 > All of those times end up with same thing..
 
 Try replacing /usr/include/db.h with /usr/src/include/db.h
 
 See this thread from comp.unix.freebsd.misc
 http://groups.google.de/groups?threadm=bemni9%24g0g%241%40alnews&rnum=1&prev
 =/groups%3Fq%3D%2522aicasm_symbol.c:91:%2Bwarning:%2Bpassing%2Barg%2B2%2Bof%
 2Bpointer%2Bto%2Bfunction%2Bfrom%2Bincompatible%2Bpointer%2Btype%2522%26hl%3
 Dde%26lr%3D%26ie%3DUTF-8%26selm%3Dbemni9%2524g0g%25241%2540alnews%26rnum%3D1
 
 regards
 tilman
 
 

From: Tilman Linneweh <arved@FreeBSD.org>
To: alexus <alexus@alexus.org>
Cc: freebsd-gnats-submit@FreeBSD.org, freebsd@alexus.org
Subject: Re: kern/67694: cannot build updated 5.2.1 kernel: fails insrc/sys/dev/aic7xxx
Date: Tue, 24 Aug 2004 23:34:27 +0200

 * alexus [2004-08-24 21:31]:
 > That link that you sent me earlier, describes problem with db.h and in my
 > case (according to my original post)
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=67694
 > 
 > There were nothing mention regarding db.h 
 
 Just to be sure, did the solution work for you?
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Apr 9 00:58:42 GMT 2005 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=67694 

From: alexus <alexus@alexus.org>
To: freebsd-gnats-submit@FreeBSD.org, freebsd@alexus.org
Cc:  
Subject: Re: kern/67694: kernel build fails with damaged /usr/include in
 src/sys/dev/aic7xxx/aicasm
Date: Sat, 09 Apr 2005 02:21:44 -0400

 Yes, it did, now everything is working fine.
 
 Dmitry Chorine at ALEXUSBIZ CORP.
 http://alexus.biz/ - coming soon
  
 
 
>Unformatted:
