As for (2) below, I realized I recently deleted all the library files from the 
"/usr/local/lib/" directory from existing since I thought they were not being 
used since the library files which should be used by the subagent were the 
files located in the "/export/home/rosent1/snmp/usr/local/lib/" directory. 

Anyway, I copied the library files from the 
"/export/home/rosent1/snmp/usr/local/lib/" directory into the "/usr/local/lib" 
directory and recompiled and all subagent errors have gone away now.  

Does this mean that the subagent only looks for library files in the 
"/usr/local/lib" directory or is there a way to inform the subagent code to 
compile using the library files located in the  
"/export/home/rosent1/snmp/usr/local/lib/" directory instead?

At least I figured out why the compile errors were being produced, but I still 
need help in finding a way to inform the subagent to use the correct library 
file location.

Perhaps I need to update the "/etc/ld.so.conf" file and type "ldconfig" to do 
this?   Not sure why the environment variable setting did not work .... 



Need Help <[EMAIL PROTECTED]> wrote: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


 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
-------------------------------------------------------------------------
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

Reply via email to