ID: 12835
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Old Bug Type: Unknown/Other Function
Bug Type: SNMP related
Operating System: linux 2.2.14 (rh6)
PHP Version: 4.0.6
New Comment:

What version of ucd-snmp do you have?
How did you install / configure /compile it?
What was the configure line for PHP?

--Jani


Previous Comments:
------------------------------------------------------------------------

[2001-08-19 05:51:00] [EMAIL PROTECTED]


I believe there's a compilation problem with php and snmp.  I've tried many different 
ways to go about trying to get it to work, but no matter, I end up with the snmp 
functions being undefined.

for some reason, no matter what happens, the snmp_add_var, snmp_get_quick_print, and 
snmp_set_quick_print are undefined - this is if I compile it static.  If I compile 
snmp as shared, it's worse.

I have no idea what the problem is to tell you the truth, but I have not only tried 
many different things, but so have others, and I have found no solutions on the net.  
It would be great if someone could get this to work.  If I find the solution I'll 
email it to someone.  But until then, maybe someone else can find it eaiser (and 
quicker) than I.

Below are the symbols lists.  The first is if snmp is compiled with php, and the 
second is if snmp is compiled as a shared module:

[root libs]# nm -D ./libphp4.so|grep snmp
000b1cc8 T php_if_snmp_get_quick_print
000b1cf8 T php_if_snmp_set_quick_print
000b1c38 T php_if_snmpget
000b1c98 T php_if_snmprealwalk
000b1df4 T php_if_snmpset
000b1c68 T php_if_snmpwalk
000b0d30 T php_info_snmp
000b0d10 T php_minit_snmp
000b0d84 T php_snmp
001f3a40 D snmpStats
0016c364 T snmp_add_null_var
         U snmp_add_var
0017415c T snmp_auth_build
001740d0 T snmp_auth_parse
00171b10 T snmp_build
00173d5c T snmp_build_var_op
00171a3c T snmp_close
001f3aa4 D snmp_dump_packet
001f3a28 D snmp_errno
0016c91c T snmp_errstring
0016c5d0 T snmp_fix_pdu
00172924 T snmp_free_pdu
001ee25c D snmp_functions
         U snmp_get_quick_print
001ee2c0 D snmp_module_entry
0016da6c T snmp_new_prefix
0017145c T snmp_open
00173cbc T snmp_parse_var_op
0016c2f0 T snmp_pdu_create
001729a0 T snmp_read
00172c34 T snmp_select_info
001725d0 T snmp_send
         U snmp_set_quick_print
0016c4d0 T snmp_synch_input
0016c774 T snmp_synch_response
0016c8e0 T snmp_synch_setup
00172da4 T snmp_timeout

[root httpd]# nm /home/install/php-4.0.6/modules/snmp.so|grep snmp
00002218 T php_if_snmp_get_quick_print
00002248 T php_if_snmp_set_quick_print
00002188 T php_if_snmpget
000021e8 T php_if_snmprealwalk
00002344 T php_if_snmpset
000021b8 T php_if_snmpwalk
0000128c T php_info_snmp
0000126c T php_minit_snmp
000012e0 T php_snmp
         U snmp_add_null_var
         U snmp_add_var
         U snmp_close
         U snmp_errstring
         U snmp_fix_pdu
         U snmp_free_pdu
0000361c D snmp_functions
         U snmp_get_quick_print
00003680 D snmp_module_entry
         U snmp_open
         U snmp_pdu_create
         U snmp_set_quick_print
         U snmp_synch_response
         U snmp_synch_setup

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12835&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to