From john@pacer.pakprotector.com  Fri Apr 26 22:08:13 2002
Return-Path: <john@pacer.pakprotector.com>
Received: from pacer.pakprotector.com (c19316.carlnfd1.nsw.optusnet.com.au [210.49.146.152])
	by hub.freebsd.org (Postfix) with ESMTP id 7905937B419
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Apr 2002 22:08:06 -0700 (PDT)
Received: (from john@localhost)
	by pacer.pakprotector.com (8.11.6/8.11.6) id g3R583Y58873;
	Sat, 27 Apr 2002 15:08:03 +1000 (EST)
	(envelope-from john)
Message-Id: <200204270508.g3R583Y58873@pacer.pakprotector.com>
Date: Sat, 27 Apr 2002 15:08:03 +1000 (EST)
From: John Saunders <john@nlc.net.au>
Reply-To: John Saunders <john@nlc.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc: imp@village.org
Subject: buildworld fails due to /usr/src/lib/libc/gen/getpeereid.c
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37498
>Category:       bin
>Synopsis:       buildworld fails due to /usr/src/lib/libc/gen/getpeereid.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 26 22:10:01 PDT 2002
>Closed-Date:    Fri Jul 19 01:50:21 PDT 2002
>Last-Modified:  Fri Jul 19 01:50:21 PDT 2002
>Originator:     John Saunders
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Northlink Communications Pty Ltd
>Environment:
System: FreeBSD pacer.pakprotector.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Mar 2 23:29:47 EST 2002 root@pacer.pakprotector.com:/usr/obj/usr/src/sys/PACER i386

    Any system prior to March the 9th inclusion of getpeerid.

>Description:

	When updating your system, buildworld fails due to new function in
	libc called getpeerid. The build environment doesn't include the
	correct -I options to get the new ucred.h file included.

cc -O -pipe -march=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c /usr/src/lib/libc/../libc/gen/getpeereid.c -o getpeereid.o
/usr/src/lib/libc/../libc/gen/getpeereid.c: In function `getpeereid':
/usr/src/lib/libc/../libc/gen/getpeereid.c:41: storage size of `xuc' isn't known
/usr/src/lib/libc/../libc/gen/getpeereid.c:46: `LOCAL_PEERCRED' undeclared (first use in this function)
/usr/src/lib/libc/../libc/gen/getpeereid.c:46: (Each undeclared identifier is reported only once
/usr/src/lib/libc/../libc/gen/getpeereid.c:46: for each function it appears in.)
/usr/src/lib/libc/../libc/gen/getpeereid.c:49: `XUCRED_VERSION' undeclared (first use in this function)

>How-To-Repeat:

    Try to buildworld on source that inclues getpeerid on a system that
	doesn't have getpeerid and 

>Fix:

    To work around this problem do a "make includes" from /usr/src before
	trying to buildworld.

	Although this problem highlights a general problem with the build
	system accessing out of date include files. It is likely to bite
	again in the future.

>Release-Note:
>Audit-Trail:

From: John Saunders <john@nlc.net.au>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: imp@village.org
Subject: bin/37498: buildworld fails due to /usr/src/lib/libc/gen/getpeereid.c
Date: Sat, 27 Apr 2002 15:08:03 +1000 (EST)

 >Number:         37498
 >Category:       bin
 >Synopsis:       buildworld fails due to /usr/src/lib/libc/gen/getpeereid.c
 >Confidential:   no
 >Severity:       critical
 >Priority:       high
 >Responsible:    freebsd-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          sw-bug
 >Submitter-Id:   current-users
 >Arrival-Date:   Fri Apr 26 22:10:01 PDT 2002
 >Closed-Date:
 >Last-Modified:
 >Originator:     John Saunders
 >Release:        FreeBSD 4.5-STABLE i386
 >Organization:
 Northlink Communications Pty Ltd
 >Environment:
 System: FreeBSD pacer.pakprotector.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Mar 2 23:29:47 EST 2002 root@pacer.pakprotector.com:/usr/obj/usr/src/sys/PACER i386
 
     Any system prior to March the 9th inclusion of getpeerid.
 
 >Description:
 
 	When updating your system, buildworld fails due to new function in
 	libc called getpeerid. The build environment doesn't include the
 	correct -I options to get the new ucred.h file included.
 
 cc -O -pipe -march=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c /usr/src/lib/libc/../libc/gen/getpeereid.c -o getpeereid.o
 /usr/src/lib/libc/../libc/gen/getpeereid.c: In function `getpeereid':
 /usr/src/lib/libc/../libc/gen/getpeereid.c:41: storage size of `xuc' isn't known
 /usr/src/lib/libc/../libc/gen/getpeereid.c:46: `LOCAL_PEERCRED' undeclared (first use in this function)
 /usr/src/lib/libc/../libc/gen/getpeereid.c:46: (Each undeclared identifier is reported only once
 /usr/src/lib/libc/../libc/gen/getpeereid.c:46: for each function it appears in.)
 /usr/src/lib/libc/../libc/gen/getpeereid.c:49: `XUCRED_VERSION' undeclared (first use in this function)
 
 >How-To-Repeat:
 
     Try to buildworld on source that inclues getpeerid on a system that
 	doesn't have getpeerid and 
 
 >Fix:
 
     To work around this problem do a "make includes" from /usr/src before
 	trying to buildworld.
 
 	Although this problem highlights a general problem with the build
 	system accessing out of date include files. It is likely to bite
 	again in the future.
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-bugs" in the body of the message
 

