Re: Timeout errors on HP-UX 11.11

Albert Chin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, Oct 20, 2006 at 05:07:25PM -0500, Albert Chin wrote:
> On Fri, Oct 20, 2006 at 11:54:43PM +0200, Thomas Anders wrote:
> > Albert Chin wrote:
> > > It doesn't seem like, on 11.11, anything under $prefix/share/snmp/mibs
> > > is getting read. Running snmpd on 11.11 through tusc (HP-UX strace
> > > equivalent), I get:
> > >   stat("${HOME}/.snmp/mibs/.index", 0x7eff0dec) ............ ERR#2 ENOENT
> > >   stat("${HOME}/.snmp/mibs", 0x7eff0fd0) ................... ERR#2 ENOENT
> > >   stat("/opt/TWWfsw/netsnmp53/share/mibs/.index", 0x7eff0dec) = 0
> > >   stat("/opt/TWWfsw/netsnmp53/share/mibs", 0x7eff0d84) ..... = 0
> > >   open("/opt/TWWfsw/netsnmp53/share/mibs/.index", O_RDONLY, 0666) = 5
> > > 
> > > I don't see this on 11.11.
> > > 
> > Some proposals/questions:
> > - run the agent with -Dparse-mibs
> 
> Doing it. No mib dirs are being read on 11.11. It doesn't look like
> init_mib() is being called on 11.11.

Ok, found the problem. Building net-snmp on HP-UX requires -lnm
(because -lnm provides open_mib() which files like
agent/mibgroup/mibII/at.c depend on). -lnm provides an implementation
of init_mib():
  $ nm -BCpg /usr/lib/libnm.sl | grep init_mib
  0000031096 T  init_mib
  0000031144 T  init_mib

The default object file format for HP-UX/PA is SOM, not ELF. So, if
you load multiple shared libraries with duplicate symbols, there is
_no_ guarantee as to which symbol will be used from which library. Or,
maybe there is and I don't know it. Anyway, don't use duplicate
symbols on HP-UX.

Renaming init_mib in net-snmp-5.3.1 to init_net_snmp_mib fixed the
problem. The fact that 'make test' worked on 11.00 and 11.23/PA was
pure luck.

Test #59 is still failing, but the no other failures are reported with
the above change.

-- 
albert chin ([email protected])

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.