tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rrdtool on Linux - missing(?) -lpangoft2-1.0 on pango link



I'm trying to build rrdtool on a 64bit Redhat ES 5 box, using the very
latest pkgsrc and the configure fails on


checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... no
checking for pkg-config... (cached) pkg-config
checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... no
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.17

 You can find also find an archive copy on

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

 The last tested version of pangocairo is 1.17.

 LIBS=-lcairo -lcairo -lcairo -lm -lcairo -lpng14 -lglib-2.0
 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0
-lgthread-2.0 -lpthread -lrt -lglib-2.0
ÂÂ LDFLAGS=-L/usr/lib64 -Wl,-R/usr/lib64 -Wl,-R/usr/pkg/lib
-L/usr/pkg/libÂÂ -Wl,-R/usr/pkg/libÂÂ -L/usr/pkg/lib
-Wl,-R/usr/pkg/libÂÂ -L/usr/pkg/libÂÂ -Wl,-R/usr/pkg/lib -pthread
 CPPFLAGS=-I/usr/include -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -I/usr/pkg/include/cairo
-I/usr/pkg/include/libpng14 -I/usr/pkg/include/pixman-1
-I/usr/pkg/include/freetype2 -I/usr/pkg/include
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include
-pthread -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/cairo
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/pkg/include/pixman-1 -I/usr/pkg/include/freetype2
-I/usr/pkg/include -I/usr/pkg/include/libpng14

----------------------------------------------------------------------------


The actual error was:

/files/netbsd/pkgsrc/databases/rrdtool/work/.buildlink/lib/libpangocairo-1.0.so:
 undefined reference to `pango_fc_font_key_get_context_key'
/files/netbsd/pkgsrc/databases/rrdtool/work/.buildlink/lib/libpangocairo-1.0.so:
 undefined reference to `pango_fc_font_create_base_metrics_for_context'
/files/netbsd/pkgsrc/databases/rrdtool/work/.buildlink/lib/libpangocairo-1.0.so:
 undefined reference to `pango_fc_font_key_get_pattern'
/files/netbsd/pkgsrc/databases/rrdtool/work/.buildlink/lib/libpangocairo-1.0.so:
 undefined reference to `pango_fc_fontset_key_get_context_key'
/files/netbsd/pkgsrc/databases/rrdtool/work/.buildlink/lib/libpangocairo-1.0.so:
 undefined reference to `pango_fc_font_key_get_matrix'



and the link line that failed:


gcc -o conftest -Wno-error -Wno-format -fno-builtin -I/usr/include
-I/usr/pkg/include -I/usr/pkg/include/freetype2 -D_GNU_SOURCE
-fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow
-Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline
-Wold-style-definition -WÂ -fPIC -DPIC -I/usr/include
-I/usr/pkg/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include/cairo -I/usr/pkg/include/libpng14
-I/usr/pkg/include/pixman-1 -I/usr/pkg/include/freetype2
-I/usr/pkg/includeÂÂ -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/includeÂÂ -pthread
-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/cairo
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/pkg/include/pixman-1 -I/usr/pkg/include/freetype2
-I/usr/pkg/include -I/usr/pkg/include/libpng14ÂÂ -L/usr/lib64
-Wl,-R/usr/lib64 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/libÂÂ -L/usr/pkg/libÂÂ -Wl,-R/usr/pkg/lib
-L/usr/pkg/libÂÂ -Wl,-R/usr/pkg/lib -pthreadÂÂ conftest.c
-lpangocairo-1.0 -lcairo -lcairo -lcairo -lm -lcairo -lpng14
-lglib-2.0ÂÂ -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0
-lgmodule-2.0 -lgthread-2.0 -lpthread -lrt -lglib-2.0


interestingly enough adding -lpangoft2-1.0 by hand to the end of the
link line seems to resolve it.


Just tested on an amd64 NetBSD5.0 box and it seemed fine, though that
box has packages installed from a couple of weeks back (just wiping
all out of date packages and rebuilding now)

Is anyone else seeing this?


Home | Main Index | Thread Index | Old Index