|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: darx+phpbugs at sent dot com
New email:
PHP Version: OS:


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

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


		commit 66c177c77064cd7435f924c7d94d6366296d7963
		Author: Michael Wallner <>
		Date:   Tue May 6 12:19:53 2014 +0200

I've installed prereq net-snmp

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

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

	./configure \

./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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-04 11:26 UTC]
-Assigned To: +Assigned To: lytboris
 [2014-10-04 11:26 UTC]
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]
-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-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 04:01:30 2024 UTC