php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67221 snmp ext configure error: "SNMP sanity check failed"
Submitted: 2014-05-06 16:18 UTC Modified: 2014-12-30 10:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: darx+phpbugs at sent dot com Assigned: lytboris (profile)
Status: No Feedback Package: SNMP related
PHP Version: master-Git-2014-05-06 (Git) OS: linux/64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-05-06 16:18 UTC] darx+phpbugs at sent dot com
Description:
------------
I've DL'd php 5.6 from src tree

	git log | head
		commit 78cb0c1dbc00e5c10830a622c458958e4559d7d1
		Author: Michael Wallner <mike@php.net>
		Date:   Tue May 6 12:39:23 2014 +0200

		    NEWS

		commit 66c177c77064cd7435f924c7d94d6366296d7963
		Author: Michael Wallner <mike@php.net>
		Date:   Tue May 6 12:19:53 2014 +0200


I've installed prereq net-snmp 5.7.2.1/LTS

	export SNMP_CONFIG="/usr/local/net-snmp/bin/net-snmp-config"
	${SNMP_CONFIG} --version
		5.7.2.1

I'm attempting to build php with the snmp extension,

	./configure \
	...
	--with-snmp=shared,/usr/local/net-snmp

./configure FAILS with

	...
	checking for xml2-config path... (cached) /usr/bin/xml2-config
	checking whether libxml build works... (cached) yes
	checking for SNMP support... yes, shared
	checking OpenSSL dir for SNMP... /usr/local/ssl
	checking for init_snmp in -lnetsnmp... no
	configure: error: SNMP sanity check failed. Please check
	config.log for more information.

and in config.log

	...
	configure:84647: result: no 
	configure:84665: error: SNMP sanity check failed. Please check
	config.log for more information.
	...

which is recursive, and not particularly helpful.

This config for net-snmp USED to work, with the extension building
without error; obviously, something's changed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-04 11:26 UTC] lytboris@php.net
-Assigned To: +Assigned To: lytboris
 [2014-10-04 11:26 UTC] lytboris@php.net
Please check with current master and if the issue stil persists, please attach full config.log. There should be an explanation of the failure there.
 [2014-11-19 13:27 UTC] mike@php.net
-Status: Assigned +Status: Feedback
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot 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 "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 12:01:23 2020 UTC