From: yin.yao <yi...@gm...> - 2013-11-01 01:54:02
|
Hi, I want to transplant netsnmp into my embedded device. Here is my configure option: CC=arm-none-linux-gnueabi-gcc ./configure --prefix=/usr/local/net-snmp-5.7.2/yaoyin --with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --host=arm-none-linux-gnueabi --disable-ipv6 --with-endianness=little --disable-embedded-perl --disable-perl-cc-checks --with-mib-modules="IPCBA-MIB" --disable-debugging --disable-applications --with-ldflags=-Bstatic For some reason,I don't use --enable-mini-agent . when I run snmpd in my embedded device,I encounter an error like this:Inconsistency detected by ld.so: dl-deps.c: 622: _dl_map_object_deps: Assertion `nlist > 1' failed! Then,I copy all libs into /usr/lib of my embedded device,these libs are below: libnetsnmp.a libnetsnmp.so.30.0.2 libnetsnmpagent.so.30 libnetsnmp.la libnetsnmpagent.a libnetsnmpagent.so.30.0.2 libnetsnmp.so libnetsnmpagent.la libnetsnmp.so.30 libnetsnmpagent.so After I do this, I run snmpd again. This time,everything is ok. But these lib are 16M . It's too large for my embedded device. Please help me solove this problem!! My english is not very good,but I'm working on it. Best Wishes For You! 此致 敬礼 姚银 软件开发工程师 南京杰迈视讯科技有限公司 手机:15150566230 邮箱: yi...@gm... 网站: www.gm-innovation.com.cn 南京市秦淮区永智路6号白下高新技术产业园区中国云计算创新基地B幢6层 邮编:210014 |