Hi,

I am trying to add my own modules for NET-SNMP by following the instructions 
give on net-snmp web site.

Basically, I modified the spec file by adding  
--with-mib-modules="mpbcRMH_Mon_HPU_State" at the end of ./configure, i.e.,

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} 
--disable-embedded-perl \
 --without-perl-modules with_endianness=big --enable-mini-agent 
--with-default-snmp-version="3" --disable-des --disable-debugging \
 --with-sys-contact="who@where" --with-logfile="/var/log/snmp" 
--with-transports="UDP TCP" \
 --with-defaults --with-mib-modules="mpbcRMH_Mon_HPU_State"


I copied both C and header files in : 
/ltib-modelo-20110422/rpm/BUILD/net-snmp-5.7.1/agent/mibgroup$

When I compile, I get the following error:

checking for and configuring mib modules to use...  mpbcRMH_Mon_HPU_State 
default_modules.
configure: WARNING: mib module error
configure: error: module files mpbcRMH_Mon_HPU_State.h or 
mpbcRMH_Mon_HPU_State.c could not be found in ./agent/mibgroup
error: Bad exit status from 
/home/schamlian/M54418TWR_Linux/ltib-modelo-20110422/tmp/rpm-tmp.38130 (%build)


RPM build errors:
    Bad exit status from 
/home/schamlian/M54418TWR_Linux/ltib-modelo-20110422/tmp/rpm-tmp.38130 (%build)
Build time for net-snmp: 25 seconds

Failed building net-snmp


How do I fix the path?

Thanks in advance,
Simon

                                          
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to