SNMP sanity check failed error Please help me
Moderators: Developers, Moderators
-
- Posts: 3
- Joined: Sat Mar 20, 2010 4:35 am
SNMP sanity check failed error Please help me
i am new cacti. my os freebsd 8.0
i use cacti with freebsd 8.0 ports. when i set up cacti
SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.
snmp sanity check failed configure: failed program was: | /* confdefs.h. */
please help me.
i use cacti with freebsd 8.0 ports. when i set up cacti
SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.
snmp sanity check failed configure: failed program was: | /* confdefs.h. */
please help me.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP sanity check failed error Please help me
SNMP sanity check failed??? What is that? On a device screen? Please post a screenshotmaynatay67 wrote:i am new cacti. my os freebsd 8.0
i use cacti with freebsd 8.0 ports. when i set up cacti
SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.
snmp sanity check failed configure: failed program was: | /* confdefs.h. */
please help me.
R.
-
- Posts: 3
- Joined: Sat Mar 20, 2010 4:35 am
checking for snmp_parse_oid in -lnetsnmp... no
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more information.
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/net-mgmt/php5-snmp/work/php-5.2.12/ext/snmp/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/net-mgmt/php5-snmp.
*** Error code 1
Stop in /usr/ports/lang/php5-extensions.
*** Error code 1
Stop in /usr/ports/lang/php5-extensions.
%
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more information.
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/net-mgmt/php5-snmp/work/php-5.2.12/ext/snmp/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/net-mgmt/php5-snmp.
*** Error code 1
Stop in /usr/ports/lang/php5-extensions.
*** Error code 1
Stop in /usr/ports/lang/php5-extensions.
%
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You'd best provide all of:
usr/ports/net-mgmt/php5-snmp/work/php-5.2.12/ext/snmp/config.log
For an untrained eye, they are actually quite difficult to read.
TheWitness
usr/ports/net-mgmt/php5-snmp/work/php-5.2.12/ext/snmp/config.log
For an untrained eye, they are actually quite difficult to read.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 3
- Joined: Sat Mar 20, 2010 4:35 am
i sent my config log.
Please help me.
Please help me.
- Attachments
-
- snmp.txt
- My Config Log
- (12.17 KiB) Downloaded 359 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Agreed. From my read of the log, you have a dependent library that is already compiled in one of the dependent libraries that expects the net-snmp library to contain a function that is not defined for the version of net-snmp that you have installed.
My suggestion is that the net-snmp package is at the wrong version for the entire build to work.
Here is the message of interest.
TheWitness
My suggestion is that the net-snmp package is at the wrong version for the entire build to work.
Here is the message of interest.
Code: Select all
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 2
- Joined: Thu Apr 15, 2010 3:56 am
Re: SNMP sanity check failed error Please help me
maynatay67 wrote:i am new cacti. my os freebsd 8.0
i use cacti with freebsd 8.0 ports. when i set up cacti
SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.
snmp sanity check failed configure: failed program was: | /* confdefs.h. */
please help me.
i had the same problem with installed php5-snmp on freebsd 8.0
pkg_info
apache-2.2.14
php5-5.3.2
php5-extensions-1.3
net-snmp-5.4.2.1
perl-threaded-5.10.1
attachment is the error clip
- Attachments
-
- snmp .rar
- php5-snmp install fail
- (31.06 KiB) Downloaded 117 times
-
- Posts: 2
- Joined: Thu Apr 15, 2010 3:56 am
Re: SNMP sanity check failed error Please help me
bart.taichung wrote:maynatay67 wrote:i am new cacti. my os freebsd 8.0
i use cacti with freebsd 8.0 ports. when i set up cacti
SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.
snmp sanity check failed configure: failed program was: | /* confdefs.h. */
please help me.
i had the same problem with installed php5-snmp on freebsd 8.0
pkg_info
apache-2.2.14
php5-5.3.2
php5-extensions-1.3
net-snmp-5.4.2.1
perl-threaded-5.10.1
attachment is the error clip
Its working. Finally
try this way .
perl-5.8.9_3 make config without threaded ,
then make install php5-snmp will be success
because php5-snmp conflicts with perl-threaded .
[/img]
- Attachments
-
- FreeBSD8_apache22_php532_snmp.rar
- (37.24 KiB) Downloaded 113 times
Re: SNMP sanity check failed error Please help me
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'
error code ....
check net-snmp-----------
Bug fix: freebsd 8.1 cacti-spine
uname -a
FreeBSD cacti#........... 8.1-RELEASE
cacti# cd /usr/ports/net-mgmt/net-snmp
cacti# more Makefile
----------- - - - - - check
.if ${OSVERSION} >= 800000
CONFIGURE_ARGS+= --wuth-libs="-lssp_nonshared"
---------------------------
cacti# cd /usr/ports/net-mgmt/cacti-spine/work/cacti-spine-0.8.7g/
cacti# vi Makefile
------add line--------LIBS-----lssp_nonshared-------------------------------------
LIBS = -lnetsnmp -lmysqlclient_r -lcrypto -lz -lpthread -lm -lssp_nonshared
-----------------------------end----------------------------------------------------------
cacti# make clean
cacti# make install
ok
error code ....
check net-snmp-----------
Bug fix: freebsd 8.1 cacti-spine
uname -a
FreeBSD cacti#........... 8.1-RELEASE
cacti# cd /usr/ports/net-mgmt/net-snmp
cacti# more Makefile
----------- - - - - - check
.if ${OSVERSION} >= 800000
CONFIGURE_ARGS+= --wuth-libs="-lssp_nonshared"
---------------------------
cacti# cd /usr/ports/net-mgmt/cacti-spine/work/cacti-spine-0.8.7g/
cacti# vi Makefile
------add line--------LIBS-----lssp_nonshared-------------------------------------
LIBS = -lnetsnmp -lmysqlclient_r -lcrypto -lz -lpthread -lm -lssp_nonshared
-----------------------------end----------------------------------------------------------
cacti# make clean
cacti# make install
ok
Re: SNMP sanity check failed error Please help me
cd /usr/ports/net-mgmt/net-snmp/
make install
cd work/net-snmp-XXX/
more INSTALL
cd perl
perl Makefile.PL
make
make test
make install
make install
cd work/net-snmp-XXX/
more INSTALL
cd perl
perl Makefile.PL
make
make test
make install
Who is online
Users browsing this forum: No registered users and 6 guests