I've created a patch that replaces the UCD SNMP code with it's corresponding Net-SNMP 5.0.x requirements. I tried to limit my changes to adding --enable-ucd-snmp-compatibility, but Cyrus wouldn't compile successfully when I did that. The current patch does compile successfully, although I've not yet tested it very well. Having said that, it's actually not a very invasive patch from an actual code stance (and a good thing, since I'm a complete C-coding tyro). Most of the changes come in with define changes and changing UCD SNMP function and constant names to their corresponding Net-SNMP names.

The patch is against the cyrus-imapd-2_2 CVS branch. It doesn't have any nice if/then comparisons for determining if UCD SNMP or Net-SNMP is installed and therefore setting the code up to compile correctly. I thought about doing this, but I didn't have the time, and I'm not really sure who to do the autoconf stuff to work right, so I skipped that.

I've attached the patch to bug #2152 as a potential partial resolution of that bug. If there's anything more I can do, let me know.

Best regards,
Will

----------------------------------------------------------------------------
William K. Hardeman
[EMAIL PROTECTED]
http://www.wkh.org

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
               -- Isaac Asimov

Always listen to experts. They'll tell you what can't be done and why. Then
do it.
--Robert A. Heinlein

Attachment: cyrus-imapd-2.2-netsnmp.patch
Description: Binary data



Reply via email to