HI
This is question about cross compile net-snmp.
I tried make with below configure options,
---------------------------------------------------------
./configure --with-default-snmp-version="3" \
--with-logfile="/var/log/snmpd.log" \
--host=arm-wrs-linux-gnueabi \
--target=arm-wrs-linux-gnueabi \
--with-cc=/home/xarina/sdk/release/ain1/tools/gnu/sysroot/xarina-latest/x86-linux2/arm-wrs-linux-gnueabi-armv6jel_vfp-glibc_small-colorgcc
\
--with-ar=/home/xarina/sdk/release/ain1/tools/gnu/sysroot/xarina-latest/x86-linux2/arm-wrs-linux-gnueabi-armv6jel_vfp-glibc_small-ar
\
--with-ld=/home/xarina/sdk/release/ain1/tools/gnu/sysroot/xarina-latest/x86-linux2/arm-wrs-linux-gnueabi-armv6jel_vfp-glibc_small-ld
\
--with-ldflags=-lpthread \
--with-endianness=big \
--enable-mini-agent \
--disable-embedded-perl \
--prefix=/home/thkim/build_x2/src/util/net-snmp
---------------------------------------------------------
then below error message occurs.
---------------------------------------------------------
making all in /home/thkim/build_x2/src/util/net-snmp/snmplib
make[1]: Entering directory '/home/thkim/build_x2/src/util/net-snmp/snmplib'
make[1]: Leaving directory '/home/thkim/build_x2/src/util/net-snmp/snmplib'
making all in /home/thkim/build_x2/src/util/net-snmp/agent
make[1]: Entering directory '/home/thkim/build_x2/src/util/net-snmp/agent'
making all in /home/thkim/build_x2/src/util/net-snmp/agent/helpers
make[2]: Entering directory
'/home/thkim/build_x2/src/util/net-snmp/agent/helpers'
make[2]: Leaving directory
'/home/thkim/build_x2/src/util/net-snmp/agent/helpers'
making all in /home/thkim/build_x2/src/util/net-snmp/agent/mibgroup
make[2]: Entering directory
'/home/thkim/build_x2/src/util/net-snmp/agent/mibgroup'
make[2]: Leaving directory
'/home/thkim/build_x2/src/util/net-snmp/agent/mibgroup'
make[1]: Leaving directory '/home/thkim/build_x2/src/util/net-snmp/agent'
making all in /home/thkim/build_x2/src/util/net-snmp/apps
make[1]: Entering directory '/home/thkim/build_x2/src/util/net-snmp/apps'
making all in /home/thkim/build_x2/src/util/net-snmp/apps/snmpnetstat
make[2]: Entering directory
'/home/thkim/build_x2/src/util/net-snmp/apps/snmpnetstat'
make[2]: Leaving directory
'/home/thkim/build_x2/src/util/net-snmp/apps/snmpnetstat'
make[1]: Leaving directory '/home/thkim/build_x2/src/util/net-snmp/apps'
making all in /home/thkim/build_x2/src/util/net-snmp/man
make[1]: Entering directory '/home/thkim/build_x2/src/util/net-snmp/man'
make[1]: Leaving directory '/home/thkim/build_x2/src/util/net-snmp/man'
making all in /home/thkim/build_x2/src/util/net-snmp/local
make[1]: Entering directory '/home/thkim/build_x2/src/util/net-snmp/local'
make[1]: Leaving directory '/home/thkim/build_x2/src/util/net-snmp/local'
making all in /home/thkim/build_x2/src/util/net-snmp/mibs
make[1]: Entering directory '/home/thkim/build_x2/src/util/net-snmp/mibs'
make[1]: Leaving directory '/home/thkim/build_x2/src/util/net-snmp/mibs'
make[1]: Entering directory '/home/thkim/build_x2/src/util/net-snmp/perl'
make[2]: Entering directory
'/home/thkim/build_x2/src/util/net-snmp/perl/default_store'
rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.so
LD_RUN_PATH="/home/thkim/build_x2/src/util/net-snmp/lib:/usr/lib/i386-linux-gnu/perl/5.20/CORE"
cc -shared -L/usr/local/lib -fstack-protector -lpthread default_store.o
-o ../blib/arch/auto/NetSNMP/default_store/default_store.so \
-L/home/thkim/build_x2/src/util/net-snmp/perl/default_store/../../snmplib/.libs
-L/home/thkim/build_x2/src/util/net-snmp/perl/default_store/../../snmplib
-lpthread -lnetsnmp -lrt -lcrypto -lm \
/usr/bin/ld: skipping incompatible
/home/thkim/build_x2/src/util/net-snmp/perl/default_store/../../snmplib/.libs/libnetsnmp.so
when searching for -lnetsnmp
/usr/bin/ld: skipping incompatible
/home/thkim/build_x2/src/util/net-snmp/perl/default_store/../../snmplib/.libs/libnetsnmp.a
when searching for -lnetsnmp
/usr/bin/ld: cannot find -lnetsnmp
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:456: recipe for target
'../blib/arch/auto/NetSNMP/default_store/default_store.so' failed
make[2]: *** [../blib/arch/auto/NetSNMP/default_store/default_store.so]
Error 1
make[2]: Leaving directory
'/home/thkim/build_x2/src/util/net-snmp/perl/default_store'
Makefile:481: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory '/home/thkim/build_x2/src/util/net-snmp/perl'
Makefile:295: recipe for target 'perlmodules' failed
make: *** [perlmodules] Error 1
---------------------------------------------------------
my env result is following below.
---------------------------------------------------------
thkim@Build2:~/build_x2/src/util/net-snmp$ env
TERM=xterm
SHELL=/bin/bash
OLDPWD=/home/thkim/build_x2/src/util
INCLUDE_PATH=-l/home/xarina/sdk/release/ain1/tools/gnu/gnu-tools/xarina-latest/x86-linux2/arm-wrs-linux-gnueabi/include/c++/4.4.1:-l/home/xarina/sdk/release/ain1/tools/gnu/sysroot/xarina-latest/sysroot/lib:-l/home/xarina/sdk/release/ain1
/tools/gnu/gnu-tools/xarina-latest/x86-linux2/arm-wrs-linux-gnueabi/include/c++/4.4.1/arm-wrs-linux-gnueabi:-l/home/xarina/sdk/release/ain1/tools/gnu/gnu-tools/xarina-latest/x86-linux2/lib/gcc/arm-wrs-linux-gnueabi/4.4.1/include:-l/home/
xarina/sdk/release/ain1/tools/gnu/gnu-tools/xarina-latest/x86-linux2/arm-wrs-linux-gnueabi/include
SSH_TTY=/dev/pts/8
SVN_EDITOR=/usr/bin/vi
USER=thkim
PATH=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/xarina/sdk/release/ain1/tools/gnu/gnu-tools/xarina-latest/x86-linux2/bin
QT_QPA_PLATFORMTHEME=appmenu-qt5
PWD=/home/thkim/build_x2/src/util/net-snmp
LANG=ko_KR.UTF-8
SHLVL=1
HOME=/home/thkim
LOGNAME=thkim
SDK_TOP_DIR=/home/xarina/sdk/release/ain1
COMPILER_PATH=/home/xarina/sdk/release/ain1/tools/gnu/gnu-tools/xarina-latest/x86-linux2/bin:/home/xarina/sdk/release/ain1/tools/gnu/sysroot/xarina-latest/x86-linux2:/home/xarina/sdk/release/ain1/tools/mtd-utils/mtd-utils/usr/sbin:/home/
xarina/sdk/release/ain1/tools/lzop/lzop-1.03/bin
LESSOPEN=| /usr/bin/lesspipe %s
XDG_RUNTIME_DIR=/run/user/1001
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env
---------------------------------------------------------
please give me an advice.
thank you.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users