kern/60997: vm_pindex_t has conflicting definitions in machine/types.h and sys/types.h

Simson L. Garfinkel simsong at mit.edu
Tue Jan 6 18:00:27 PST 2004


>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 06 18:00:20 PST 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list