configure nagios with mysql

Markus Hackethal mh at serverlabor.net
Sat May 15 19:43:52 CEST 2004


Hi list ,
its me again. 
The configure script of nagios check
for mysqlclient not for lmysqlclient so on 
my Redhat system it wasnt found.
Maybe a redhat only issue.
I changed it only for testing and now it works for me.
Now the script find the lmysqlclient and compiling
was also sucessfull.
Because i am new to the list here i am not sure if
it is allowed to append .diff files to e-mails so i put
it here:

--- nagios-1.2-orig/configure   2004-02-03 05:45:08.000000000 +0100
+++ nagios-1.2/configure        2004-05-15 19:35:12.000000000 +0200
@@ -2452,7 +2452,7 @@

        echo $ac_n "checking for main in -lmysqlclient""... $ac_c" 1>&6
 echo "configure:2455: checking for main in -lmysqlclient" >&5
-ac_lib_var=`echo mysqlclient'_'main | sed 'y%./+-%__p_%'`
+ac_lib_var=`echo lmysqlclient'_'main | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2481,7 +2481,7 @@
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-    ac_tr_lib=HAVE_LIB`echo mysqlclient | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+    ac_tr_lib=HAVE_LIB`echo lmysqlclient | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
   cat >> confdefs.h <<EOF
 #define $ac_tr_lib 1


Friendly regards,

Markus



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list