I've done lots of googling and have searched the forums for help with compiling mod_snmp. I really wonder, how does everyone else monitor their apache servers?
I'm using Debian stable, gcc 3.3.6 and automake1.6. I'm trying to compile snmp-1.0.2. I've tried both tarballs distributed with the hyperic agent 3.2.3, and 3.2.2, getting the same error for both.
The command I use to attempt to build the module is:
./build_apache_snmp.sh -r 2.0 /usr/bin/apxs2
If there is any more information required, I'll be glad to provide it.
And the error at the end of the log is:
In file included from snmpcommon/dummy-config.c:16:
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/snmp_debug.h:26: error: expected declaration specifiers or '...' before 'oid'
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/snmp_debug.h:223: error: expected ')' before '*' token
In file included from snmpcommon/dummy-config.c:21:
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/read_config.h:74: error: expected declaration specifiers or '...' before 'oid'
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/read_config.h:75: error: expected declaration specifiers or '...' before 'oid'
apxs:Error: Command failed with rc=65536
Thanks,
-- Nicholas
I'm using Debian stable, gcc 3.3.6 and automake1.6. I'm trying to compile snmp-1.0.2. I've tried both tarballs distributed with the hyperic agent 3.2.3, and 3.2.2, getting the same error for both.
The command I use to attempt to build the module is:
./build_apache_snmp.sh -r 2.0 /usr/bin/apxs2
If there is any more information required, I'll be glad to provide it.
And the error at the end of the log is:
In file included from snmpcommon/dummy-config.c:16:
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/snmp_debug.h:26: error: expected declaration specifiers or '...' before 'oid'
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/snmp_debug.h:223: error: expected ')' before '*' token
In file included from snmpcommon/dummy-config.c:21:
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/read_config.h:74: error: expected declaration specifiers or '...' before 'oid'
/usr/local/hyperic/hyperic-hq-agent-3.2.3-EE/product_connectors/snmp-1.0.2/srclib/ucd-snmp/snmplib/read_config.h:75: error: expected declaration specifiers or '...' before 'oid'
apxs:Error: Command failed with rc=65536
Thanks,
-- Nicholas