Re: ‘ifIndex’ undeclared

Brilliantov Kirill Vladimirovich <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization LLC Byterg
Message-ID <[email protected]>
Mishustin Kirill wrote on 12/24/2010 01:28 PM:
> 
> 24.12.2010 16:00, Brilliantov Kirill Vladimirovich wrote:
>>   ./configure --prefix=/tmp/net-snmp --host=arm_v5t_le --disable-manuals
>> --disable-embedded-perl --disable-ipv6
>> --with-sys-contact="[email protected]" --with-sys-location="ip-camera"
>> --with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log"
>> --with-persistent-directory="/var/net-snmp"
>>
>> .................................
>> checking for inline... inline
>> checking build system type... i686-pc-linux-gnu
>> checking host system type... Invalid configuration `arm_v5t_le': machine
>> `arm_v5t_le' not recognized
>> configure: error: /bin/sh ./config.sub arm_v5t_le failed
>>
> 
> That is strange name of your toolchain. I always used toolchains with
> "linux" in the name. Like arm-linux, or arm-softfloat-linux-gnu or
> arm-mv5sft-linux-gnueabi. So --host was always enough.
> 

I have used SDK for TexasInstruments Davinci CPU series.

> Looks like your variant with "undefined reference" was closer to result.
> Can you post here whole error message? Undefined reference to what and
> where?
> 

./configure --prefix=/tmp/net-snmp --host=arm-linux --disable-manuals
--disable-embedded-perl --disable-ipv6  --with-cc=arm_v5t_le-gcc
--with-sys-contact="[email protected]" --with-sys-location="ip-camera"
--with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log"
--with-persistent-directory="/var/net-snmp" --with-endianness=little

....................................

/bin/sh ../libtool  --mode=link arm_v5t_le-gcc -g -O2 -Ulinux
-Dlinux=linux  -o snmpd snmpd.lo  -L../snmplib/.libs -L../snmplib
-L./.libs  libnetsnmpagent.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la
libtool: link: arm_v5t_le-gcc -g -O2 -Ulinux -Dlinux=linux -o
.libs/snmpd .libs/snmpd.o
-L/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/.libs
-L/home/kirill/MVK-IP/contribs/net-snmp-5.6/snmplib/.libs
-L/home/kirill/MVK-IP/contribs/net-snmp-5.6/snmplib
./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/.libs/libnetsnmpagent.so
/home/kirill/MVK-IP/contribs/net-snmp-5.6/snmplib/.libs/libnetsnmp.so
-ldl -lpthread ../snmplib/.libs/libnetsnmp.so -lcrypto  -Wl,-rpath
-Wl,/tmp/net-snmp/lib
./.libs/libnetsnmpmibs.so: undefined reference to `shutdown_ipIfStatsTable'
./.libs/libnetsnmpmibs.so: undefined reference to `init_ipIfStatsTable'
./.libs/libnetsnmpmibs.so: undefined reference to `init_ipAddressTable'
./.libs/libnetsnmpmibs.so: undefined reference to `init_inetNetToMediaTable'
./.libs/libnetsnmpmibs.so: undefined reference to
`netsnmp_access_interface_container_load'
./.libs/libnetsnmpmibs.so: undefined reference to
`init_mteTriggerThresholdTable'
./.libs/libnetsnmpmibs.so: undefined reference to
`shutdown_tcpConnectionTable'
./.libs/libnetsnmpmibs.so: undefined reference to `init_mteObjects'
./.libs/libnetsnmpmibs.so: undefined reference to
`netsnmp_access_interface_entry_create'
./.libs/libnetsnmpmibs.so: undefined reference to
`netsnmp_arch_ip_scalars_ipv6IpForwarding_set'
./.libs/libnetsnmpmibs.so: undefined reference to `init_mteTrigger'
./.libs/libnetsnmpmibs.so: undefined reference to
`netsnmp_access_interface_container_free'
./.libs/libnetsnmpmibs.so: undefined reference to
`shutdown_tcpListenerTable'
./.libs/libnetsnmpmibs.so: undefined reference to
`shutdown_udpEndpointTable'
./.libs/libnetsnmpmibs.so: undefined reference to
`netsnmp_arch_ip_scalars_ipv6IpForwarding_get'
./.libs/libnetsnmpagent.so: undefined reference to `agentx_register_index'
./.libs/libnetsnmpmibs.so: undefined reference to
`init_mteTriggerExistenceTable'
./.libs/libnetsnmpmibs.so: undefined reference to `init_tcpListenerTable'
./.libs/libnetsnmpmibs.so: undefined reference to
`netsnmp_access_interface_entry_guess_speed'
./.libs/libnetsnmpmibs.so: undefined reference to `netsnmp_memory_get_byIdx'
./.libs/libnetsnmpagent.so: undefined reference to `init_iquery'
./.libs/libnetsnmpmibs.so: undefined reference to
`init_ipv6ScopeZoneIndexTable'
./.libs/libnetsnmpmibs.so: undefined reference to `init_schedTable'
./.libs/libnetsnmpmibs.so: undefined reference to `init_cpu'
...................................

