error building pango on 8.2

Riccardo Mottola <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <[email protected]>
Hi,

I don't know if this issue is specific to sparc, but perhaps generic to
8.2? I was able to rebuild pango on NetBSD/sparc64 9.3

cairo is installed:
$ pkg_info | grep cairo
cairo-1.16.0nb7     Vector graphics library with cross-device output support
cairo-gobject-1.16.0nb6 Vector graphics library with cross-device output
suppor


but pango fails for not finding cairo.h:


[13/28] Generating pango/PangoCairo-1.0.gir with a custom command
(wrapped by meson to set env)
FAILED: pango/PangoCairo-1.0.gir
env
PKG_CONFIG_PATH=/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/meson-uninstalled
/usr/pkg/bin/g-ir-scanner --quiet --no-libtool --namespace=PangoCairo
--nsversion=1.0 --warn-all --output pango/PangoCairo-1.0.gir
--c-include=pango/pangocairo.h --quiet
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/pango
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/pango/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/pango/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/pango/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango/.
--filelist=/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango/libpangocairo-1.0.so.0.5000.12.p/PangoCairo_1.0_gir_filelist
--include-uninstalled=pango/Pango-1.0.gir --include=GObject-2.0
--include=cairo-1.0 --symbol-prefix=pango_cairo
--identifier-prefix=PangoCairo --pkg-export=pangocairo --cflags-begin
-D_POSIX_C_SOURCE=200809L -D_POSIX_THREAD_SAFE_FUNCTIONS -D_GNU_SOURCE
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/pango/.
-I/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango/.
-I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/pkg/include -I/usr/pkg/include/fribidi
-I/usr/pkg/include/harfbuzz -I/usr/pkg/include/freetype2
-I/usr/pkg/include/libpng16 -I/usr/X11R7/include -D_REENTRANT
-I/usr/pkg/include/cairo -I/usr/X11R7/include/pixman-1
-I/usr/pkg/include/gobject-introspection-1.0 -I/usr/pkg/include
-I/usr/X11R7/include -I/usr/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz
-DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/X11R7/include
-I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0
-I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/pkg/include/harfbuzz --cflags-end
--add-include-path=/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango
--add-include-path=/usr/pkg/share/gir-1.0
--add-include-path=/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango
-L/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango
--extra-library=pango-1.0 --extra-library=pangoft2-1.0
-L/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango
--library pangocairo-1.0
-L/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/pango
-L/usr/pkg/lib -L/usr/X11R7/lib -L/usr/lib --extra-library=m
-L/usr/pkg/lib --extra-library=glib-2.0 --extra-library=intl
--extra-library=gobject-2.0 --extra-library=gio-2.0
--extra-library=fribidi --extra-library=harfbuzz
--extra-library=fontconfig --extra-library=freetype -L/usr/X11R7/lib
--extra-library=Xrender --extra-library=X11 --extra-library=Xft
--extra-library=cairo --extra-library=harfbuzz-gobject
--extra-library=girepository-1.0 --sources-top-dirs
/home/pkg-workdir/devel/pango/work/pango-1.50.12/ --sources-top-dirs
/home/pkg-workdir/
devel/pango/work/pango-1.50.12/output/
In file included from
/home/pkg-workdir/devel/pango/work/pango-1.50.12/output/g-ir-cpp-5l1kbw18.c:4:0:
/home/pkg-workdir/devel/pango/work/pango-1.50.12/pango/pangocairo.h:26:19:
fatal error: cairo.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File
"/usr/pkg/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py",
line 179, in preprocess
    self.spawn(pp_args)
  File
"/usr/pkg/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py",
line 1007, in spawn
    spawn(cmd, dry_run=self.dry_run, **kwargs)
  File
"/usr/pkg/lib/python3.10/site-packages/setuptools/_distutils/spawn.py",
line 70, in spawn
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command
'/home/pkg-workdir/devel/pango/work/.cwrapper/bin/cpp' failed with exit
code 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.