Problems compiling / running on HP-UX 11.31

"Ricardo Guido Marelli" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi everybody,
I have encountered some problems when I tried to compile/run net-snmp on
HP-UX 11.31 with gcc version 4.2.1.

This are the steps I followed:

# ./configure
(select snmp v2 as default when asked)

# vi include/net-snmp/net-snmp-config.h

(I added to the top of the file the following lines to avoid the compilation
errors)

/* ---------------------------------------- */
/* to avoid PGSHIFT undefined */
#define PGSHIFT getpagesize()

/* to avoid error: 'struct radix_node' has no member named 'rn_key' */
#define STRUCT_RTENTRY_HAS_RT_DST
/* ---------------------------------------- */

# ./make
(now it build ok)

# ./make test

59: testing full snmpwalk (SNMPv2c) against agent (may take time)... .FAIL
Summary: 58 / 59 succeeded.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.



So, I manually run the test (commands on /tmp/snmp-test-59-xxx/invoked) and
got a coredump on snmpd as follows:


Core was generated by `snmpd'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
#0  0x60000000c86e0000 in <unknown_procedure>


()
(gdb) bt
#0  0x60000000c86e0000 in <unknown_procedure> ()
warning: Attempting to unwind past bad PC 0x60000000c86e0000
#1  0x60000000cc7bd450:0 in var_ipRouteEntry (vp=<not available>,
   name=0x401b5b48, length=0x401b5b38, exact=0, var_len=0x7fffe914,
   write_method=0x7fffe910) at mibII/var_route.c:496
#2  0x60000000cc6ba0e0:0 in netsnmp_old_api_helper (handler=<not available>,

   reginfo=0x40049ab0, reqinfo=0x40180a10, requests=0x40023500)
   at old_api.c:281
#3  0x60000000cc6458a0:0 in netsnmp_call_handler (next_handler=0x40054320,
   reginfo=0x40049ab0, reqinfo=0x40180a10, requests=0x40023500)
   at agent_handler.c:435
#4  0x60000000cc6463f0:0 in netsnmp_call_handlers (reginfo=0x40049ab0,
   reqinfo=0x40180a10, requests=0x40023500) at agent_handler.c:516
#5  0x60000000cc61a900:0 in handle_var_requests (asp=0x400234a0)
   at snmp_agent.c:2526
#6  0x60000000cc61d150:0 in handle_getnext_loop (asp=0x400234a0)
   at snmp_agent.c:2966
#7  0x60000000cc61f250:0 in handle_pdu (asp=0x400234a0) at snmp_agent.c:3335

#8  0x60000000cc61e270:0 in netsnmp_handle_request (asp=0x400234a0,
status=0)
   at snmp_agent.c:3118
#9  0x60000000cc614710:0 in handle_snmp_packet (op=1, session=0x4003ac40,
   reqid=2057529907, pdu=0x40199c90, magic=0x0) at snmp_agent.c:1852
#10 0x60000000cc8698a0:0 in _sess_process_packet (sessp=0x4017c8d0,
   sp=0x4003ac40, isp=0x400fac10, transport=0x401a58b4, opaque=0x7fffee54,
---Type <return> to continue, or q <return> to quit---olenQuit
) at snmp_api.c:5356
#11 0x60000000cc86dcc0:0 in _sess_read (sessp=0x4017c8d0,
   fdset=<not available>) at snmp_api.c:5772
#12 0x60000000cc86f570:0 in snmp_sess_read (sessp=<not available>,
   fdset=0x7fffef9c) at snmp_api.c:5791
#13 0x60000000cc86f650:0 in snmp_read (fdset=0x7fffef9c) at snmp_api.c:5408
#14 0x400a1b0:0 in receive () at snmpd.c:1180
#15 0x40092d0:0 in main (argc=13, argv=0x7ffff78c) at snmpd.c:1019


Any idea?

Thank you in advance,
Best regards,

Guido

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
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.