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.*
>
> *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"
------------------------------------------------------------------------------
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