NetSNMP can be tricky to install. Below is the config I use to cross
compile. I do not use the make tests. You will need to modify the
config line to reflect your install.
Change to you net-snmp directory and execute:
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/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin;CFLAGS="-isystem
/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unk
nown-linux-gnu/include -I/home/colin/code/STX/openssl/include"
CPPFLAGS="-isystem
/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/include"
./configure --with-cflags="-isystem
/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/include
-I/home/colin/code/STX/openssl/include" --target=arm-linux --host=arm
--build=i686 --with-cc=arm-unknown-linux-gnu-gcc
--with-ar=arm-unknown-linux-gnu-ar
--with-ranlib=arm-unknown-linux-gnu-ranlib --with-endianness=little
--disable-applications --disable-manuals --disable-scripts
--enable-mini-agent --host=arm-unknown-linux-gnu
--with-mib-modules=YourMIB --disable-embedded-perl
--without-perl-modules --with-default-snmp-version=3
--with-openssl="/home/colin/code/STX/openssl"
--without-opaque-special-types --with-sys-contact="YourContact"
--with-sys-location="YourLocation" --with-logfile="/var/log/snmpd.log"
--with-persistent-directory="/var/net-snmp"
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|