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

This is a discussion on Re: Facing "too few arguments to function" error when do "make" on my within the SNMP Users forums, part of the Networking and Network Related category; Hi Dave, Please find reply inline --- Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote: > On ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-14-2006
Balamurugan V
 
Posts: n/a
Default Re: Facing "too few arguments to function" error when do "make" on my

Hi Dave,

Please find reply inline

--- Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote:

> On 13/10/06, Balamurugan V <bvengatt@yahoo.com>
> 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_variabl e_list
*

index_data, int column);

void
*privAsngwTable_create_data_context(netsnmp_variab le_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=...057&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0