#22248 [Opn->Fbk]: Compile failed with php cgi / snmp
| From: | sniper@php.net | Date: | Wed, 05 Mar 2003 02:22:29 +0000 |
| Subject: | #22248 [Opn->Fbk]: Compile failed with php cgi / snmp | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-34832@lists.php.net to get a copy of this message | ||
ID: 22248
Updated by: sniper@php.net
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:
Please check this out:
http://gcc.gnu.org/ml/gcc-help/2002-01/msg00185.html
Previous Comments:
------------------------------------------------------------------------
[2003-02-21 07:41:47] simon at dnadogs dot com
I did a make distclean then
configure --with-snmp --with-mysql=/usr/local
and then make
still got
/usr/local/sparc-sun-solaris2.8/bin/ld: bfd assertion fail
elflink.h:3542
this was useing latest snapshot
------------------------------------------------------------------------
[2003-02-21 04:40:45] sniper@php.net
That's pretty impossible as the configure would fail
if the snmp config fails.
Is 'HAVE_SNMP' defined in main/php_config.h ?
Does the sapi/cli/php binary have the functions?
------------------------------------------------------------------------
[2003-02-21 04:12:26] simon at dnadogs dot com
Hi,
tried the latest snapshop and it compiles ok but has no snmp support in
the binary.
errors with snmpget function not available.
------------------------------------------------------------------------
[2003-02-18 23:28:50] sniper@php.net
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.
------------------------------------------------------------------------
[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()
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22248
--
Edit this bug report at http://bugs.php.net/?id=22248&edit=1