[cairo] pangocairo make error
kibirango moses
kibsmoses at gmail.com
Tue Jan 31 01:56:24 PST 2012
Hi Suzuki,
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,
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
root at gateway:/usr/local/src/rrdtool-1.4.7# locate pangocairo.pc
/usr/lib/pkgconfig/pangocairo.pc
On running the rrdtool 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.
My graphs neither show in cacti and mailgraph.I am failing to find where i
am getting the whole thing wrong.
2012/1/28 suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp>
> Hi,
>
> The cairo functions cairo_ft_font_face_create_for_pattern() and
> cairo_ft_font_options_substitute() are available when libcairo
> is built with fontconfig (see cairo-ft.h).
>
> Considering that pango's FreeType2 backend is designed to use
> both of FreeType2 and fontconfig (see configure.in of pango),
> thus, what I can recommend is:
> 1) install fontconfig
> 2) rebuild cairo to use fontconfig
> 3) rebuild pango to use fontconfig-enabled cairo
>
> Regards,
> mpsuzuki
>
>
> kibirango moses wrote:
> > Hullo users,
> > I am having a problem with installing pangocairo 1.28.4 for rrdtool
> > 1.4.7 it is giving me the error below
> > ./pango/.libs/libpangocairo-1.0.so: undefined reference to
> > `cairo_ft_font_face_create_for_pattern'
> > ../pango/.libs/libpangocairo-1.0.so: undefined reference to
> > `cairo_ft_font_options_substitute'
> > 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
> >
> > Could anyone out there help on fixing this .
> >
> > Thanx in advance
> > --
> > cairo mailing list
> > cairo at cairographics.org
> > http://lists.cairographics.org/mailman/listinfo/cairo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120131/d1f3be18/attachment.htm>
More information about the cairo
mailing list