Jesus have a look at:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/net-snmp/files/

This bug is clearly patched in:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/net-snmp/files/patch-hr_system.c?rev=1.3&content-type=text/x-cvsweb-markup

Here's the UTMPX matrix:

OpenBSD: no
NetBSD:  yes
FreeBSD: no
Darwin: yes

So I guess we can AC_CHECK_HEADERS for utmp.h and include that instead
and pray (it works in OpenBSD) or sprinkle some more FreeBSD stlye
#ifdef's around.

rstory@:  would you accept a donation of a VMWare workstation license or
would time still be the constraint? >:}

~BAS

On Sat, 2005-10-01 at 14:50, Brian A. Seklecki wrote:
> I just snook it right in explicitly.  Somewhere near the top of the
> file.
> 
> I guess HAVE_UTMPX_H isn't get set in config.log either.
> 
> And ac_cv_header_utmpx_h=no is set.
> 
> Is utmp.h checked for in configure[.in] ?
> 
> I see:
> 
> for ac_header in sys/timeout.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h
> sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h
> sys/vmparam.h sys/vmmac.h sys/vmsyst
> m.h sys/time.h sys/times.h sys/swap.h sys/statvfs.h sys/vfs.h
> sys/mnttab.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h
> sys/utsname.h sys/cdefs.h getopt.h locale.h
>  pthread.h sys/loadavg.h regex.h linux/tasks.h pwd.h grp.h utmpx.h
> 
> ...but that's only utmpx.h
> 
> ~BAS
> 
> 
> On Sat, 2005-10-01 at 12:19, Robert Story wrote:
> > On Fri, 23 Sep 2005 20:37:51 -0400 (EDT) Brian wrote:
> > BAS> 2) Then host/hr_storage fails to compile with:
> > BAS> 
> > BAS> host/hr_storage.c:741: error: structure has no member named `m_mbufs'
> > BAS> 
> > BAS> ...this is fixed with this "1 line" patch:
> > BAS> 
> > BAS> 
> > http://www.openbsd.org/cgi-bin/cvsweb/ports/net/net-snmp/patches/patch-agent_mibgroup_host_hr_storage_c?rev=1.2&content-type=text/x-cvsweb-markup
> > BAS> 
> > BAS> This *NEEDS TO BE COMMITED* back to the original tree.
> > 
> > Nah, there is other stuff in mbstat that may be useful. Instead, I've added 
> > a
> > configure test for this structure member. Checking in for 5.1.x, 5.2.x and
> > 5.3.x.
> > 
> > BAS> 3) I had to add #include "/usr/include/utmp.h" to 
> > BAS> agent/mibgroup/host/hr_system.c.  None of the #ifdef's actually pull it
> > BAS> in OpenBSD.
> > 
> > Where did you add it? Does it need to come in front of anything in 
> > particular?



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to