Re: Host Resource MIB on Broken Linux

2004-06-28 Thread Johannes Schmidt-Fischer
Hello Mike, here are the results for HP-UX (using "find ... | xargs grep ...": HP-UX 10.20 --- /usr/include/sys/_statvfs_body.h: ad_ulong_t f_frsize; /* Fundamental file system block size */ /usr/include/sys/_statvfs_body.h: u_long f_frsize; /* Fundamental file syste

RE: Host Resource MIB on Broken Linux

2004-06-21 Thread Bruce Shaw
On linux (Red Hat 7.3) /usr/include/bits/statvfs.h: unsigned long int f_frsize; >If you have time, please investigate and let us know. >That goes to anyone reading this message %^) > grep -r f_frsize /usr/include (note, previous post on this topic was Solaris 2.6) This communication is i

RE: Host Resource MIB on Broken Linux

2004-06-21 Thread Bruce Shaw
>If you have time, please investigate and let us know. >That goes to anyone reading this message %^) > grep -r f_frsize /usr/include grep: illegal option -- r Usage: grep -hblcnsviw pattern file . . . However, find . -type f -print | xargs grep -i f_frsize delivers: ./sys/statfs.h: long

Re: Host Resource MIB on Broken Linux

2004-06-21 Thread Mike Slifcak
Bruce Shaw wrote: I believe Wes made a change to configure.in to take into account operating systems (like linux) that have f_frsize but don't at statvfs (if I understand correctly). We may have fixed the problem twice. Not that I mind belt-and-suspenders solution, I'm just wondering what other OS

RE: Host Resource MIB on Broken Linux

2004-06-20 Thread Bruce Shaw
I believe Wes made a change to configure.in to take into account operating systems (like linux) that have f_frsize but don't at statvfs (if I understand correctly). We may have fixed the problem twice. Not that I mind belt-and-suspenders solution, I'm just wondering what other OS's are affected.

Re: Host Resource MIB on Broken Linux

2004-06-19 Thread Andy Smith
The #ifdeffed code may be needed on other platforms as well as Solaris. That was why I recommended that particular line of code. I only have access to Windows and Linux, but I would suggest testing on other platforms only excluding Linux from the ifdef. Andy Mike Slifcak wrote: The attached pat

Re: Host Resource MIB on Broken Linux

2004-06-19 Thread Mike Slifcak
The attached patch was added to patch 956272 which has the desired effect. #if defined(STRUCT_STATVFS_HAS_F_FRSIZE) && !defined(linux) Andy Smith wrote: Try #if defined(STRUCT_STATVFS_HAS_F_FRSIZE) && !defined(linux) That worked for me. Andy Bruce Shaw wrote: ARGG!! Stupid newbie question. H

Re: Host Resource MIB on Broken Linux

2004-06-18 Thread Andy Smith
Try #if defined(STRUCT_STATVFS_HAS_F_FRSIZE) && !defined(linux) That worked for me. Andy Bruce Shaw wrote: ARGG!! Stupid newbie question. How do I do a logical AND inside an ifdef? Something like.. #ifdef solaris2 AND STRUCT_STATVFS_HAS_F_FRSIZE ? which reminds me... where is the value of STRUC

RE: Host Resource MIB on Broken Linux

2004-06-18 Thread Bruce Shaw
ARGG!! Stupid newbie question. How do I do a logical AND inside an ifdef? Something like.. #ifdef solaris2 AND STRUCT_STATVFS_HAS_F_FRSIZE ? which reminds me... where is the value of STRUCT_STATVFS_HAS_F_FRSIZE set anyway? It's undef'd in acconfig.h but i can't find where it gets assigned i

Re: RE: Host Resource MIB on Broken Linux

2004-06-18 Thread slif
e Shaw <[EMAIL PROTECTED]> > Date: 2004/06/18 Fri PM 01:35:08 EDT > To: 'Andy Smith' <[EMAIL PROTECTED]>, net-snmp-coders > <[EMAIL PROTECTED]> > Subject: RE: Host Resource MIB on Broken Linux > > I was a afraid of that. I'd love to know why

RE: Host Resource MIB on Broken Linux

2004-06-18 Thread Bruce Shaw
I was a afraid of that. I'd love to know why linux is claiming it has it if it doesn't. Comment out (or remove) lines 797-799 and 804 ie. take out the IFDEF structure relating to STRUCT_STATVFS_HAS_F_FRSIZE. I'll post a patch. -Original Message- From: Andy Smith [mailto:[EMAIL PROTECTED