Page 1 of 1

[Nagios-devel] NDOUtils configure error on CentOS x86_64

Posted: Tue Jan 08, 2008 6:42 am
by Guest
The specification of the configure options --with-mysql-lib and
--with-pgsql-lib does not work. The mysql library path cannot found. I
think, my patch fix this problem. Second, the default specification of
/usr/lib/mysql does not work on x86_64. I think, my patch fix this also.

--- configure.in.orig 2008-01-08 15:14:33.000000000 +0100
+++ configure.in 2008-01-08 15:15:01.000000000 +0100
@@ -177,7 +177,7 @@
])
if test "$withval" = "" ; then
dnl If no library path specified, add default (RedHat) path for
good measure
- DBLDFLAGS="$LDFLAGS -L/usr/lib/mysql"
+ DBLDFLAGS="$LDFLAGS -L/usr/lib/mysql -L/usr/lib64/mysql"
fi
AC_ARG_WITH(mysql-inc,--with-mysql-inc=DIR sets location of the MySQL
client include files,[
DBCFLAGS="${DBCFLAGS} -I${withval}"
@@ -185,7 +185,7 @@

dnl Optional PostgreSQL library and include paths
AC_ARG_WITH(pgsql-lib,--with-pgsql-lib=DIR sets location of the
PostgreSQL client library,[
- DBLDFLAGS="-L${withval}"
+ DBLDFLAGS=" ${DBLDFLAGS} -L${withval}"
LD_RUN_PATH="${withval}${LD_RUN_PATH:+:}${LD_RUN_PATH}"
])
AC_ARG_WITH(pgsql-inc,--with-pgsql-inc=DIR sets location of the
PostgreSQL client include files,[

Download the patch from:
http://src.linuxhacker.at/patches/ndout ... ysql.patch

Regards
Herbert Straub






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]