Error compiling cactid on SuSE 9.1

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

Moderators: Developers, Moderators

Post Reply
User avatar
deimeke
Posts: 9
Joined: Wed Dec 17, 2003 3:14 am

Error compiling cactid on SuSE 9.1

Post by deimeke »

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
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
User avatar
deimeke
Posts: 9
Joined: Wed Dec 17, 2003 3:14 am

Post by deimeke »

Hi,

thanks for your reply.

As I said. The crypto-libraries are installed.

So I have to tell the config-script where they are.

How can I do this?

Thanks

Dirk
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

look at your configure.ac. You will look for the following lines:

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
Please let me know where your crypto lib's are installed so that I can modify the configure.ac file moving forward.

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?
User avatar
deimeke
Posts: 9
Joined: Wed Dec 17, 2003 3:14 am

Post by deimeke »

Hello,

many thanks for your support.

The code snippet was the final hint.

I installed openssl-devel and ./configure walks through!

GNU make works an "my" cactid seems to gather data.

Thanks for your support.

Dirk
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you have to change anything or just install the libraries?

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?
User avatar
deimeke
Posts: 9
Joined: Wed Dec 17, 2003 3:14 am

Post by deimeke »

Hi,

I only installed the libraries.

poller.php runs two times faster.

Without cactid: 297 seconds in average
With cactid: 151 seconds in average

Which values are recommended for threads and processes?

Trying with 10 threads an 10 processes accelarates to 51 seconds poll time.

Dirk
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
User avatar
deimeke
Posts: 9
Joined: Wed Dec 17, 2003 3:14 am

Post by deimeke »

Hi,

many thanks for your help.

I put it to 2 processes with 15 threads. The execution time is the same as for 10 processes with 10 threads.

I am using 1 processor, 607 rra files.

Thanks again.

Dirk
thebofh
Posts: 19
Joined: Mon Jan 24, 2005 7:16 pm

Post by thebofh »

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)

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!
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).

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
To fix this I just added a test for empty before setting $LDFLAGS with the $SNMP_LIBDIR.

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
Maybe the configure script can be updated to prevent future problems for others?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

E-mail me your updated configure.ac script.

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I believe that I have fixed this in SVN. Can you please test.

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

Who is online

Users browsing this forum: No registered users and 0 guests