Error when compiling in OpenBSD: "storage size of HRD_info isn't known"

Amit Uttamchandani <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hey guys,

Just tried to compile the latest net-snmp release (5.4.1) on this OpenBSD 4.0
system but stumbled into a road block.

Here are the steps I took:

 * Download, untar source.
 * ./configure --with-python-modules
 * make

That's about as far as I got. I get the following error when running make.

host/hr_disk.c: In function `Save_HR_Disk_Specific':
host/hr_disk.c:823: error: invalid use of undefined type `struct disklabel'
host/hr_disk.c: In function `Save_HR_Disk_General':
host/hr_disk.c:844: error: `dktypenames' undeclared (first use in this function)
host/hr_disk.c:844: error: (Each undeclared identifier is reported only once
host/hr_disk.c:844: error: for each function it appears in.)
host/hr_disk.c:844: error: invalid use of undefined type `struct disklabel'
host/hr_disk.c: In function `Query_Disk':
host/hr_disk.c:900: error: invalid application of `sizeof' to an incomplete type
host/hr_disk.c: At top level:
host/hr_disk.c:132: error: storage size of `HRD_info' isn't known
*** Error code 1

Stop in /home/amit/src/net-snmp-5.4.1/agent/mibgroup.
*** Error code 1

Stop in /home/amit/src/net-snmp-5.4.1/agent (line 781 of Makefile).
*** Error code 1

Stop in /home/amit/src/net-snmp-5.4.1 (line 519 of Makefile).

Any Ideas?

Thanks,
Amit


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.