pkgsrc-Users archive

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

Re: x11/gtk3 - fatal error: pango/pango.h: No such file or directory

On Tue, 25 Feb 2020 07:34:44 +0100
Roland Illig <> wrote:

> On 24.02.2020 22:46, Sad Clouds wrote:
> > On Mon, 24 Feb 2020 21:55:24 +0100
> > Roland Illig <> wrote:
> >> In the second of these configurations, the buildlink wrappers that
> >> install the headers and libraries into WRKDIR/.buildlink during a
> >> package build will just skip these.
> That was wrong. The buildlink wrappers installed the symlinks. The
> part that really hid the headers was the cwrapper.

OK I have both gtk2 and gtk3 failing to build with a similar error.
Below is the error when building gtk2:

In file included from /opt/netbsd_build/objects/x11/gtk2/work/gtk+-2.24.32/gdk/gdkapplaunchcontext.h:31:0,
                 from /opt/netbsd_build/objects/x11/gtk2/work/gtk+-2.24.32/gdk/gdk.h:32,
                 from /opt/netbsd_build/objects/x11/gtk2/work/gtk+-2.24.32/gdk/g-ir-cpp-cx4u4vvc.c:4:
/opt/netbsd_build/objects/x11/gtk2/work/gtk+-2.24.32/gdk/gdkscreen.h:31:10: fatal error: cairo.h: No such file or directory
 #include <cairo.h>

Because I'm building on evbarm64 (which to begin with I didn't think
was significant), it is trying to compile dynamically generated
gtk+-2.24.32/gdk/g-ir-cpp-ia04bw60.c which generates the error. This
source file is not created on amd64, hence the build there succeeds.

The actual command line parameters passed to gcc when it fails are:

-E -DPREFIX=/usr/pkg -DPNG_NO_ASSEMBLER_CODE -I/opt/netbsd_build/objects/x11/gtk2/work/.buildlink/include -I/opt/netbsd_build/objects/x11/gtk2/work/.buildlink/include/glib-2.0 -I/opt/netbsd_build/objects/x11/gtk2/work/.buildlink/include/gio-unix-2.0 -I/opt/netbsd_build/objects/x11/gtk2/work/.buildlink/lib/glib-2.0/include -I/opt/netbsd_build/objects/x11/gtk2/work/.x11-buildlink/include -I/opt/netbsd_build/objects/x11/gtk2/work/.x11-buildlink/include/freetype2 -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -D_REENTRANT -DG_LOG_DOMAIN="Gdk" -DGDK_COMPILATION -DG_DISABLE_CAST_CHECKS -D_REENTRANT -D_REENTRANT -D_REENTRANT -I. -I/opt/netbsd_build/objects/x11/gtk2/work/gtk+-2.24.32 -I/opt/netbsd_build/objects/x11/gtk2/work/gtk+-2.24.32/gdk -I/opt/netbsd_build/objects/x11/gtk2/work/.x11-buildlink/include/pixman-1 -o g-ir-cpp-cx4u4vvc.i -C -pthread /opt/netbsd_build/objects/x11/gtk2/work/gtk+-2.24.32/gdk/g-ir-cpp-c
 x4u4vvc.c -D_FORTIFY_SOURCE=2 -fstack-protector

Notice there is no "include/cairo" directory anywhere in the above command.
Whatever the "g-ir-XXX" tools do, they don't seem to provide the correct
include paths.

Not sure of symlinks break pkgsrc cwrappers or gtk build tools.

Home | Main Index | Thread Index | Old Index