build_apache_snmp.sh fails with missing header files for snmpcommon/dummy-config.c

Solution Verified - Updated -

Issue

  • httpd SNMP agent does not compile:
    ...
    building Apache module
    Build failed. Please email /tmp/apache-snmp/sources/2.2_log to support
    
  • build fails with compilation issues reported in 2.2_log:
    ...
    /usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -shared -I. -I. -I/root/tmp/apache-snmp/sources/snmp_common/sdbm -I/usr/include/httpd -I/usr/include/apr-1 -DUSING_MIBII_SYSORTABLE_MODULE  -c -o snmpcommon/dummy-config.lo snmpcommon/dummy-config.c && touch snmpcommon/dummy-config.slo
    snmpcommon/dummy-config.c:14:29: error: ucd-snmp-config.h: No such file or directory
    snmpcommon/dummy-config.c:15:18: error: asn1.h: No such file or directory
    snmpcommon/dummy-config.c:16:24: error: snmp_debug.h: No such file or directory
    snmpcommon/dummy-config.c:17:27: error: default_store.h: No such file or directory
    snmpcommon/dummy-config.c:18:22: error: ds_agent.h: No such file or directory
    snmpcommon/dummy-config.c:19:26: error: snmp_logging.h: No such file or directory
    snmpcommon/dummy-config.c:20:31: error: mib_module_config.h: No such file or directory
    snmpcommon/dummy-config.c:21:25: error: read_config.h: No such file or directory
    snmpcommon/dummy-config.c:22:31: error: agent_read_config.h: No such file or directory
    snmpcommon/dummy-config.c: In function 'init_agentx_dummy_config':
    snmpcommon/dummy-config.c:38: warning: implicit declaration of function 'snmpd_register_config_handler'
    apxs:Error: Command failed with rc=65536
    .
    make[1]: *** [libsnmpcommon.so] Error 1
    make[1]: Leaving directory `/root/tmp/apache-snmp/sources/snmp2.0/src'
    make: *** [all] Error 2
    

Environment

  • JBoss Operations Network (JON) 2.3
  • Red Hat Enterprise Linux 5.4
  • Package: httpd-devel 2.2.10, 2.2.13, 2.2.14
  • Apache SNMP Connector source provided by connector-apache.zip
  • Building Apache SNMP Connector from source using ./build_apache_snmp.sh 2.2 /usr/sbin/apxs

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.