[AGENT++] Getting agent++ to build under Mac OS X

Jochen Katz katz at agentpp.com
Fri Feb 20 22:04:29 CET 2009


Hello,

> Not a major issue, but the snapshot which I was directed to (
> http://oosnmp.com/~katz/snapshot/) as of my download day appeared to be 
> based off of v3.2 Snmp++ whereas the downloads page on the website is 
> v3.2.23, according to the file comment headers.

this is because the snapshots come directly from the svn repository, and
the version info in the header of each file is not updated. The snapshot
is currently pretty close to 3.2.24.

> which I had to change manually.)  The main problem was in 'uxsnmp.h', 
> EventListHolder * eventListHolder was protected in the snapshot version, 
> but apparently our application needed the public version.  I don't know 
> which way is correct and whether our application should change or if the 
> SNMP++ v.3.2.23 with public eventListHolder is correct.

The CHANGEs file of the snapshot says:
- Changed: Use Snmp::get_eventListHolder() instead of
  Snmp::eventListHolder.

So for 3.2.24 you will have to use the function to get the pointer.

> Having patched the latest Agent++ suite from www.agentpp.org, I still see 
> unresolved symbols when building with SNMPV3 enabled (using Xcode to build 
> the application):

Most likely a complete clean rebuild with consistent settings will
resolve these errors. Or the application was originally built with an
older version of agent++/snmp++.

> I am not sure if I have missed another definition or such.  Clearly some 
> of the missing symbols are in our appplication and not in the library. 
> When I build without SNMPV3, I get even more errors, apparently the 
> application has it in mind to use the SNMPV3 classes.

If the application expects SNMPv3 enabled, there should be something
like the following in your sources:

#include <snmp_pp/config_snmp_pp.h>
#ifndef _SNMPv3
#error ERROR_ENABLE_SNMPv3_IN__CONFIG_SNMP_PP_H
#endif

So a new person in the team sees immediately what's going wrong.

Regards,
  Jochen



More information about the AGENTPP mailing list