From nobody@FreeBSD.org  Tue Jan  6 17:58:02 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 BD30116A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Jan 2004 17:58:02 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6CFD543D39
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Jan 2004 17:58:01 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i071w1dL032402
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 Jan 2004 17:58:01 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i071w1t3032401;
	Tue, 6 Jan 2004 17:58:01 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200401070158.i071w1t3032401@www.freebsd.org>
Date: Tue, 6 Jan 2004 17:58:01 -0800 (PST)
From: "Simson L. Garfinkel" <simsong@mit.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: vm_pindex_t has conflicting definitions in machine/types.h and sys/types.h
X-Send-Pr-Version: www-2.0

>Number:         60997
>Category:       kern
>Synopsis:       vm_pindex_t has conflicting definitions in machine/types.h and sys/types.h
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 06 18:00:20 PST 2004
>Closed-Date:    Tue Jun 15 00:26:46 GMT 2004
>Last-Modified:  Tue Jun 15 00:26:46 GMT 2004
>Originator:     Simson L. Garfinkel
>Release:        5.2-RC2
>Organization:
MIT
>Environment:
FreeBSD r2.nitroba.com 5.2-RC FreeBSD 5.2-RC #2: Wed Dec 24 18:23:52 EST 2003     simsong@r2.nitroba.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
building etherreal from ports doesn't work because there are conflicting definitions for vm_pindex_t:

/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I..   -DINET6 -O -pipe -mcpu=pentiumpro -Dfreebsd5 -c -o host/hr_system.lo host/hr_system.c
mkdir host/.libs
cc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -DINET6 -O -pipe -mcpu=pentiumpro -Dfreebsd5 -c host/hr_system.c  -fPIC -DPIC -o host/.libs/hr_system.lo
cc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -DINET6 -O -pipe -mcpu=pentiumpro -Dfreebsd5 -c host/hr_system.c -o host/hr_system.o >/dev/null 2>&1
mv -f host/.libs/hr_system.lo host/hr_system.lo
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I..   -DINET6 -O -pipe -mcpu=pentiumpro -Dfreebsd5 -c -o host/hr_storage.lo host/hr_storage.c
rm -f host/.libs/hr_storage.lo
cc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -DINET6 -O -pipe -mcpu=pentiumpro -Dfreebsd5 -c host/hr_storage.c  -fPIC -DPIC -o host/.libs/hr_storage.lo
In file included from host/hr_storage.c:36:
/usr/include/machine/types.h:57: error: conflicting types for `vm_pindex_t'
/usr/include/sys/types.h:253: error: previous declaration of `vm_pindex_t'
*** Error code 1

Stop in /raid4/ports/net/net-snmp/work/net-snmp-5.1/agent/mibgroup.
*** Error code 1

Stop in /raid4/ports/net/net-snmp/work/net-snmp-5.1/agent.
*** Error code 1

Stop in /raid4/ports/net/net-snmp/work/net-snmp-5.1.
*** Error code 1

Stop in /raid4/ports/net/net-snmp.
*** Error code 1

Stop in /raid4/ports/net/ethereal.
r2# grep vm_pindex_t /usr/include/machine/types.h /usr/include/sys/types.h
/usr/include/machine/types.h:typedef    unsigned int    vm_pindex_t;
/usr/include/sys/types.h:typedef        __vm_pindex_t   vm_pindex_t;
r2# 
>How-To-Repeat:
      
>Fix:
      decide on a definition and use it.
>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: "Simson L. Garfinkel" <simsong@mit.edu>
Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: kern/60997: vm_pindex_t has conflicting definitions in
 machine/types.h and sys/types.h
Date: Wed, 7 Jan 2004 18:46:19 +1100 (EST)

 On Tue, 6 Jan 2004, Simson L. Garfinkel wrote:
 
 > >Synopsis:       vm_pindex_t has conflicting definitions in machine/types.h and sys/types.h
 
 Your header files are out of date.  <machine/types.h> doesn't exist in
 FreeBSD.
 
 > >Description:
 > building etherreal from ports doesn't work because there are conflicting definitions for vm_pindex_t:
 > ...
 > In file included from host/hr_storage.c:36:
 > /usr/include/machine/types.h:57: error: conflicting types for `vm_pindex_t'
 > /usr/include/sys/types.h:253: error: previous declaration of `vm_pindex_t'
 > *** Error code 1
 
 <sys/types.h> or the port seems to be out of date too.  Including the
 nonexistent file <machine/types.h> shouldn't be attempted.
 
 Bruce

From: "Simson Garfinkel" <simsong@lcs.mit.edu>
To: "Bruce Evans" <bde@zeta.org.au>,
	"Simson L. Garfinkel" <simsong@mit.edu>
Cc: <freebsd-gnats-submit@freebsd.org>, <freebsd-bugs@freebsd.org>
Subject: Re: kern/60997: vm_pindex_t has conflicting definitions in machine/types.h and sys/types.h
Date: Wed, 7 Jan 2004 07:37:43 -0500

 That's interesting. Thanks for the info. I guess something about the 5.2-RC2
 cvsup process or "make installworld" and "make installkernel" didn't update
 them properly.
 
 
 ----- Original Message ----- 
 From: "Bruce Evans" <bde@zeta.org.au>
 To: "Simson L. Garfinkel" <simsong@mit.edu>
 Cc: <freebsd-gnats-submit@freebsd.org>; <freebsd-bugs@freebsd.org>
 Sent: Wednesday, January 07, 2004 2:46 AM
 Subject: Re: kern/60997: vm_pindex_t has conflicting definitions in
 machine/types.h and sys/types.h
 
 
 > On Tue, 6 Jan 2004, Simson L. Garfinkel wrote:
 >
 > > >Synopsis:       vm_pindex_t has conflicting definitions in
 machine/types.h and sys/types.h
 >
 > Your header files are out of date.  <machine/types.h> doesn't exist in
 > FreeBSD.
 >
 > > >Description:
 > > building etherreal from ports doesn't work because there are conflicting
 definitions for vm_pindex_t:
 > > ...
 > > In file included from host/hr_storage.c:36:
 > > /usr/include/machine/types.h:57: error: conflicting types for
 `vm_pindex_t'
 > > /usr/include/sys/types.h:253: error: previous declaration of
 `vm_pindex_t'
 > > *** Error code 1
 >
 > <sys/types.h> or the port seems to be out of date too.  Including the
 > nonexistent file <machine/types.h> shouldn't be attempted.
 >
 > Bruce
 >
 >
 
State-Changed-From-To: open->closed 
State-Changed-By: bms 
State-Changed-When: Tue Jun 15 00:26:14 GMT 2004 
State-Changed-Why:  
From the feedback, it sounds like the anomaly on the submitter's 
system was resolved; I don't see it on my -CURRENT machine. 

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