[rrd-users] rrdtool failing

kibirango moses kibsmoses at gmail.com
Tue Jan 31 10:36:15 CET 2012


Hullo Users,


I am failing to install  rrdtool and below are the erros i am getting:

The installation guide i used is from
http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html

*Configuring FontConfig*

 #./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
CPPFLAGS="-I/include/cairo"
--with-freetype-config=$INSTALL_DIR/bin/freetype-config

fontconfig seemed  ok
*Configuring Cairo 1.10.2*

 #./configure --prefix= --cache-file=config.cache --disable-static
--enable-test-surfaces --enable-symbol-lookup=yes CFLAGS="-O3 -fPIC"
 # make
*Output Error:*
../libtool: line 1216: libtool: compile: cannot determine name of library
object from `': command not found
make[3]: *** [cairo-analysis-surface.lo] Error 1
make[3]: Leaving directory `/usr/local/src/cairo-1.10.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/cairo-1.10.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/cairo-1.10.2'
make: *** [all] Error 2


*Installing pangocairo 1.28.4*

 #./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
--disable-libtool-lock --with-x
*output at end*
configuration:
        backends: Cairo FreeType X
# make
*output error*:

../pango/.libs/libpangocairo-1.0.so: undefined reference to
`cairo_ft_font_options_substitute'
../pango/.libs/libpangocairo-1.0.so: undefined reference to
`cairo_ft_font_face_create_for_pattern'
collect2: ld returned 1 exit status
make[3]: *** [pango-view] Error 1
make[3]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/pango-1.28.4'
make: *** [all] Error 2

*Installing rrdtool-1.4.7*


* I found a copy of pkgconfig, but there is no pangocairo.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of pangocairo. Check config.log for hints
on why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libpangocairo-1.0 and its header
files. If
  you have not installed pangocairo, you can get it either from its
original home on

     http://ftp.gnome.org/pub/GNOME/sources/pango/1.28

  You can find also find an archive copy on

     http://oss.oetiker.ch/rrdtool/pub/libs

  The last tested version of pangocairo is 1.28.4.

       LIBS=-lcairo -lcairo -lcairo -lm  -lcairo -lpng15
   LDFLAGS=-Wl,--rpath -Wl,/lib -L/lib
  CPPFLAGS= -I/include/cairo -I/include/libpng15 -I/include/glib-2.0
-I/lib/glib-2.0/include -I/include/pixman-1 -I/include/freetype2 -I/include

But  *pangocairo.pc* is found.

root at gateway:/usr/local/src/rrdtool-1.4.7# locate pangocairo.pc
/usr/lib/pkgconfig/pangocairo.pc


On running the rrdtool graph command below

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=1327909638 \
--end=1327996038 \
--title='Localhost - Mail Filtering' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2012/01/30 10\:47\:18 To 2012/01/31 10\:47\:18\c" \
COMMENT:"  \n" \
--vertical-label='msgs / min' \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/localhost_postfix_clean_12.rrd":postfix_clean:AVERAGE
\
DEF:b="/usr/local/share/cacti/rra/localhost_postfix_pspam_13.rrd":postfix_pspam:AVERAGE
\
DEF:c="/usr/local/share/cacti/rra/localhost_postfix_header_10.rrd":postfix_header:AVERAGE
\
DEF:d="/usr/local/share/cacti/rra/localhost_postfix_spam_14.rrd":postfix_spam:AVERAGE
\
DEF:e="/usr/local/share/cacti/rra/localhost_postfix_banned_11.rrd":postfix_banned:AVERAGE
\
DEF:f="/usr/local/share/cacti/rra/localhost_postfix_virus_15.rrd":postfix_virus:AVERAGE
\
LINE2:a#00FF00FF:"Clean"  \
GPRINT:a:LAST:"         Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"  \
LINE2:b#00BBB4FF:"Possibly Spam"  \
GPRINT:b:LAST:" Current\:%8.0lf"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:b:MAX:"Maximum\:%8.0lf\n"  \
LINE2:c#817C4EFF:"Bad Header"  \
GPRINT:c:LAST:"    Current\:%8.0lf"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:c:MAX:"Maximum\:%8.0lf\n"  \
LINE2:d#FFF200FF:"Spam"  \
GPRINT:d:LAST:"          Current\:%8.0lf"  \
GPRINT:d:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:d:MAX:"Maximum\:%8.0lf\n"  \
LINE2:e#FF7D00FF:"Banned Content"  \
GPRINT:e:LAST:"Current\:%8.0lf"  \
GPRINT:e:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:e:MAX:"Maximum\:%8.0lf\n"  \
LINE2:f#FF0000FF:"Virus"  \
GPRINT:f:LAST:"         Current\:%8.0lf"  \
GPRINT:f:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:f:MAX:"Maximum\:%8.0lf\n"

*Output error:*

/usr/local/rrdtool/bin/rrdtool: symbol lookup error:
/usr/local/lib/libpangocairo-1.0.so.0: undefined symbol:
cairo_ft_font_options_substitute

What relation ship does /include/cairo/cairo-ft.h file have with the fonts
and libpangocairo  how can it be tweaked to work

The Graphs are not even shown in cacti interface.

Could someone out there help on fixing these errors thanx in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20120131/67368c24/attachment-0001.htm 


More information about the rrd-users mailing list