Vishal

This script builds the agent only, tweak to suit your requirements.

cd net-snmp-5.4.1/
find -name "*.o" -exec rm -f {} \;
find -name "*.lo" -exec rm -f {} \;
find -name "*.so" -exec rm -f {} \;
find -name "*.la" -exec rm -f {} \;
find -name "*.a" -exec rm -f {} \;

export PATH=
$PATH:/opt/crosstool/arm-2007q1/bin;CFLAGS="-I/home/colin/code/CVS/STX/openssl/include"
 ./configure  --with-cflags="-I/home/colin/code/CVS/STX/openssl/include" 
--target=arm-linux --host=arm --build=i686 --with-cc=arm-none-linux-gnueabi-gcc 
--with-ar=arm-none-linux-gnueabi-ar --with-ranlib=arm-none-linux-gnueabi-ranlib 
--with-endianness=little --disable-applications --disable-manuals 
--disable-scripts --enable-mini-agent --host=arm-none-linux-gnueabi 
--with-mib-modules=slbstx  --disable-embedded-perl --without-perl-modules 
--with-default-snmp-version=3 --with-openssl="/home/colin/code/CVS/STX/openssl" 
--without-opaque-special-types --with-sys-contact="[EMAIL PROTECTED]" 
--with-sys-location="Stablised Antenna System" 
--with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" 
--with-ldflags="-lpthread" --enable-des=yes --enable-privacy=yes 
--enable-md5=yes

make
export DDIR=/mnt/ARM            # Copy files to embedded nfs root
rm $DDIR/libnetsnmpagent.so.15
rm $DDIR/libnetsnmpmibs.so.15
rm $DDIR/libnetsnmp.so.15
rm $DDIR/libnetsnmphelpers.so.15
cp ./agent/.libs/libnetsnmpagent.so.15.1.0 $DDIR
ln -s $DDIR/libnetsnmpagent.so.15.1.0 $DDIR/libnetsnmpagent.so.15
cp ./agent/.libs/libnetsnmpmibs.so.15.1.0 $DDIR
ln -s $DDIR/libnetsnmpmibs.so.15.1.0 $DDIR/libnetsnmpmibs.so.15
cp ./snmplib/.libs/libnetsnmp.so.15.1.0 $DDIR
ln -s $DDIR/libnetsnmp.so.15.1.0 $DDIR/libnetsnmp.so.15
cp ./agent/helpers/.libs/libnetsnmphelpers.so.15.1.0 $DDIR
ln -s $DDIR/libnetsnmphelpers.so.15.1.0 $DDIR/libnetsnmphelpers.so.15
cp agent/.libs/snmpd $DDIR


Cheers
Colin


On Tue, 2008-04-01 at 16:22 +0530, Vishal Nandanwar wrote:
> Hi,
>  
> I want to build Net-SNMP-5.4.1 for arm linux. I am using snapgear for
> arm-linus. Is anybody knows how to configure and compile it for
> arm-linux?
>  
> Vishal N
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________ Net-snmp-coders mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to