Jordan,

The openSSL library is only required for encryption, if you do not need 
net-snmp to support encryption you can drop the openssl and encryption 
references from the configure line.

If you do require full V3 encryption support, the method for installing 
the openssl development files will vary depending on your target board 
abilities, the obvious ones to me are:

1. If you board has a package manager install the openssl libraries and 
note the version of openssl installed. Install the matching version of 
openssl  headers, or dev files, into your cross compilation environment. 
Point the configure script at the headers.
2. Copy the openssl lib from the debian arm repository, (although you 
will then need to manually ensure that the target board supports the 
required version of glibc and any other dependencies, including arm 
instruction set version). Install the matching version of openssl  
headers, or dev files, into your cross compilation environment.
3. Cross compile openssl from source on your development machine and 
install the libraries on the target. Point the configure script at the 
headers.

There may be other ways to approach this problem that may be easier.

Cheers
Colin

Jordan Kagan wrote:
> Hey Colin,
>
> Thanks for your response.  We're close, but we're not sure where the 
> */openssl/include file you have in your configuration comes from.  We 
> can't find this folder, but we have openssl installed.
>
> Jordan
>
> On Fri, Jan 8, 2010 at 11:30 PM, Colin Strachan <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Jordan,
>
>     You need to use the makefile properly configured for the target.
>
>     This script builds the 5.4.1agent only for an arm target, tweak to
>     suit your requirements and version.
>
>     cd net-snmp-5.4.1/
>     #1 single find command and xargs chokes due to bash line
>     limitation, process sequentially
>     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 {} \;
>
>     # path passed for openssl must be absolute
>     # modify --sys-contact, --sys-location and --with-mib-modules as
>     required
>     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=anyspecialmibs
>      --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]
>     <mailto:[email protected]>" --with-sys-location="XXX"
>     --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
>     # .so.X.X version may need changed according to net-snmp revision
>     being built
>     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
>
>     Jordan Kagan wrote:
>
>         If I was going to use a cross compiler on net-snmp, how would
>         I do this?
>
>         I used a gcc compiler for an Arm processor on smpd.c, but it
>         returned a bunch of errors because it couldn't find the includes.
>
>         Thanks,
>
>         Jordan
>         
> ------------------------------------------------------------------------
>
>         
> ------------------------------------------------------------------------------
>         This SF.Net email is sponsored by the Verizon Developer Community
>         Take advantage of Verizon's best-in-class app development support
>         A streamlined, 14 day to market process makes app distribution
>         fast and easy
>         Join now and get one step closer to millions of Verizon customers
>         http://p.sf.net/sfu/verizon-dev2dev
>         
> ------------------------------------------------------------------------
>
>         _______________________________________________
>         Net-snmp-coders mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>          
>
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to