ID:               22248
 Updated by:       [EMAIL PROTECTED]
 Reported By:      simon at dnadogs dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         SNMP related
 Operating System: Solaris 8
 PHP Version:      4CVS-2003-02-17 (stable)
 New Comment:

Can you please try the latest STABLE snapshot?
It has a sanity test for ext/snmp compile in configure
and it would be nice to know if it fails for you
when you configure/compile PHP as CGI.

Also, add the configure lines you have used for
configuring net-snmp and php.



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

[2003-02-18 03:33:29] simon at dnadogs dot com

Further info.

A php binary is created in sapi/cgi/ and when i use it with a phpinfo()
it says that snmp is enabled but if I try to use snmp functions i get
they dont exist as follows -

php snmp.php 

Fatal error: Call to undefined function:  snmpget() in
/users/downloads/Apache/php4-STABLE-200302171030/sapi/cgi/snmp.php on
line 2
/users/downloads/Apache/php4-STABLE-200302171030/sapi/cgi/snmp.php(2) :
Fatal error - Call to undefined function:  snmpget()

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

[2003-02-18 02:31:10] simon at dnadogs dot com

Hi,
I am running UCD-SNMP 5.07,  I have now compiled and installed snmp
from source and I still have the same problem.

The  apache php module will compile and work,  the cgi wont.
It looks like its compile everything ok then the final linking fails

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

[2003-02-17 10:50:01] [EMAIL PROTECTED]

What is the ucd snmp version?
And are you absolutely sure it's not some problem
with that binary? Have you tried compiling it yourself
from sources??


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

[2003-02-17 07:06:03] simon at dnadogs dot com

I have compiled php with snmp support as a apache module with no
problems but when I try to compile as cgi to be able to run scripts at
command line i get the following error.

/usr/local/sparc-sun-solaris2.8/bin/ld: bfd assertion fail
elflink.h:3542
I have cut down the configure command to just include snmp and mysql, 
if i remove snmp it works.

I have installed the binary UCD SNMP for solaris from the official
site.

All snmp functions work within the php / apache module.

Any help would be appreciated.

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


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

Reply via email to