On Wed, Dec 30, 2009 at 10:20 AM, Thomas Anders <[email protected]> wrote: > r17933 introduced an additional "#include <net-snmp/library/types.h>" in > include/net-snmp/library/tools.h. > configure now throws the following #error for me: > > - --- snip --- > In file included from /my/net-snmp-5.6svn/include/net-snmp/library/types.h:9, > from /my/net-snmp-5.6svn/include/net-snmp/library/tools.h:12, > from > /my/net-snmp-5.6svn/include/net-snmp/agent/cache_handler.h:21, > from /my/net-snmp-5.6svn/agent/mibgroup/mibII/icmp.h:11, > from module_tmp_header.h:65: > /my/net-snmp-5.6svn/include/net-snmp/types.h:11:2: #error "Please include > <net-snmp/net-snmp-config.h> before this file" > In file included from /my/net-snmp-5.6svn/include/net-snmp/session_api.h:254, > from > /my/net-snmp-5.6svn/include/net-snmp/library/snmp_client.h:32, > from /my/net-snmp-5.6svn/include/net-snmp/varbind_api.h:79, > from > /my/net-snmp-5.6svn/include/net-snmp/library/snmp_api.h:28, > from /my/net-snmp-5.6svn/include/net-snmp/definitions.h:23, > from /my/net-snmp-5.6svn/include/net-snmp/types.h:378, > from /my/net-snmp-5.6svn/include/net-snmp/library/types.h:9, > from /my/net-snmp-5.6svn/include/net-snmp/library/tools.h:12, > from > /my/net-snmp-5.6svn/include/net-snmp/agent/cache_handler.h:21, > from /my/net-snmp-5.6svn/agent/mibgroup/mibII/icmp.h:11, > from module_tmp_header.h:65: > /my/net-snmp-5.6svn/include/net-snmp/library/snmpCallbackDomain.h:5:2: #error > "Please include <netsnmp/net-snmp-config.h> before this file" > - --- snap --- > > which stems from configure.d/config_modules_agent. > > Where exactly do we want to put an additional "#include > <net-snmp/net-snmp-config.h>" to fix that? If not in > include/net-snmp/library/tools.h, shall there be a similar "Please include > ..." warning? Or shall we fix it differently?
A workaround has been implemented in r17938. But it's only a workaround and nothing more -- it does not fix the underlying problem, namely that inclusion of <net-snmp/net-snmp-config.h> by one of the source files compiled by configure.d/config_modules_agent triggers a circular dependency. Bart. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
