Hi, I am aware that this is a special request to get help to compile Net-SNMP for ARM. Just to see if you have any suggestions to compile.
Background: I am cross compiling Net-SNMP for a custom board with ARM processor from TI. Host Operating System for Compile: Ubuntu 16.04 Previously I had compiled the Net-Snmp-5.7.3 version for ARM and had no issues during compilation. Now trying during the upgrade process with 5.9.1 and have errors during configure and then make. ARM tool chain also got migrated to the recent version. 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 #EID is Enterprise ID. 2. During Make, I have modified agent/makefile with line LMIBLIBS = -ldl -lpthread 3. I am getting an error as following: /usr/bin/ld: skipping incompatible /home/flash/snmp/net-snmp-5.9.1/snmplib/.libs/libnetsnmp.so when searching for -lnetsnmp /usr/bin/ld: skipping incompatible /home/flash/snmp/net-snmp-5.9.1/snmplib/.libs/libnetsnmp.a when searching for -lnetsnmp /usr/bin/ld: cannot find -lnetsnmp /usr/bin/ld: skipping incompatible /home/tisdk/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /home/tisdk/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/lib/libm.a when searching for -lm /usr/bin/ld: skipping incompatible /home/tisdk/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /home/tisdk/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/lib/libm.a when searching for -lm collect2: error: ld returned 1 exit status Makefile:458: 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/snmp/net-snmp-5.9.1/perl/default_store' Makefile:484: recipe for target 'subdirs' failed make[1]: *** [subdirs] Error 2 make[1]: Leaving directory '/home/snmp/net-snmp-5.9.1/perl' Makefile:299: recipe for target 'perlmodules' failed make: *** [perlmodules] Error 1 Any guidance is appreciated. Thank you. Regards, Raj.
_______________________________________________ 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