On Wed, 01 Feb 2006 11:00:26 -0800 Wes wrote:
WH> Thomas> a) introduce some config_XXX in the mib module header files for
WH> Thomas> the *supported* platforms
WH> 
WH> Thomas> b) introduce some config_XXX in the mib module header files for
WH> Thomas> the *unsupported* paltforms
WH> 
WH> We have mechanisms for doing these.  config_error and config_warning
WH> both allow you to mention problems.  However, I think:
 [...]
WH> 2) As to whether to do a) or b), I'd tend to think it's likely a
WH>    case-by-case basis.  Much of the time, for example, it might depend
WH>    on the existence of a test/header/something and should be treated
WH>    that way rather than using #if[n]def ARCH.  If I was going to pick
WH>    one to lean toward, it would probably be ifdeffing out unsupported
WH>    platforms unless it's only known to work on 1-2.

The new MFD rewrites '#ifdef ARCH' to include stuff, with an ending '#else' to
issue a warning for other platforms.

>>>>> On Thu, 09 Feb 2006 00:52:19 +0100, Thomas Anders
>>>>> <[EMAIL PROTECTED]> said:

Thomas> As for the benefits of doing so, it's not only the mentioned "bail 
Thomas> early" factor. I could envision using e.g. --with-mib-module=ALL to 
Thomas> select all mib modules available on the current platform (which isn't 
Thomas> possible today, but handy e.g. for nightly builds).

I've also has this idea in the back of my head. The nightly build scripts try
and do minimal extra configuration, but it's hand coded. Something auto-magic
would be great.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to