Re: Error when compiling in OpenBSD: "storage size of HRD_info isn't known"
"rakesh zingade" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Feb 16, 2008 1:39 AM, Amit Uttamchandani <[email protected]> wrote: > 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 > netsnmp python extension module is tested only with Linux. Also I think you need to follow below steps: Unix: cd net-snmp/python python setup.py build python setup.py test (requires a locally running agent w/ config provided) python setup.py install Go through net-snmp-5.4.1/net-snmp-5.4.1/python/README file, may this will give you some clues. You can first try with simple configuration without setting python-modules. If this works then at list it will help to locate cause. -- Rakesh P. Zingade +919420357790 ------------------------------------------------------------------------- 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