This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig99E8556E0E17D517AF7BAA1A
Content-Type: multipart/mixed;
boundary="------------080901090002030502020204"
This is a multi-part message in MIME format.
--------------080901090002030502020204
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hello List!
check_mysql fails to build on 64bit systems because of a static path in
the configure scripts. I don't have fixed the underlaying problem but my
patch will make it build.
--- begin patch ----------
diff -Naur nagios-plugins-1.4.2/configure nagios-plugins-1.4.2.wwk/configure
--- nagios-plugins-1.4.2/configure 2005-09-19 15:58:16.000000000 +0200
+++ nagios-plugins-1.4.2.wwk/configure 2005-12-07 13:54:55.712029170 +0100
@@ -869,7 +869,7 @@
--with-trusted-path=PATH sets trusted path for executables called by
scripts (default=/bin:/sbin:/usr/bin:/usr/sbin)
--with-perl=PATH sets path to perl executable
--with-pgsql=DIR sets path to pgsql installation
- --with-mysql=DIR sets path to mysql installation (assumes
lib/mysql and include subdirs
+ --with-mysql=DIR sets path to mysql installation (assumes
lib64/mysql and include subdirs
--with-lwres=DIR use lwres library for getaddrinfo (default=no)
--with-openssl=DIR sets path to openssl installation
--without-openssl disable openssl
@@ -9363,7 +9363,7 @@
MYSQL=$withval
fi;
if test -n "$MYSQL"; then
- MYSQLLIBDIR=$MYSQL/lib/mysql
+ MYSQLLIBDIR=$MYSQL/lib64/mysql
CPPFLAGS="-I$MYSQL/include"
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
@@ -9775,14 +9775,14 @@
MYSQLLIBS="-lmysqlclient"
fi
-elif test -f /usr/lib/mysql/libmysqlclient.so; then
+elif test -f /usr/lib64/mysql/libmysqlclient.so; then
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmysqlclient -L/usr/lib/mysql -lz $LIBS"
+LIBS="-lmysqlclient -L/usr/lib64/mysql -lz $LIBS"
cat >conftest.$ac_ext &5
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
- MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L/usr/lib/mysql"
+ MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L/usr/lib64/mysql"
fi
echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
@@ -9850,7 +9850,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmysqlclient -L/usr/lib/mysql $LIBS"
+LIBS="-lmysqlclient -L/usr/lib64/mysql $LIBS"
cat >conftest.$ac_ext &5
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
- MYSQLLIBS="-lmysqlclient" check_mysql_LDFLAGS="-L/usr/lib/mysql"
+ MYSQLLIBS="-lmysqlclient" check_mysql_LDFLAGS="-L/usr/lib64/mysql"
fi
-elif test -f /usr/lib/mysql/libmysqlclient.a; then
+elif test -f /usr/lib64/mysql/libmysqlclient.a; then
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmysqlclient -L/usr/lib/mysql -lz $LIBS"
+LIBS="-lmysqlclient -L/usr/lib64/mysql -lz $LIBS"
cat >conftest.$ac_ext &5
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
- MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L/usr/lib/mysql"
+
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]