Is there a header conflict?
Terry Lambert
tlambert2 at mindspring.com
Mon Apr 21 21:12:22 PDT 2003
leafy wrote:
> While compiling net-snmp port, I came across this error
>
> 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 -f
> PIC -DPIC -o host/.libs/hr_storage.lo
> In file included from host/hr_storage.c:36:
> /usr/include/machine/types.h:50: redefinition of `vm_offset_t'
> /usr/include/sys/types.h:250: `vm_offset_t' previously declared here
[ ... ]
> Is this a header conflict?
No, this is broken source code.
User programs should not reference the "machine" headers directly.
-- Terry
More information about the freebsd-current
mailing list