php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22248 Compile failed with php cgi / snmp
Submitted: 2003-02-17 07:06 UTC Modified: 2003-03-09 18:55 UTC
From: simon at dnadogs dot com Assigned:
Status: No Feedback Package: SNMP related
PHP Version: 4CVS-2003-02-17 (stable) OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: simon at dnadogs dot com
New email:
PHP Version: OS:

 

 [2003-02-17 07:06 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-17 10:50 UTC] sniper@php.net
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-18 02:31 UTC] 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-18 03:33 UTC] 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 23:28 UTC] 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-21 04:12 UTC] 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-21 04:40 UTC] 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 07:41 UTC] 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-03-04 20:22 UTC] sniper@php.net
Please check this out:

  http://gcc.gnu.org/ml/gcc-help/2002-01/msg00185.html



 [2003-03-09 18:55 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC