Re: How to cross-compile net-snmp in cygwin
"John Anderson" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CB92FD3A2EA149BE9F233C6847DC6B62@BoardnDude> |
This is my configure options. I am able to create an executable for snmpd.
INCLUDE_PATH=-I/opt/crosstool/powerpc-linux/include/c++/3.4.4 -I/opt/crosstool/powerpc-linux/include/c++/3.4.4/powerpc-405-linux-gnu -I/opt/crosstool/powerpc-linux/lib/gcc/powerpc-405-linux-gnu/3.4.4/include -I/opt/crosstool/powerpc-linux/powerpc-405-linux-gnu/include -I/opt/crosstool/powerpc-linux/powerpc-405-linux-gnu/sys-include
set COMPILER_PATH=/opt/crosstool/powerpc-linux/bin
LDFLAGS=-lpthread
export COMPILER_PATH
export INCLUDE_PATH
./configure --target=powerpc-405-linux-gnu \
--host=powerpc-405-linux-gnu \
--with-cc=/opt/crosstool/powerpc-linux/bin/powerpc-405-linux-gnu-gcc \
--with-ar=/opt/crosstool/powerpc-linux/bin/powerpc-405-linux-gnu-ar \
--with-ln=/opt/crosstool/powerpc-linux/bin/powerpc-405-linuc-gnu-ln \
--with-ldflags=$LDFLAGS \
--with-endianness=big \
--disable-embedded-perl \
--with-mib-modules="coretecMIB CORETEC-MIB/vcxSCTable/vcxSCTable CORETEC-MIB/osdTable/osdTable"
John Anderson
From: mmlucky Im
Sent: Friday, February 13, 2009 12:15 PM
To: [email protected]
Subject: Re: How to cross-compile net-snmp in cygwin
I found the generated /snmp/agent/snmpd is a script file, which says:
# snmpd - temporary wrapper script for .libs/snmpd
# Generated by ltmain.sh - GNU libtool 1.5.26 (1.1220.2.492 2008/01/30 06:40:56).
While under /snmp/agent/.libs/ there are generated library files and a snmpd image file which can't be
run seperately on target machine.
Looks like the final snmpd isn't generated. Does any one know what might be the cause?
Thanks!
On Thu, Feb 12, 2009 at 3:17 PM, mmlucky Im <[email protected]> wrote:
I'm trying to cross-compiling net-snmp under cygwin. The target machine is linux 2.4.26. When I run ./snmpd -c ./snmpd.conf, I got error:
./snmpd: 131: /usr/bin/sed: not found
./snmpd: 131: /usr/bin/sed: not found
cd: 1: can't cd to /cygdrive/c/..../snmp/agent
eval: 1: arm-linux-gcc: not found
The Configure options I used are:
./configure --with-mib-modules="commsMgr" \
--disable-applications --with-defaults \
--disable-manuals \
--disable-scripts \
--disable-mibs \
--disable-debugging \
--disable-snmptrapd-subagent \
--host=arm-linux \
--target=arm-linux \
--with-endianness=little \
--disable-mibs \
--with-ld=arm-linux-ld \
--disable-embedded-perl \
--without-perl-modules
Can anyone tell me what to fix? Thanks a lot!
Another question is since I disabled perl, can snmpd still read the config file snmpd.conf? If not, how can I configure snmpd?
Many thanks!
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users