object method "getRootOID" can't be located in perl module

Markus Zehnder <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <OF8E620A76.8EC3C42D-ONC12571B9.003B941F-C12571B9.003D8EDC@CHASCOM.INT>
Hi there,

Is this a bug or did i configure something wrong ?

wanted to use the following handler in a perl-module,
with a call to "getRootOID()":

sub my_snmp_handler {
    my ($handler, $registration_info, $request_info, $requests) = @_;
    my $request;

    my $rootoid=$registration_info->getRootOID();
}

but it did not work.
I get the followint error:

Can't locate object method "getRootOID" via package 
"NetSNMP::agent::reginfo" 


When i change the file
/net-snmp-5.3.0.1/perl/agent/agent.xs, line 400:
from
<    arg = newSVrv(rarg, "NetSNMP::agent::reginfo"); 
into
>    arg = newSVrv(rarg, "netsnmp_handler_registrationPtr");
..recompile and install:
It works !

regards
Markus

using an intel, debian sarge with net-snmp-5.3.0.1 system

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.