Solaris: ERROR: SNMP Library Version Mismatch

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
clockwork
Posts: 22
Joined: Fri Feb 23, 2007 1:04 am

Solaris: ERROR: SNMP Library Version Mismatch

Post by clockwork »

I compiled cactid on the same system its running on. ldd shows everything ok, pkginfo is showing 5.1.1 as the net-snmp version. The whole error is as follows:

Code: Select all

04/23/2007 05:45:01 PM - CACTID: Poller[0] ERROR: SNMP Library Version Mismatch (5.1-pre1a vs 5.1.1)
Where the heck is it getting that 5.1-pre1a from ? Is that a requirement, cause thats just plain silly.

Cactid 0.8.6i
Solaris 10
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you use the BRANCH_0_8_6 within the SVN repository, I have made this message a warning, although please keep in mind that it "MAY" affect stability.

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?
clockwork
Posts: 22
Joined: Fri Feb 23, 2007 1:04 am

Post by clockwork »

Do we actually know the source of the problem ? How stable (objectively, it is open source after all) is the 86 branch ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The BRANCH_0_8_6 is very stable. The issue is with your net-snmp install. The library and header versions do not match.

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?
clockwork
Posts: 22
Joined: Fri Feb 23, 2007 1:04 am

Post by clockwork »

Bootstrap runs okay, so does configure, then the compile dies as follows:

Code: Select all

gcc -DHAVE_CONFIG_H -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/include/mysql -g -O2 -MT php.o -MD -MP -MF .deps/php.Tpo -c -o php.o php.c
mv -f .deps/php.Tpo .deps/php.Po
gcc -DHAVE_CONFIG_H -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/include/mysql -g -O2 -MT ping.o -MD -MP -MF .deps/ping.Tpo -c -o ping.o ping.c
ping.c: In function `ping_host':
ping.c:70: error: too few arguments to function `cacti_log'
*** Error code 1
make: Fatal error: Command failed for target `ping.o'
There is nothing particularly interesting on line 70 of ping.c.

Any help ?
clockwork
Posts: 22
Joined: Fri Feb 23, 2007 1:04 am

Post by clockwork »

So has anyone successfully compiled the svn source on solaris ?
clockwork
Posts: 22
Joined: Fri Feb 23, 2007 1:04 am

Post by clockwork »

I got it to compile. Its still giving the error:

Code: Select all

04/26/2007 04:55:00 PM - CACTID: Poller[0] ERROR: SNMP Library Version Mismatch (5.1-pre1a vs 5.1.1) (Cactid parent)
I used the code from

Code: Select all

svn checkout svn://svn.cacti.net/var/svnroot/cacti/branches/BRANCH_0_8_6/cactid
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Darn, maybe I did not check it in. I'll check this weekend.

Larry
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?
danang.wijanarko
Posts: 1
Joined: Wed May 09, 2007 4:27 am
Location: indonesia
Contact:

Solaris: ERROR: SNMP Library Version Mismatch

Post by danang.wijanarko »

this one is caused by your version of net-snmp-config.h providing macro PACKAGE_VERSION 5.1-pre1a, if you want to overide this,

simply put version 5.1.1 on that, and recompile again

all will be fine, :wink:
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests