« The importance of being earnestly tested | Main | Changing a service check command depending on time of day »

April 2, 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451f81d69e200d83549189369e2

Listed below are links to weblogs that reference Better mysqlclient detection for NDOUtils:

Comments

paul

i had same problems with the undefined reference to ceil. I solved it by adding -lm in the linker definitions in the makefile.

tonvoon

Paul,

Did you still need the -lm with this patch? Does mysql_config show -lm in the --libs flags?

Ton

Jonas

Running FC6 x86_64 I had to use:

./configure --enable-pgsql=no \
--with-mysql-lib=/usr/lib64/mysql \
--with-mysql-inc=/usr/include/mysql/

and I didn't need to add -lm to the compile options.

tonvoon

Jonas,

So the -lm without this patch worked? What was the output of mysql_config? It could be that your version of mysqlclient didn't require the math library.

Ton

fatphaze

Ton,

I have Nagios 2.5 and i have installed the patch for NDOutils 1.4b7 in order to resolve problems of detection Mysql library (mysql.h). But, when I patched Ndoutils, there is still this error even if i have specified the path directory of mysql_config. In addition to that i don't have this output :

"checking for mysql_config... /usr/local/mysql/bin/mysql_config"


The checks stop at :

"checking for linker flags for loadable modules... -shared"


Can you help me please ?

Thanks.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment