Cactid 0.8.6i Beta2 Available for Test

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Re: Build Problem

Post by duckhead »

NetGeek wrote: Yup, Sure Did!!
And this is what I got:

nms-lab3(root)# ./configure -lkstat
configure: error: unrecognized option: -lkstat
Try `./configure --help' for more information.
nms-lab3(root)#

Do you see what I may have missed?
Thanks!
NetGeek
You actually have to hack the configure script. I'm sure that there's a better way, I am not an autoconf wizard though. Here are the changes I made:

$grep -n -- "-lkstat" configure
5681:LIBS="-lnetsnmp -lkstat $LIBS"
5740: LIBS="-lnetsnmp -lkstat $LIBS"

Change those 2 lines, to what I have and it should work.
User avatar
NetGeek
Posts: 15
Joined: Mon Nov 14, 2005 2:00 pm

Re: Build Problem

Post by NetGeek »

duckhead wrote:
NetGeek wrote: Yup, Sure Did!!
And this is what I got:

nms-lab3(root)# ./configure -lkstat
configure: error: unrecognized option: -lkstat
Try `./configure --help' for more information.
nms-lab3(root)#

Do you see what I may have missed?
Thanks!
NetGeek
You actually have to hack the configure script. I'm sure that there's a better way, I am not an autoconf wizard though. Here are the changes I made:

$grep -n -- "-lkstat" configure
5681:LIBS="-lnetsnmp -lkstat $LIBS"
5740: LIBS="-lnetsnmp -lkstat $LIBS"

Change those 2 lines, to what I have and it should work.
OK,
Thanks for getting back to me! I think I have another work-around for that particular issue:
./configure -with-snmp=/usr/local/include/net-snmp/
makes it past that error but now I am getting a error relate to libcrypto. It appears that library is required by my NetSnmp install (SNMP v3). So now the ./configure script goes past the earlier error but now dies here:

----SNIP---
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_realloc in -lcrypto... no
configure: error: libcrypto not found!

I checked where my libcrypto lives an it is here:

nms-lab3(root)# find / -name *crypto* -print
/usr/lib/libcrypto.a
/usr/share/src/freeradius-1.0.0-pre1/src/tests/eapcrypto-01
/usr/share/src/freeradius-1.0.0-pre1/src/tests/eapcrypto-01/eapcrypto-out.txt
/usr/share/src/freeradius-1.0.0-pre1/src/modules/rlm_eap/libeap/eapcrypto.c
/usr/include/openssl/crypto.h
/usr/j2se/docs/api/javax/crypto
/usr/local/splunk/lib/python2.4/site-packages/OpenSSL/crypto.so
/usr/local/splunk/lib/libcrypto.a
/usr/local/splunk/lib/libcrypto.so
/usr/local/splunk/lib/libcrypto.so.0
/usr/local/splunk/lib/libcrypto.so.0.9.7
/etc/man/man3/ERR_load_crypto_strings.3
/etc/man/man3/crypto.3
/include/openssl/crypto.h
nms-lab3(root)#

and in the configure script it has that LDFLAG:

LDFLAGS="-L/usr/local/ssl/lib -L/usr/lib $LDFLAGS

Soooo any thoughts at this point?
Thanks!
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

All,

Final Cactid beta released:

http://forums.cacti.net/viewtopic.php?t=16168

Please test!!!

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?
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Re: Build Problem

Post by duckhead »

NetGeek wrote: Soooo any thoughts at this point?
Thanks!
Don't know if you care anymore, but it's likely the same reason. Anything that tries to link wit the Net-SNMP .so's is going to fail, because you will not find libkstat.so. If you try the fix a recommended, I'll bet it will start working.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The new beta checks for this dependency and then makes accordingly. If kstat does not exist, Cactid just builds away.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest