Hi  Michael Steiger,
*                                 Thanks for your valuable feedback.*
*
*
As per your suggestion, i have gone through the links as you suggested in
the previous mail.

I  have searched  config.log file in all possible configuration paths but i
can't able to find it .

*Please suggest me on following things*
*
*
1)  What is the actual difference between  configure options such as --host
and --build ?

2) Configure options such as  --host, --build and --target are used for
cross compiling. Whether we need to specify processor/controller type for
each of these options? What is the format of specifying   --host, --build
and --target  ?

3) When i run uname -a  on the UBUNTU host and target device  i got
following output

**************UBUNTU***************

prashant@prashant-PC:~/Desktop/SNMP/SNMPDownloads/net-snmp/net-snmp-5.6.1.1$
*uname -a*
*Linux prashant-PC 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC
2011 i686 i686 i386 GNU/Linux*
prashant@prashant-PC:~/Desktop/SNMP/SNMPDownloads/net-snmp/net-snmp-5.6.1.1$
uname --help
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all                print all information, in the following order,
                             except omit -p and -i if unknown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type or "unknown"
  -i, --hardware-platform  print the hardware platform or "unknown"
  -o, --operating-system   print the operating system
      --help     display this help and exit
      --version  output version information and exit
******************************************************************************


************* Target device*************
#* uname -a*
*Linux iSense 2.6.27 #227 Fri Apr 15 14:50:22 IST 2011 armv5tejl unknown*
# uname -h
BusyBox v1.12.0 (2010-09-24 12:04:01 IST) multi-call binary

Usage: uname [-amnrspv]

Print system information.

Options:
        -a      Print all
        -m      The machine (hardware) type
        -n      Hostname
        -r      OS release
        -s      OS name (default)
        -p      Processor type
        -v      OS version
******************************************************************************************

Now tell me based on this how can i set configure options such as  --host,
--build and --target ?

*Thanks in Advance*
*Prashant Nirni*


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
------------------------------------------------------------------------------
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