Re: snmp build error

2004-09-28 Thread David M. Fetter
On Tue, 2004-09-28 at 13:06, Michael van Elst wrote:
> On Tue, Sep 28, 2004 at 07:22:04AM -0700, David M. Fetter wrote:
> 
> > host/hr_storage.c: In function `sol_get_swapinfo':
> > host/hr_storage.c:845: error: storage size of 'ainfo' isn't known
> > host/hr_storage.c:847: error: `SC_AINFO' undeclared (first use in this
> > function)host/hr_storage.c:847: error: (Each undeclared identifier is
> 
> > Anybody know what the issue is or how to resolve it?  Thanks.
> 
> Apparently mib_host is broken for Solaris.

Well, it seems that if I rebuild snmp with only the mib_host option then
it successfully builds.  However, if I rebuild snmp with only the perl
option then it also successfully builds.  If I use both options together
then it fails with the error I gave before.  So, something is definitely
wrong here, but perhaps it is mibs host only with the perl module?

-- 
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu
"Only those who attempt the absurd can achieve the impossible."


signature.asc
Description: This is a digitally signed message part


Re: snmp build error

2004-09-28 Thread Michael van Elst
On Tue, Sep 28, 2004 at 07:22:04AM -0700, David M. Fetter wrote:

> host/hr_storage.c: In function `sol_get_swapinfo':
> host/hr_storage.c:845: error: storage size of 'ainfo' isn't known
> host/hr_storage.c:847: error: `SC_AINFO' undeclared (first use in this
> function)host/hr_storage.c:847: error: (Each undeclared identifier is

> Anybody know what the issue is or how to resolve it?  Thanks.

Apparently mib_host is broken for Solaris.



-- 
Michael van Elst
Internet: [EMAIL PROTECTED]
"A potential Snark may lurk in every tree."
__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   [EMAIL PROTECTED]


Re: snmp build error

2004-09-28 Thread David M. Fetter
I tried with the snmp srpm out of current and got the same results. 
This is on a Solaris 9 Sparc system with the latest patch cluster.

On Tue, 2004-09-28 at 07:22, David M. Fetter wrote:
> Ok, I'm getting this build error now when I manually try to build snmp
> with the following command:
> 
> openpkg rpm --rebuild --define 'with_mib_host yes' --define 'with_perl
> yes' snmp-5.1.1-2.1.0.src.rpm
> 
> /bin/sh ../../libtool --silent --mode=compile /usr/local/bin/gcc
> -I../../include -I../../include -I. -I../.. -I. -I./../..
> -I./../../snmplib -I./.. -I.. -I/usr/local/include  
> -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64  -I/usr/local/lib/perl/5.8.4/sun4-solaris/CORE  
> -O2 -pipe -I/usr/local/include -Dsolaris2  -c -o host/hr_storage.lo
> host/hr_storage.c
> host/hr_storage.c: In function `sol_get_swapinfo':
> host/hr_storage.c:845: error: storage size of 'ainfo' isn't known
> host/hr_storage.c:847: error: `SC_AINFO' undeclared (first use in this
> function)host/hr_storage.c:847: error: (Each undeclared identifier is
> reported only once
> host/hr_storage.c:847: error: for each function it appears in.)
> make[2]: *** [host/hr_storage.lo] Error 1
> make[1]: *** [subdirs] Error 1
> make: *** [subdirs] Error 1
> 
> Anybody know what the issue is or how to resolve it?  Thanks.
-- 
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu
"Only those who attempt the absurd can achieve the impossible."


signature.asc
Description: This is a digitally signed message part