Im using lenny repository version
NET-SNMP version: 5.2.3
Steps for reprocing the error:
mib2c -c mib2c.mfd.conf ifTable
mib2c -c mfd-makefile.m2m ifTable
mib2c -c subagent.m2c ifTable
Do the tutorial changes in the code.
make -f ifTable_Makefle
The compiler sais that "scan_line_to_use, scan_line_2_2 ,scan_spected and
scan_count" doens exists.
If you create the needed variables then sais this another error:
gcc -o ifTable ifTable_data_access.o ifTable.o ifTable_subagent.o
ifTable_interface.o `net-snmp-config --agent-libs`
ifTable_data_access.o: In function `ifTable_cache_load':
ifTable_data_access.c:(.text+0x5a7): referencia a `ifType_map' sin definir
ifTable_data_access.o: In function `ifTable_init_data':
ifTable_data_access.c:(.text+0x972): referencia a `_choose_proc_format' sin
definir
collect2: ld returned 1 exit status
make: *** [ifTable] Error 1
Nobody/Anonymous
None
None
Public
|
Date: 2009-02-12 15:27 With the compiled net-snmp-5.4.2.1 in debian-testing distribution (lenny) |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use