I have progressed but have another problem.
I used mib2c with the MFD configuration file to generate code for three tables
(ocStbHostAVInterfaceTable, ocStbHostAnalogVideoTable and
ocStbHostComponentTable) and one scalar (ocStbHostHWIdentifiers). I am
compiling on my PC (ie: not cross-compiling yet). I am able to compile the
snmpd master agent with no errors and perform a "make install" with no
problems.
I perform a successful "make clean" of the subagent modules and am now trying
to compile my subagent code and get the errors shown below.
Will someone please explain what is going on here and why these errors are
produced?
Here is subagent compile outout showing the errors:
[EMAIL PROTECTED] OC-STB-HOST-MIB]# make -f ocStbHostMib_subagent_Makefile
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostMib_subagent.o ocStbHostMib_subagent.c
ocStbHostMib_subagent.c: In function `main':
ocStbHostMib_subagent.c:76: warning: implicit declaration of function
`init_vacm_vars'
ocStbHostMib_subagent.c:77: warning: implicit declaration of function
`init_usmUser'
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostHWIdentifiers/ocStbHostHWIdentifiers.o
ocStbHostHWIdentifiers/ocStbHostHWIdentifiers.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_get.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_get.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_set.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_set.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_access.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_access.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_get.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_get.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_set.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_set.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_access.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_access.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_get.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_get.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_set.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_set.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_access.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_access.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable.c
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.c
gcc -o ocStbHostMib_subagent ocStbHostMib_subagent.o
ocStbHostHWIdentifiers/ocStbHostHWIdentifiers.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_get.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_set.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_access.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable.o
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_get.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_set.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_access.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable.o
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_get.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_set.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_data_access.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o
`net-snmp-config --agent-libs`
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.o(.text+0x440):
In function `_mfd_ocStbHostAVInterfaceTable_pre_request':
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.c:532: undefined
reference to `netsnmp_row_merge_status_first'
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.o(.text+0x542):ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.c:532:
undefined reference to `netsnmp_row_merge_status_first'
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.o(.text+0x653):
In function `_mfd_ocStbHostAVInterfaceTable_post_request':
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.c:579: undefined
reference to `netsnmp_row_merge_status_last'
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.o(.text+0x761):ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.c:585:
undefined reference to `netsnmp_check_all_requests_error'
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.o(.text+0x260):
In function `_mfd_ocStbHostAnalogVideoTable_pre_request':
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.c:508: undefined
reference to `netsnmp_row_merge_status_first'
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.o(.text+0x362):ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.c:508:
undefined reference to `netsnmp_row_merge_status_first'
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.o(.text+0x473):
In function `_mfd_ocStbHostAnalogVideoTable_post_request':
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.c:556: undefined
reference to `netsnmp_row_merge_status_last'
ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.o(.text+0x581):ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_interface.c:562:
undefined reference to `netsnmp_check_all_requests_error'
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o(.text+0x260):
In function `_mfd_ocStbHostComponentVideoTable_pre_request':
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.c:510:
undefined reference to `netsnmp_row_merge_status_first'
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o(.text+0x362):ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.c:510:
undefined reference to `netsnmp_row_merge_status_first'
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o(.text+0x473):
In function `_mfd_ocStbHostComponentVideoTable_post_request':
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.c:560:
undefined reference to `netsnmp_row_merge_status_last'
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o(.text+0x581):ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.c:566:
undefined reference to `netsnmp_check_all_requests_error'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpmibs.a(lmSensors.o)(.text+0x69):
In function `_sensor_load':
: undefined reference to `sensors_get_detected_chips'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpmibs.a(lmSensors.o)(.text+0xba):
In function `_sensor_load':
: undefined reference to `sensors_get_all_features'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpmibs.a(lmSensors.o)(.text+0x118):
In function `_sensor_load':
: undefined reference to `sensors_get_label'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpmibs.a(lmSensors.o)(.text+0x148):
In function `_sensor_load':
: undefined reference to `sensors_get_feature'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpmibs.a(lmSensors.o)(.text+0x5c1):
In function `init_lmSensors':
: undefined reference to `sensors_init'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpagent.a(snmp_agent.o)(.text+0x9f7):
In function `netsnmp_agent_check_packet':
: undefined reference to `hosts_ctl'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpagent.a(snmp_agent.o)(.text+0xac7):
In function `netsnmp_agent_check_packet':
: undefined reference to `hosts_ctl'
collect2: ld returned 1 exit status
make: *** [ocStbHostMib_subagent] Error 1
---------------------------------
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders