Re: Facing "too few arguments to function" error when do "make" on my privateMIB

Balamurugan V <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,

Please find reply inline

--- Dave Shield <[email protected]> wrote:

> On 13/10/06, Balamurugan V <[email protected]>
> wrote:
> > privateMIB.c: In function `privPortTable_handler':
> > privateMIB.c:1375: error: too few arguments to
> > function `privPortTable_create_data_context'
> >
> > privateMIB.c: In function `privGwTable_handler':
> > privateMIB.c:2126: error: too few arguments to
> > function `privGwTable_create_data_context'
> 
> And what do these two routines look like?
> In particular, what are the prototypes?
>

prototypes at privateMIB_access.h looks like
privateMIB_access.h:
--------------------
void
*privPortTable_create_data_context(netsnmp_variable_list
* 
                                                
index_data, int column);

void
*privAsngwTable_create_data_context(netsnmp_variable_list
*
                                                 
index_data, int column);


> You say that you used "mib2c" - but how, exactly?
> What command did you run, and what answers did you
> give to any questions?
>

Here is the steps i followed with mib2c:

kept the MIB at path pointed by
MIBDIRS=/home/NetSnmp/net-snmp-5.3.1/mibs & MIBS=ALL

step1: #mib2c privateMIB
step2: selected option 2(Net-SNMP style code)
step3: selected option 1 for "GENERATING CODE FOR
SCALAR OBJECTS"
step4: selected option 1 for "GENERATING CODE FOR
TABLES:"
step5: selected option 2 for "Select the API style you
wish to use: "

step6: #./configure --with-mib-module="privateMIB"

step7: #make 

"make" is reporting error at the privateMIB.c file at
the folloing locations:
privateMIB.c
============
if (!data_context) {
                    ci->data_context =
                       
privPortTable_create_data_context(table_info->
                                                      
  indexes);
if (!data_context) {                                  
                                                      
                                   
                    ci->data_context =                
                                                      
                                                   
                       
privGwTable_create_data_context(table_info->
                                                      
   indexes);


comparing the code privateMIB.c with the prototype in
privateMIB_access.h, the second argument is missting
in the .c file. what causing this problem? am i
missing any steps here after mib2c or any option
missed out?

Thanks much,
Balamurugan

> Dave
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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