[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-2794531 ] neither ipforwarding nor _ipforwarding on
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2009-05-22 8:07:00
Message-ID: E1M7PmO-0001k4-OF () d45xhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #2794531, was opened at 2009-05-20 21:05
Message generated for change (Comment added) made by jibeji
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2794531&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: agent
Group: aix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: JB Ji (jibeji)
Assigned to: Nobody/Anonymous (nobody)
Summary: neither ipforwarding nor _ipforwarding on AIX 4.3.3

Initial Comment:
Hello,
I'm trying to make Net-SNMP running on a AIX 4.3.3 box.
Compilation works fine, but make test doesn't pass the first step.
Here are my compilation options : --prefix=/my/path/net-snmp-5.4.2.1-ibm-4.3.3.0 \
--enable-as-needed --disable-shared

If I run snmpd manually, it crashes with this error :
nlist err: neither ipforwarding nor _ipforwarding found.


----------------------------------------------------------------------

Comment By: JB Ji (jibeji)
Date: 2009-05-22 10:07

Message:
ok, I've hashed out the reference to IP_FORWARDING_SYMBOL in mibII/ip.c :

    case IPFORWARDING:
/*
        if (!auto_nlist
            (IP_FORWARDING_SYMBOL, (char *) &ret_value,
sizeof(ret_value)))
            return -1;
        else
*/
            return (ret_value ? 1 /* GATEWAY */
                              : 2 /* HOST    */ );


But make test gives :
58: testing if snmpnetstat finds the running agent in udpTable... FAIL
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... .FAIL
Summary: 57 / 59 succeeded.
make: The error code from the last command is 2.

Stop.
make: The error code from the last command is 2.

Stop.

----------------------------------------------------------------------

Comment By: JB Ji (jibeji)
Date: 2009-05-22 09:44

Message:
Hello,
Thanks for the suggestion. I've modified aix.h :

"include/net-snmp/system/aix.h" 26 lines, 569 characters
#include <net-snmp/system/generic.h>
#include <sys/select.h>
#undef TOTAL_MEMORY_SYMBOL
#undef NPROC_SYMBOL
#undef RTHASHSIZE_SYMBOL
#undef RTHOST_SYMBOL
#undef RTNET_SYMBOL
#undef IP_FORWARDING_SYMBOL
<cut>

But afterward, during the make I got :

mibII/ip.c: In function `ip_load':
mibII/ip.c:912: `IP_FORWARDING_SYMBOL' undeclared (first use in this
function)
mibII/ip.c:912: (Each undeclared identifier is reported only once
mibII/ip.c:912: for each function it appears in.)
make: The error code from the last command is 1.

Any idea ?

----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2009-05-20 21:22

Message:
Are you running snmpd as root?

If so, you may want to try adding "#undef IP_FORWARDING_SYMBOL" to
include/net-snmp/system/aix.h and recompile.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2794531&group_id=12694

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic