Subject: Re: pkg/12055: ucd-snmp doesn't build anymore, due to failures to detect sys/disklabel.h
To: None <bernd@arresum.inka.de>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 01/27/2001 18:00:59
[ On Saturday, January 27, 2001 at 21:07:43 (+0100), bernd@arresum.inka.de wrote: ]
> Subject: pkg/12055: ucd-snmp doesn't build anymore, due to failures to detect sys/disklabel.h
>
> System: NetBSD arresum.veego.de 1.5R NetBSD 1.5R (ARRESUM) #549: Sat Jan 27 18:15:39 CET 2001 bernd@arresum.veego.de:/obj_i386/sys/arch/i386/compile/ARRESUM i386
> Architecture: i386
> Machine: i386
> >Description:
> 	Try to build ucd-snmp on a -current system and notice the build error.
> 
> 	The configure script tries to check if we have a <sys/disklabel.h>,
> 	but that check fails:
> 
> checking for sys/disklabel.h... no

Hmmm....  it built fine on 1.3.3 and 1.5F.  Must be something wrong in
the new changes to support more partitions...

> 	Enabling the disklabel.h support in config.h made it possible to compile
> 	the package (after removing the snmptrapd file from the PLIST and the package
> 	Makefile).

I think someone forgot to "cvs add" the files/snmtptrapd.sh I supplied!  :-)

> 	From looking in the header file for sys/disklabel.h and machine/disklabel.h
> 	it looks like the check for sys/disklabel.h would succeed if it also includes
> 	machine/types.h during the check.

Interesting...

That would tend to suggest that <sys/disklabel.h> now needs to include
<sys/types.h> within itself (which would then pull in <machine/types.h>)

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>