1) What do you mean by "You can copy the prototypes from the appropriate
headers, if you want to eliminate the warning". What do I copy from where? Do
you mean to simply add the #include files to the subagent.c file?
2) The following library files are located in the
"/export/home/rosent1/snmp/usr/local/lib/" directory:
libnetsnmp.a
libnetsnmp.la
libnetsnmp.so
libnetsnmp.so.15
libnetsnmp.so.15.0.0
libnetsnmpagent.a
libnetsnmpagent.la
libnetsnmpagent.so
libnetsnmpagent.so.15
libnetsnmpagent.so.15.0.0
libnetsnmphelpers.a
libnetsnmphelpers.la
libnetsnmphelpers.so
libnetsnmphelpers.so.15
libnetsnmphelpers.so.15.0.0
libnetsnmpmibs.a
libnetsnmpmibs.la
libnetsnmpmibs.so
libnetsnmpmibs.so.15
libnetsnmpmibs.so.15.0.0
libnetsnmptrapd.a
libnetsnmptrapd.la
libnetsnmptrapd.so
libnetsnmptrapd.so.15
libnetsnmptrapd.so.15.0.0
I set this environment variable but still the libraries are not found when I
try to compile the subagent:
export LD_LIBRARY_PATH=/export/home/rosent1/snmp/usr/local/lib
Any ideas?
Robert Story <[EMAIL PROTECTED]> wrote: On Thu, 12 Jul 2007 08:28:25 -0700
(PDT) Need wrote:
NH> gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
ocStbHostMib_subagent.o ocStbHostMib_subagent.c
NH> ocStbHostMib_subagent.c: In function `main':
NH> ocStbHostMib_subagent.c:76: warning: implicit declaration of function
`init_vacm_vars'
NH> ocStbHostMib_subagent.c:77: warning: implicit declaration of function
`init_usmUser'
These are harmless. You can copy the prototypes from the appropriate headers,
if you want to eliminate the warning.
NH> ocStbHostComponentVideoTable/ocStbHostComponentVideoTable.o
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o
`net-snmp-config --agent-libs`
NH>
NH>
ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.o(.text+0x440):
In function `_mfd_ocStbHostAVInterfaceTable_pre_request':
NH> ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_interface.c:532:
undefined reference to `netsnmp_row_merge_status_first'
row_merge functions should be in libnetsnmphelpers.
NH>
ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.o(.text+0x581):ocStbHostComponentVideoTable/ocStbHostComponentVideoTable_interface.c:566:
undefined reference to `netsnmp_check_all_requests_error'
That should be in libnetsnmpagent.
NH>
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libnetsnmpmibs.a(lmSensors.o)(.text+0x69):
In function `_sensor_load':
NH> : undefined reference to `sensors_get_detected_chips'
And this would be be in the sensors library..
So it seems like your linker isn't finding all the libas it needs..
---------------------------------
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
-------------------------------------------------------------------------
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