From: Dima Dorfman <dima@trit.org>
To: John Saunders <john@nlc.net.au>
Cc: FreeBSD-gnats-submit@FreeBSD.org, imp@village.org
Subject: Re: bin/37498: buildworld fails due to /usr/src/lib/libc/gen/getpeereid.c 
Date: Fri, 03 May 2002 06:09:37 +0000

 John Saunders <john@nlc.net.au> wrote:
 > >Description:
 > 
 > 	When updating your system, buildworld fails due to new function in
 > 	libc called getpeerid. The build environment doesn't include the
 > 	correct -I options to get the new ucred.h file included.
 > 
 > cc -O -pipe -march=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c /usr/src/lib/libc/../libc/gen/getpeereid.c -o getpeereid.o
 > /usr/src/lib/libc/../libc/gen/getpeereid.c: In function `getpeereid':
 > /usr/src/lib/libc/../libc/gen/getpeereid.c:41: storage size of `xuc' isn't known
 > /usr/src/lib/libc/../libc/gen/getpeereid.c:46: `LOCAL_PEERCRED' undeclared (first use in this function)
 > /usr/src/lib/libc/../libc/gen/getpeereid.c:46: (Each undeclared identifier is reported only once
 > /usr/src/lib/libc/../libc/gen/getpeereid.c:46: for each function it appears in.)
 > /usr/src/lib/libc/../libc/gen/getpeereid.c:49: `XUCRED_VERSION' undeclared (first use in this function)
 
 If you're using buildworld, I think the right include path should be
 set up for you.  Since you say you are indeed using buildworld, I'm
 not sure what's going on, but since you're the only one to report this
 build failure, you must be doing something different from everyone
 else building -stable on -stable.  Unforunately, I don't know enough
 about the buld process to know what that is.
 
 Is there anything particular about your environment that might be
 causing this?  It looks like you're just building a new -stable on a
 pretty recent -stable; many people have done this successfully (or
 they've all been unusually silent since March 9th).

From: John Saunders <john@nlc.net.au>
To: Dima Dorfman <dima@trit.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org, imp@village.org
Subject: Re: bin/37498: buildworld fails due to /usr/src/lib/libc/gen/getpeereid.c
Date: Fri, 3 May 2002 22:33:36 +1000 (EST)

 Just building -stable on -stable that was built on March the 2nd. Command
 that I use is "make update" followed by "(make buildworld >BUILD.log 2>&1
 &)" from the /usr/src directory. My C options includes "-O -pipe" and my
 CPU options is "pentiumpro".
 
 Like I said, I just rebuilt the includes directory and the problem was
 fixed. Also it is obvious to see from the example I provided that the
 correct include path is not being specified to cc, you should see a path
 that starts with "/usr/obj/..." or "/usr/src/..." if the build system was
 making some attempt at accessing the new include files.
 
 Cheers.
 
 On Fri, 3 May 2002, Dima Dorfman wrote:
 
 > John Saunders <john@nlc.net.au> wrote:
 > > >Description:
 > > 
 > > 	When updating your system, buildworld fails due to new function in
 > > 	libc called getpeerid. The build environment doesn't include the
 > > 	correct -I options to get the new ucred.h file included.
 > > 
 > > cc -O -pipe -march=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c /usr/src/lib/libc/../libc/gen/getpeereid.c -o getpeereid.o
 > > /usr/src/lib/libc/../libc/gen/getpeereid.c: In function `getpeereid':
 > > /usr/src/lib/libc/../libc/gen/getpeereid.c:41: storage size of `xuc' isn't known
 > > /usr/src/lib/libc/../libc/gen/getpeereid.c:46: `LOCAL_PEERCRED' undeclared (first use in this function)
 > > /usr/src/lib/libc/../libc/gen/getpeereid.c:46: (Each undeclared identifier is reported only once
 > > /usr/src/lib/libc/../libc/gen/getpeereid.c:46: for each function it appears in.)
 > > /usr/src/lib/libc/../libc/gen/getpeereid.c:49: `XUCRED_VERSION' undeclared (first use in this function)
 > 
 > If you're using buildworld, I think the right include path should be
 > set up for you.  Since you say you are indeed using buildworld, I'm
 > not sure what's going on, but since you're the only one to report this
 > build failure, you must be doing something different from everyone
 > else building -stable on -stable.  Unforunately, I don't know enough
 > about the buld process to know what that is.
 > 
 > Is there anything particular about your environment that might be
 > causing this?  It looks like you're just building a new -stable on a
 > pretty recent -stable; many people have done this successfully (or
 > they've all been unusually silent since March 9th).
 > 
 
 --            +------------------------------------------------------------+
         .     | John Saunders  - mailto:john@nlc.net.au            (EMail) |
     ,--_|\    |                - http://www.nlc.net.au/              (WWW) |
    /  Oz  \   |                - 1300-720-122 or 04-1822-3814      (Phone) |
    \_,--\_/   | NORTHLINK COMMUNICATIONS P/L - Supplying a professional,   |
          v    | and above all friendly, internet connection service.       |
               +------------------------------------------------------------+
 
State-Changed-From-To: open->closed 
State-Changed-By: jon 
State-Changed-When: Fri Jul 19 01:48:26 PDT 2002 
State-Changed-Why:  
This is probably fixed, if not, it's probably irrelevant by now, no sense keeping this pr open. 

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