Dave Thanks,

I've reinstall the all environment from scratch and it did work.

I think there is dependencies in the compilation ,meaning if one of the
MIB files is problematic he can influence the others.


-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Wednesday, May 09, 2007 3:57 PM
To: Kobi Vaknin (kvaknin)
Cc: net-snmp-coders
Subject: Re: problem in compiling new mib by the mib2c

[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]

On 07/05/07, Kobi Vaknin (kvaknin) wrote:
> The command line I've used: mib2c -i -c mib2c.scos.conf
> -I$PATH_CONF cServiceControlSubscribersTable I've also set the export

set :
> MIBDIRS=../../../net-snmp-mibs:$OUR_MIBDIR
> In generall I've compiled 10 mibs without any problems.
> This configuration file was constructed according to your guldens
> (table that its Db is entirely handled by the user), attached

OK - I've tried running this command on the MIB file you send in the
previous message. The output generated looks sensible (including
init_, initialize_ and handler routines).

However I did note that both this command and the log file would
result in a file 'cServiceControlSubscribersTable.c'. But the code
file you originally attached was 'ciscoServiceControlSubscribersMIB.c'

That doesn't explain the problems you are seeing, since that code
file should have included support for both tables. But it does tend
to indicate that the information you're providing isn't entirely

But I can confirm that the command above should work sensibly, as long
as your development environment is set up correctly.


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Net-snmp-coders mailing list