Hi Suzuki,<br>I reinstalled as you advised but it is still a stalemate for me as my graphs are not shown in mailgraph and cacti.Below are my configurations:Hullo Users,<br>
<br>
<br>
I am failing to install rrdtool and below are the erros i am getting:<br>
<br>
The installation guide i used is from <a href="http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html">http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html</a><br>
<br>
<b><u>Configuring FontConfig</u></b><br>
<br>
#./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
CPPFLAGS="-I/include/cairo"
--with-freetype-config=$INSTALL_DIR/bin/freetype-config<br>
<br>
fontconfig seemed ok<br><br>
<b><u>Configuring Cairo 1.10.2</u></b><br>
<br>
#./configure --prefix= --cache-file=config.cache --disable-static
--enable-test-surfaces --enable-symbol-lookup=yes CFLAGS="-O3 -fPIC"<br><br>
# make<br><br>
<b><u>Output Error:</u></b><br>
../libtool: line 1216: libtool: compile: cannot determine name of library object from `': command not found<br>
make[3]: *** [cairo-analysis-surface.lo] Error 1<br>
make[3]: Leaving directory `/usr/local/src/cairo-1.10.2/src'<br>
make[2]: *** [all] Error 2<br>
make[2]: Leaving directory `/usr/local/src/cairo-1.10.2/src'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/usr/local/src/cairo-1.10.2'<br>
make: *** [all] Error 2<br>
<br>
<br>
<b><u>Installing pangocairo 1.28.4</u></b><br>
<br>
#./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" --disable-libtool-lock --with-x <br>
<u><b>output at end</b></u><br>
configuration:<br>
backends: Cairo FreeType X<br>
# make<br>
<b><u>output error</u></b>:<br>
<br>
../pango/.libs/<a href="http://libpangocairo-1.0.so">libpangocairo-1.0.so</a>: undefined reference to `cairo_ft_font_options_substitute'<br>
../pango/.libs/<a href="http://libpangocairo-1.0.so">libpangocairo-1.0.so</a>: undefined reference to `cairo_ft_font_face_create_for_pattern'<br>
collect2: ld returned 1 exit status<br>
make[3]: *** [pango-view] Error 1<br>
make[3]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view'<br>
make[2]: *** [all] Error 2<br>
make[2]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/usr/local/src/pango-1.28.4'<br>
make: *** [all] Error 2<br><br>Installing rrdtool-1.4.7<br><br><br><br>* I found a copy of pkgconfig, but there is no pangocairo.pc file around.<br> You may want to set the PKG_CONFIG_PATH variable to point to its<br> location.<br>
----------------------------------------------------------------------------<br><br>configure: WARNING:<br>----------------------------------------------------------------------------<br>* I could not find a working copy of pangocairo. Check config.log for hints on why<br>
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately<br> so that compiler and the linker can find libpangocairo-1.0 and its header files. If<br> you have not installed pangocairo, you can get it either from its original home on<br>
<br> <a href="http://ftp.gnome.org/pub/GNOME/sources/pango/1.28">http://ftp.gnome.org/pub/GNOME/sources/pango/1.28</a><br><br> You can find also find an archive copy on<br><br> <a href="http://oss.oetiker.ch/rrdtool/pub/libs">http://oss.oetiker.ch/rrdtool/pub/libs</a><br>
<br> The last tested version of pangocairo is 1.28.4.<br><br> LIBS=-lcairo -lcairo -lcairo -lm -lcairo -lpng15<br> LDFLAGS=-Wl,--rpath -Wl,/lib -L/lib<br> 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<br>
<br>But <br><br>root@gateway:/usr/local/src/rrdtool-1.4.7# locate pangocairo.pc<br>/usr/lib/pkgconfig/pangocairo.pc<br><br><br>On running the rrdtool command below:<br><br>/usr/local/rrdtool/bin/rrdtool graph - \<br>--imgformat=PNG \<br>
--start=1327909638 \<br>--end=1327996038 \<br>--title='Localhost - Mail Filtering' \<br>--base=1000 \<br>--height=120 \<br>--width=500 \<br>--alt-autoscale-max \<br>--lower-limit=0 \<br>COMMENT:"From 2012/01/30 10\:47\:18 To 2012/01/31 10\:47\:18\c" \<br>
COMMENT:" \n" \<br>--vertical-label='msgs / min' \<br>--slope-mode \<br>DEF:a="/usr/local/share/cacti/rra/localhost_postfix_clean_12.rrd":postfix_clean:AVERAGE \<br>DEF:b="/usr/local/share/cacti/rra/localhost_postfix_pspam_13.rrd":postfix_pspam:AVERAGE \<br>
DEF:c="/usr/local/share/cacti/rra/localhost_postfix_header_10.rrd":postfix_header:AVERAGE \<br>DEF:d="/usr/local/share/cacti/rra/localhost_postfix_spam_14.rrd":postfix_spam:AVERAGE \<br>DEF:e="/usr/local/share/cacti/rra/localhost_postfix_banned_11.rrd":postfix_banned:AVERAGE \<br>
DEF:f="/usr/local/share/cacti/rra/localhost_postfix_virus_15.rrd":postfix_virus:AVERAGE \<br>LINE2:a#00FF00FF:"Clean" \<br>GPRINT:a:LAST:" Current\:%8.0lf" \<br>GPRINT:a:AVERAGE:"Average\:%8.2lf%s" \<br>
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \<br>LINE2:b#00BBB4FF:"Possibly Spam" \<br>GPRINT:b:LAST:" Current\:%8.0lf" \<br>GPRINT:b:AVERAGE:"Average\:%8.2lf%s" \<br>GPRINT:b:MAX:"Maximum\:%8.0lf\n" \<br>
LINE2:c#817C4EFF:"Bad Header" \<br>GPRINT:c:LAST:" Current\:%8.0lf" \<br>GPRINT:c:AVERAGE:"Average\:%8.2lf%s" \<br>GPRINT:c:MAX:"Maximum\:%8.0lf\n" \<br>LINE2:d#FFF200FF:"Spam" \<br>
GPRINT:d:LAST:" Current\:%8.0lf" \<br>GPRINT:d:AVERAGE:"Average\:%8.2lf%s" \<br>GPRINT:d:MAX:"Maximum\:%8.0lf\n" \<br>LINE2:e#FF7D00FF:"Banned Content" \<br>GPRINT:e:LAST:"Current\:%8.0lf" \<br>
GPRINT:e:AVERAGE:"Average\:%8.2lf%s" \<br>GPRINT:e:MAX:"Maximum\:%8.0lf\n" \<br>LINE2:f#FF0000FF:"Virus" \<br>GPRINT:f:LAST:" Current\:%8.0lf" \<br>GPRINT:f:AVERAGE:"Average\:%8.2lf%s" \<br>
GPRINT:f:MAX:"Maximum\:%8.0lf\n" <br><br><u><b>Output error:</b></u><br><br>/usr/local/rrdtool/bin/rrdtool: symbol lookup error: /usr/local/lib/libpangocairo-1.0.so.0: undefined symbol: cairo_ft_font_options_substitute.<br>
<br>My graphs neither show in cacti and mailgraph.I am failing to find where i am getting the whole thing wrong.<br><br><br><br><br><br><br><br><div class="gmail_quote">2012/1/28 suzuki toshiya <span dir="ltr"><<a href="mailto:mpsuzuki@hiroshima-u.ac.jp">mpsuzuki@hiroshima-u.ac.jp</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
The cairo functions cairo_ft_font_face_create_for_pattern() and<br>
cairo_ft_font_options_substitute() are available when libcairo<br>
is built with fontconfig (see cairo-ft.h).<br>
<br>
Considering that pango's FreeType2 backend is designed to use<br>
both of FreeType2 and fontconfig (see <a href="http://configure.in" target="_blank">configure.in</a> of pango),<br>
thus, what I can recommend is:<br>
1) install fontconfig<br>
2) rebuild cairo to use fontconfig<br>
3) rebuild pango to use fontconfig-enabled cairo<br>
<br>
Regards,<br>
mpsuzuki<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
kibirango moses wrote:<br>
> Hullo users,<br>
> I am having a problem with installing pangocairo 1.28.4 for rrdtool<br>
> 1.4.7 it is giving me the error below<br>
> ./pango/.libs/<a href="http://libpangocairo-1.0.so" target="_blank">libpangocairo-1.0.so</a>: undefined reference to<br>
> `cairo_ft_font_face_create_for_pattern'<br>
> ../pango/.libs/<a href="http://libpangocairo-1.0.so" target="_blank">libpangocairo-1.0.so</a>: undefined reference to<br>
> `cairo_ft_font_options_substitute'<br>
> collect2: ld returned 1 exit status<br>
> make[3]: *** [pango-view] Error 1<br>
> make[3]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view'<br>
> make[2]: *** [all] Error 2<br>
> make[2]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view'<br>
> make[1]: *** [all-recursive] Error 1<br>
> make[1]: Leaving directory `/usr/local/src/pango-1.28.4'<br>
> make: *** [all] Error 2<br>
><br>
> Could anyone out there help on fixing this .<br>
><br>
> Thanx in advance<br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> cairo mailing list<br>
> <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
> <a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
<br>
</font></span></blockquote></div><br>