On 07.12.2011 14:18 prashant n said the following:
> Hi Michael Steiger,
> * Thanks for your valuable feedback.*
> *
> *
> *Please suggest me on following things*

Please reply to the mailing list, not directly to me!


> On Wed, Dec 7, 2011 at 5:25 PM, Michael Steiger <[email protected]
> <mailto:[email protected]>> wrote:
>
>     On 07.12.2011 11:38 prashant n said the following:
>
>         Hi,
>               I wanted to cross compile net-snmp package 5.6.1.1 into
>         our target
>         device.
>
>         Target Device Platform Details
>             Embedded H/W withLinux OS (AT91SAM9260-EK board)
>
>           1.
>             Kernel Version : 2.6.27
>
>           2.
>             Busy Box Version: v1.12.0
>
>           3.
>
>             Pre-built Linux OS with file system, ARM9 CPU
>
>           4.
>
>             Compiler : uclibc
>
>
>             I have gone through net-snmp FAQ's on compliling. When i  cross
>             compiled  net-snmp package using following command:
>
>             *./configure
>         --with-cc=/opt/usr/bin/arm-__linux-uclibcgnueabi-gcc*
>
>             I got following error
>
>             *checking for gcc... /opt/usr/bin/arm-linux-__uclibcgnueabi-gcc*
>
>             *checking for C compiler default output file name... a.out*
>
>             *checking whether the C compiler works... configure: error: in
>
>           
> `/home/prashant/Desktop/SNMP/__SNMPDownloads/net-snmp/net-__snmp-5.6.1.1':*
>
>             *configure: error: cannot run C compiled programs.*
>         Failed
>             *If you meant to cross compile, use `--host'.*
>
>             *See `config.log' for more details.*
>
>             *
>
>             *
>
>             How to fix this problem, please guide me on this?
>
>
>     Hi,
>     just read the output.
>     It says
>
>     "If you meant to cross compile, use `--host'"
>     "See `config.log' for more details."
>
>     Have you looked at this option and into this logfile before asking?
>
>
>
>     I crosscompile net-snmp using ELDK 4.2 for PowerPC and use the
>     following script successfully (CROSS_COMPILE is set for the specific
>     compiler and many options are only relevant for this project):
>
>
>     CC=${CROSS_COMPILE}gcc
>     LD=${CROSS_COMPILE}ld
>
>     ./configure --host=ppc-linux --build=i386-pc-linux-gnu
>     --target=ppc-denx-linux --program-prefix= --prefix=/usr
>     --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
>     --sysconfdir=/etc --datadir=/usr/share
>     --includedir=/usr/include/net-__snmp --libdir=/usr/lib
>     --libexecdir=/usr/libexec --localstatedir=/var
>     --sharedstatedir=/usr/com --mandir=/usr/share/man
>     --infodir=/usr/share/info --with-endianness=big --enable-privacy
>       --without-rpm  --enable-shared --with-cflags="-O2 -fsigned-char"
>     --with-ldflags=  --sysconfdir=/etc --with-libwrap --with-pic
>     --disable-embedded-perl --without-perl-modules
>     --with-persistent-directory=/__var/net-snmp
>     --with-logfile=/var/log/snmpd.__log --with-sys-location=Unknown
>     --with-sys-contact=root@__localhost --disable-snmpv1
>     --with-default-snmp-version="__2" --enable-des --enable-internal-md5
>     --with-openssl=internal --enable-mini-agent --with-transports="UDP
>     TCP Callback Unix" --disable-manuals --disable-scripts
>     --enable-agentx-dom-sock-only
>     --with-out-mib-modules="__examples/ucdDemoPublic ucd_snmp target
>     utilities disman/event disman/schedule host"
>     --with-mibs="SNMPv2-MIB:IF-__MIB:IP-MIB:TCP-MIB:UDP-MIB"
>     --with-mib-modules="agentx agentx/master"
>
>


 > **1) What are all parameters i need to pass  to ./configure in order to
 > cross compile ?

At least
host, target and build


 >    2) Can you tell me the location(path) for config.log file ?
Should be in the same directory where configure is located
At least on my system.

Did you really look for it?


Maybe
http://www.pavius.net/2011/02/compiling-net-snmp-for-embedded-linux-using-the-eldk/
can help you.

But please use google (or another search engine) yourself.
Using "cross-compile net-snmp" you would have found
http://www.net-snmp.org/wiki/index.php/FAQ:Compiling_06
which partly explains the process.


Michael

PS: And please


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to