-----Original Message-----
From: Adam Bell [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 12, 2007 8:58 AM
To: Wilde, Donald
Cc: [EMAIL PROTECTED]
Subject: RE: Compiled variable code in net-snmp-5.4

After a bunch of messing around, here is what I did

use --with-mib-module=xxx  in configure just as you did.
Then create agent/mibgroup/dellmib directory and
agent/mibgroup/dellmib.h put all your mib2c created code files in
dellmib

DSW> Adam, effectively, that's what I did when  I created
DELL-CMC-MIB.[ch]. I created the separate file templates, populated
them, then combined them into the .h and .c. 

In dellmib.h add lines for every file compiled within the dir dellmib
        config_require(dellmib/filename.c)
        config_add_mib(DELL-CMC-MIB)

Run make clean and configure.

DSW> Hmmm... Will have to investigate the source to see what these do. I
think you're right that it's my combination of code into one MIB code
file that's keeping it from running init_* on each successive
function/variable.

This causes configure to place the proper init calls into the
mib_modules_inits.h (not mib_module_includes.h) - my mistake.

DSW> No, you didn't make a mistake. You were talking about
mib_module_init.h. I included the _includes.h line (which is commented)
after grepping the directory. 

Thanks for digging, Adam!
--
Don Wilde                           512-723-8255
Dell, Incorporated         Austin, Texas, USA

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

Reply via email to