Re: Can't link to Pango while running configure for GTK+ 2.8.*



On Wed, 24 Aug 2005 15:26:17 PDT, Armaghan Mallik said:

> /usr/local/lib/libpangocairo-1.0.so: undefined reference to
> `pango_fc_font_create_metrics_for_context'

Double-check your build of Pango.  This error is a Pango routine being
unable to find another Pango routine.  You'll probably need to go grepping
through the Pango source to find which .c file builds the missing reference,
and then figure out how/why the .o file that should have been created didn't
end up in a .so.

Another possible cause: Your config.log lists this fragment of the link:

 -L/usr/local/lib -L/usr/lib64 -lpangocairo-1.0 -lpango-1.0

I wonder if -lpango needs to precede -lpangocairo?  Does reversing the order help
(You can probably just add '-lpango-1.0' to your LDFLAGS and re-run ./configure
to test this out, as then there will be a reference to -lpango before -lpangocairo)

Attachment: pgpzn9Ciw0ShJ.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]