On 2/16/22 12:57, raja vankam wrote:
1. ./configure command
./configure --with-enterprise-sysoid=.1.3.6.1.4.1.EID
--with-enterprise-notification-oid=.1.3.6.1.4.1.EID --with-cflags="-I/home/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/include"
--with-ldflags="-L/home/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/lib
-L/home/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/lib"
--target=arm-linux *--with-cc=arm-linux-gnueabihf-gcc*
--with-endianness=big *--with-default-snmp-version=3*
--without-kmem-usage --disable-scripts --disable-manuals
--disable-applications *--disable-embedded-perl* --disable-des
*--disable-snmptrapd-subagent* --with-mib-modules="sourcecode/module1
sourcecode/module2" --host=arm-linux-gnueabihf
Please use --host instead of --with-cflags, --with-ldflags and --target.
This is how I cross-compile Net-SNMP for ARM:
./configure --enable-developer --enable-ipv6
--prefix=/home/bart/net-snmp-master --with-cflags="-g -O1 -pipe
-DNETSNMP_USE_ASSERT -DNETSNMP_USE_ASSERT" --with-defaults
--enable-new-features --with-perl-modules --with-default-snmp-version=2
--with-systemd --enable-blumenthal-aes --with-python-modules
--with-transports="IPX STD UDPshared DTLSUDP TLSTCP"
--with-security-modules="usm tsm" --with-mib-modules="agent/extend
examples/data_set examples/delayed_instance examples/example
examples/notification examples/scalar_int examples/ucdDemoPublic
examples/watched smux deliver/deliverByNotify disman/event
disman/expression disman/mteEventNotificationTable disman/mteEventTable
disman/mteObjectsTable disman/mteTriggerBooleanTable
disman/mteTriggerDeltaTable disman/mteTriggerExistenceTable
disman/mteTriggerTable disman/mteTriggerThresholdTable
disman/nslookup-mib disman/ping-mib disman/schedule
disman/traceroute-mib etherlike-mib examples/netSnmpHostsTable
hardware/cpu hardware/fsys hardware/memory host ip-forward-mib
ip-mib/inetNetToMediaTable ip-mib/ipDefaultRouterTable
ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable
ip-mib/ipv6ScopeZoneIndexTable mibII/mta_sendmail misc/ipfwacc sctp-mib
snmp-notification-mib tcp-mib testhandler tunnel ucd-snmp/diskio
ucd-snmp/extensible udp-mib rmon-mib snmp-usm-dh-objects-mib tlstm-mib
tsm-mib" --host=arm-linux-gnueabihf
Bart.
_______________________________________________
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