When I add --disable-shared --enable-static to options I get this:

libtool: link: arm_v5t_le-gcc -g -O2 -Ulinux -Dlinux=linux -o snmpd
snmpd.o  -L/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/.libs
-L/home/kirill/MVK-IP/contribs/net-snmp-5.6/snmplib/.libs
-L/home/kirill/MVK-IP/contribs/net-snmp-5.6/snmplib
./.libs/libnetsnmpagent.a ./.libs/libnetsnmpmibs.a
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/.libs/libnetsnmpagent.a
/home/kirill/MVK-IP/contribs/net-snmp-5.6/snmplib/.libs/libnetsnmp.a
-ldl -lpthread ../snmplib/.libs/libnetsnmp.a -lcrypto
./.libs/libnetsnmpmibs.a(at.o): In function `ARP_Scan_Init':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/mibII/at.c:666:
undefined reference to `netsnmp_access_interface_index_find'
./.libs/libnetsnmpmibs.a(hr_network.o): In function `Get_Next_HR_Network':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/host/hr_network.c:227:
undefined reference to `Interface_Scan_Next'
./.libs/libnetsnmpmibs.a(hr_network.o): In function `Init_HR_Network':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/host/hr_network.c:218:
undefined reference to `Interface_Scan_Init'
./.libs/libnetsnmpmibs.a(ipAddr.o): In function `Address_Scan_Next':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/mibII/ipAddr.c:576:
undefined reference to `netsnmp_access_interface_index_find'
./.libs/libnetsnmpmibs.a(var_route.o): In function `Route_Scan_Reload':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/mibII/var_route.c:1356:
undefined reference to `netsnmp_access_interface_index_find'
./.libs/libnetsnmpmibs.a(ifTable.o): In function `ifTable_commit':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/if-mib/ifTable/ifTable.c:2029:
undefined reference to `netsnmp_access_interface_entry_set_admin_status'
./.libs/libnetsnmpmibs.a(ifTable_data_access.o): In function
`ifTable_container_load':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c:541:
undefined reference to `netsnmp_access_interface_container_load'
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c:575:
undefined reference to `netsnmp_access_interface_container_free'
./.libs/libnetsnmpmibs.a(arp_linux.o): In function `_load_v4':
/home/kirill/MVK-IP/contribs/net-snmp-5.6/agent/mibgroup/ip-mib/data_access/arp_linux.c:135:
undefined reference to `netsnmp_access_interface_index_find'
collect2: ld returned 1 exit status

I have tried set --with-linkcc=arm_v5t_le-ld, but -Ulinux is unknow
parameters.

-- 
С уважением,
Бриллиантов Кирилл Владимирович
…………………………………………………………………
программист, технический отдел
ООО «БайтЭрг»
Видеокамеры МВК – Эффективность разумных решений
…………………………………………………………………
+7(495)221-66-22 доб.122
http://www.byterg.ru    http://www.bestdvr.ru

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.