[GRASS-dev] Re: [GRASS GIS] #456: Undefined references when
building grass 6.4 rc2
Glynn Clements
glynn at gclements.plus.com
Fri Jan 23 13:16:35 EST 2009
Markus Neteler wrote:
> On Fri, Jan 23, 2009 at 1:21 PM, GRASS GIS <trac at osgeo.org> wrote:
> > #456: Undefined references when building grass 6.4 rc2
> >Ticket URL: <http://trac.osgeo.org/grass/ticket/456>
> ...
> > Fixed also in GRASS 7.
>
> ... except for this one:
>
> gcc -shared -o /home/neteler/grass70/dist.x86_64-unknown-linux-gnu/lib/libgrass_cairodriver.7.0.svn.so
> /home/neteler/grass70/dist.x86_64-unknown-linux-gnu/lib/libgrass_cairodriver.so)
> OBJ.x86_64-unknown-linux-gnu/Text.o: In function `fc_init':
> /home/neteler/grass70/lib/cairodriver/Text.c:180: undefined reference to `FcInit'
> Apparently CAIRO_HAS_FT_FONT isn't set as missing from include/config.h
> if I understand the problem correctly.
It isn't supposed to be set in <grass/config.h>, but in
<cairo-features.h>
This particular case isn't bogus, as cairodriver/Text.c uses
FontConfig directly, so it should be listed in the Makefile.
Unfortunately, there aren't any configure checks for it (and thus no
$(FCLIB) or similar that we can use); we just assume that if
CAIRO_HAS_FT_FONT is defined, then linking against cairo will pull in
FontConfig automatically.
I have opened ticket #459 for this specific issue.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list