The following proposed patch for stable 3.1, workaround a bug in the rrdtool
package from OpenBSD that depends in the freetype library that is part of
xbase but doesn't include an RPATH for /usr/X11R6/lib, therefore failing
at configure time with the following error (from OpenBSD 4.3):
/usr/bin/ld: warning: libfreetype.so.16.0, needed by
/usr/local/lib/librrd.so.2
Contains changes from r1313 and r1314
Carlo
---
Index: configure.in
===================================================================
--- configure.in (revision 1495)
+++ configure.in (working copy)
@@ -229,17 +229,23 @@
LDFLAGS="$LDFLAGS -L$librrdpath/lib"
fi
-if test "$gmetad" = yes ; then
- AC_CHECK_LIB(rrd, rrd_create, [echo "The ganglia graphs are created using
RRDTool (http://www.rrdtool.org/)"], [echo "rrd lib not found"], [-lm])
+if test x"$gmetad" = xyes ; then
AC_CHECK_HEADERS(rrd.h)
- if test "$ac_cv_lib_rrd_rrd_create" != yes; then
- echo
- echo "The Ganglia Meta Daemon uses the Round-Robin Database Tool
(rrdtool)"
- echo "for storing historical information. You have chosen to compile
the"
- echo "monitoring core with gmetad but librrd could not be found. Please"
- echo "visit http://www.rrdtool.org/, download rrdtool and then try again"
- echo
- exit;
+ AC_CHECK_LIB(rrd, rrd_create, [echo "The ganglia graphs are created using
RRDTool (http://www.rrdtool.org/)"], [], [-lm])
+ if test x"$ac_cv_lib_rrd_rrd_create" != xyes; then
+ echo "Trying harder by including the X library path"
+ unset ac_cv_lib_rrd_rrd_create
+ LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/X11R6/lib"
+ AC_CHECK_LIB(rrd, rrd_create, [echo "The ganglia graphs are created
using RRDTool (http://www.rrdtool.org/)"], [], [-lm])
+ if test x"$ac_cv_lib_rrd_rrd_create" != xyes; then
+ echo
+ echo "The Ganglia Meta Daemon uses the Round-Robin Database Tool
(rrdtool)"
+ echo "for storing historical information. You have chosen to compile
the"
+ echo "monitoring core with gmetad but librrd could not be found.
Please"
+ echo "visit http://www.rrdtool.org/, download rrdtool and then try
again"
+ echo
+ exit;
+ fi
fi
fi
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers