Re: Broken mib2c ifTable make?

"Nikos Balkanas" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <002501c96482$49933500$02b2a8c0@tardis>
Thanks for replying.

There is no config.log. This is from a binary Solaris package from the 
distribution of Solaris 10.5.

I downloaded the mib from the tutorial web site and I run mib2c on it. For 
the first error, the offending lines are:

************** ./ifTable_data_access.c ***************
315:        (rowreq_ctx->data.ifDescr_len <
316:         (ifDescr_len* sizeof(ifDescr[0])))) {
320:    rowreq_ctx->data.ifDescr_len = ifDescr_len* sizeof(ifDescr[0]);
321:    memcpy( rowreq_ctx->data.ifDescr, ifDescr, ifDescr_len* 
sizeof(ifDescr[0]) );

that is undefined ifDescr_len in lines 316,320 and 321.

I grepped around all the source code that mib2c generated, and I couldn't 
find any references of ifDescr_len (ifdef or otherwise). Except in table.h 
within the data structure (line 315 is valid). No wonder it fails.

Have you managed to run the Tutorial? Is mib2c any good?

http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/ifTable/testing.html

BR,
Nikos
----- Original Message ----- 
From: "Brian A. Seklecki" <[email protected]>
To: "Nikos Balkanas" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 22, 2008 10:07 PM
Subject: Re: Broken mib2c ifTable make?


>
>
>
> On Mon, 22 Dec 2008, Nikos Balkanas wrote:
>
>> Any ideas? Anyone?
>>
>
> pastebin your config.log
>
> I'm guessing there's a missing dependency that is erroneously failing
> non-critical (some kind of #ifdef insanity)
>
> ~BAS
>
>
>> BR,
>> Nikos
>>  ----- Original Message -----
>>  From: Nikos Balkanas
>>  To: [email protected]
>>  Sent: Monday, December 22, 2008 9:02 AM
>>  Subject: Broken mib2c ifTable make?
>>
>>
>>  Hi,


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


> ------------------------------------------------------------------------------
>


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


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


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