Hi all,
I'm currently trying to cross-compile a minimal agent (version 5.7.2) that
allows me to get information about the interfaces and the device itself,
while being as small as possible. My configure script looks as follows:
./configure --enable-static --disable-shared --with-mib-modules="myExample
mibII/ifTable mibII/ipAddr host/hr_system if-mib/ifTable mibII/system_mib
ip-mib/inetNetToMediaTable" --without-opaque-special-types
--disable-debugging --host=arm-linux --target=arm-linux
--with-ldflags="-Bstatic -lpthread" --with-cflags="-s -static -O2
-fsigned-char" --with-linkcc=arm-linux-gcc --with-ar=arm-linux-ar
--with-cc=arm-linux-gcc --enable-mini-agent --enable-minimalist
--with-out-transports="TCP Alias Unix Callback" --with-openssl=internal
--with-perl-modules=no --prefix=/root/arm --exec-prefix=/root/arm
--disable-scripts --disable-manuals --disable-snmpv1 --disable-snmpv2c
--with-default-snmp-version=3 --with-sys-contact="p.jaehne@whatever"
--with-sys-location="modem" --with-logfile="/var/log/snmpd.log"
--with-persistent-directory="/var/net-snmp" --without-rpm
--disable-embedded-perl --disable-deprecated --disable-md5 --disable-des
--disable-ipv6 --disable-snmptrapd-subagent
The mib module called myExample is my own and is working. However, as soon
as I add any of the other modules, 'configure' runs through but 'make'
creates the following error message:
./.libs/libnetsnmpmibs.a(ifTable.o): In function `_if_number_handler':
ifTable.c:(.text+0x614): undefined reference to `ifTable_container_size'
./.libs/libnetsnmpmibs.a(interface.o): In function `Interface_Scan_Init':
interface.c:(.text+0x760): undefined reference to
`netsnmp_cache_find_by_oid'
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Fehler 1
Interestingly, I can't even find an invocation of the method
netsnmp_cache_find_by_oid in interface.c.
Am I missing some dependencies of the modules or am I removing some
functionality that would be necessary?
I hope you can help me out.
Cheers,
Paul
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
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