Subject: Problems building x11/gtk2, no "pangocairo"; pango at fault?
To: None <tech-pkg@NetBSD.org>
From: Magnus Eriksson <magetoo@fastmail.fm>
List: tech-pkg
Date: 11/26/2005 20:34:14
I've been having the same gtk2 problem as this guy:

http://mail-index.netbsd.org/tech-pkg/2005/10/27/0023.html


NetBSD 1.6, pkgsrc updated several times this week from netbsd.se.

GTK fails in configure stage, due to missing "pangocairo".



I quote:

[...]
checking X11/extensions/XShm.h... yes
checking for Xinerama support on XFree86... checking forXineramaQueryExtension in -lXinerama... (cached) no
checking Pango flags... configure: error:
*** Pango not found. Pango built with Cairo support is required
*** to build GTK+. See http://www.pango.org for Pango information.

*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/gtk2
===>
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more information:
===>      * config.log
===>      * /usr/pkgsrc/x11/gtk2/work/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/gtk2


And there really isn't any more detailed info in config.log:

configure:31540: checking Pango flags
configure:31549: error:
*** Pango not found. Pango built with Cairo support is required
*** to build GTK+. See http://www.pango.org for Pango information.


However, when looking at devel/pango, I can see something is wrong:

# make
[...]
===> Configuring for pango-1.10.1
=> Adding rpaths to pkgconfig files.
[subst.mk] WARNING: Ignoring non-existant file "./pangocairo.pc-uninstalled.in".
[subst.mk] WARNING: Ignoring non-existant file "./pangoft2.pc-uninstalled.in".
[subst.mk] WARNING: Ignoring non-existant file "./pangowin32.pc-uninstalled.in".
[subst.mk] WARNING: Ignoring non-existant file "./pangox.pc-uninstalled.in".
[subst.mk] WARNING: Ignoring non-existant file "./pangoxft.pc-uninstalled.in".
[...]
# make install
[...]
gmake[2]: Leaving directory `/usr/pkgsrc/devel/pango/work/pango-1.10.1'
gmake[1]: Leaving directory `/usr/pkgsrc/devel/pango/work/pango-1.10.1'
/usr/pkgsrc/devel/pango/../../mk/scripts/print-la-libnames: cannot read libtool archive `./lib/libpangocairo-1.0.la'
===> [Automatic ELF shared object handling]
ls: /usr/pkg/include/pango-1.0/pango/pangocairo.h: No such file or directory
ls: /usr/pkg/lib/libpangocairo-1.0.la: No such file or directory
ls: /usr/pkg/lib/pkgconfig/pangocairo.pc: No such file or directory
===> Registering installation for pango-1.10.1
pkg_create: can't stat `/usr/pkg/include/pango-1.0/pango/pangocairo.h'
pkg_create: can't stat `/usr/pkg/lib/libpangocairo-1.0.la'
pkg_create: can't stat `/usr/pkg/lib/pkgconfig/pangocairo.pc'
[...]

The "pangocairo.h" and "pangocairo.pc" files are actually present:
# find . -name pangocairo.h
./work/pango-1.10.1/pango/pangocairo.h
# find . -name pangocairo.pc
./work/pango-1.10.1/pangocairo.pc

But "libpangocairo-1.0.la" isn't:
# find . -name libpangocairo-1.0.la
#


   Could it be something wrong with graphics/cairo ?  I don't think so, at 
least it seems to build without any problems.

   I've been trying to build these three packages a couple of times through 
the week, hoping that the problem would be something in pkgsrc, but 
apparently that's not the case.  Surely there would have been more traffic 
on this list if people couldn't build x11/gtk2.

   So, any suggestions?


MAgnus