Hi,

as preparation to move to net-snmp-5.5 in Fedora I have tried to 
recompile all packages which depends on it with net-snmp-5.5.rc2. Most 
of them compiled successfully, but I have found some packages that 
failed because of changes in public headers.

New include/net-snmp/library/snmp_client.h includes 
net-snmp/varbind_api.h, which includes net-snmp/library/mib.h, which 
#defines MIB as "1, 3, 6, 1, 2, 1". In 5.4 branch, snmp_client.h does 
not include anything, therefore MIB is not defined. Unfortunately, 
apcupsd package includes the header and later uses MIB as regular 
identifier in it's internal structure, which obviously fails.

What do generally you do in these cases? I see following options:

- apcupsd should rename their identifiers

- we should we revert the changes to public headers, introduced in SVN 
rev. 17513 (but that's quite lot of code)

- we should rename MIB to NETSNMP_MIB to prevent such errors (but 
something else might fail, if it depends on the MIB being defined...)

Jan

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to