Error compiling cactid on SuSE 9.1
Moderators: Developers, Moderators
Error compiling cactid on SuSE 9.1
Hi,
I have problems compiling cactid-0.8.6d on SuSE 9.1.
The error mesage I get with ./configure is:
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
But /usr/lib/libcrypto.so.0 and /usr/lib/libcrypto.so.0.9.7 do exist ...
Does anybody have a hint!
Thanks for your support.
Dirk
I have problems compiling cactid-0.8.6d on SuSE 9.1.
The error mesage I get with ./configure is:
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
But /usr/lib/libcrypto.so.0 and /usr/lib/libcrypto.so.0.9.7 do exist ...
Does anybody have a hint!
Thanks for your support.
Dirk
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You either don't have the crypto libraries installed or they are installed in a directory that is not known to cactid's config script.
TheWitness
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
look at your configure.ac. You will look for the following lines:
Please let me know where your crypto lib's are installed so that I can modify the configure.ac file moving forward.
Thanks,
TheWitness
Code: Select all
if test "$SNMP_SSL" = "yes"; then
LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
AC_CHECK_LIB(crypto, CRYPTO_free,[],[AC_MSG_ERROR(libcrypto not found!)])
fi
Thanks,
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Did you have to change anything or just install the libraries?
TheWitness
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Dirk,
How many processors? How many rra files? How many hosts? I typically run twice the number of processes as I have processors, with 15 threads each. It works pretty good for me. If you are very heavy in scripting, you might want to play with the concurrent processes a little.
Please keep in mind though that MySQL, by default, only supplies 100 concurrent connections. Therefore, if you have 5 processes at 15 threads each, you will consume up to 75 mysql connections.
TheWitness
How many processors? How many rra files? How many hosts? I typically run twice the number of processes as I have processors, with 15 threads each. It works pretty good for me. If you are very heavy in scripting, you might want to play with the concurrent processes a little.
Please keep in mind though that MySQL, by default, only supplies 100 concurrent connections. Therefore, if you have 5 processes at 15 threads each, you will consume up to 75 mysql connections.
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?
I've also run into this problem on suse pro 9.2. It seems that since the $SNMP_LIBDIR is empty (because suse comes bundled w/ net-snmp) it is causing the crypto test to fail (because it's the first test after adding $SNMP_LIBDIR to $LDFLAGS). As a result the compilation test ends up having an extra '-L' option.
Here's the error from the configure command (./configure --prefix=/path/cacti --with-mysql=/path/mysql)
If you look at the config.log you see it's actaully -lmysqlclient that is failing (notice there is an empty -L option right before -L/path/mysql/lib).
To fix this I just added a test for empty before setting $LDFLAGS with the $SNMP_LIBDIR.
Maybe the configure script can be updated to prevent future problems for others?
Here's the error from the configure command (./configure --prefix=/path/cacti --with-mysql=/path/mysql)
Code: Select all
... snip ...
checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... yes
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
Code: Select all
configure:5170: checking for CRYPTO_free in -lcrypto
configure:5200: gcc -o conftest -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/path/mysql/include/mysql -g -O2 -L/usr/local/ssl/lib -L -L/path/mysql/lib conftest.c -lcrypto -lmysqlclient -lmysqlclient -lz -lpthread -lm -lnsl >&5
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure:5206: $? = 1
Code: Select all
# diff cacti-cactid-0.8.6e/configure cactid-working/configure
5061c5061,5063
< LDFLAGS="-L$SNMP_LIBDIR $LDFLAGS"
---
> if test "$SNMP_LIBDIR" != ""; then
> LDFLAGS="-L$SNMP_LIBDIR $LDFLAGS"
> fi
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
E-mail me your updated configure.ac script.
Thanks,
TheWitness
Thanks,
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I believe that I have fixed this in SVN. Can you please test.
Thanks,
TheWitness
Thanks,
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?
Who is online
Users browsing this forum: No registered users and 1 guest