1.17.4: meson build fail
+ /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . x86_64-redhat-linux-gnu -D cogl=enabled -D drm=enabled -D egl=enabled -D fontconfig=enabled -D freetype=enabled -D glib=enabled -D glx=enabled -D openvg=disabled -D png=enabled -D qt=disabled -D spectre=enabled -D tee=enabled -D tests=enabled -D wgl=enabled -D xcb=enabled -D xlib=enabled -D zlib=enabled
The Meson build system
Version: 0.57.1
Source dir: /home/tkloczko/rpmbuild/BUILD/cairo-1.17.4
Build dir: /home/tkloczko/rpmbuild/BUILD/cairo-1.17.4/x86_64-redhat-linux-gnu
Build type: native build
Program version.py found: YES (/home/tkloczko/rpmbuild/BUILD/cairo-1.17.4/version.py)
WARNING: Unknown options: "egl, glx, wgl"
The value of new options can be set with:
meson setup <builddir> --reconfigure -Dnew_option=new_value ...
Project name: cairo
Project version: 1.17.4
C compiler for the host machine: /usr/bin/gcc (gcc 11.0.0 "gcc (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C linker for the host machine: /usr/bin/gcc ld.bfd 2.35.1-34
C++ compiler for the host machine: /usr/bin/g++ (gcc 11.0.0 "g++ (GCC) 11.0.0 20210210 (Red Hat 11.0.0-0)")
C++ linker for the host machine: /usr/bin/g++ ld.bfd 2.35.1-34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python3)
Library m found: YES
Dependency gtk+-2.0 skipped: feature gtk2-utils disabled
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency lzo2 found: YES 2.10
Library dl found: YES
Checking for function "dlsym" with dependency -ldl: YES
Run-time dependency zlib found: YES 1.2.11
Run-time dependency libpng found: YES 1.6.37
Run-time dependency fontconfig found: YES 2.13.93
Run-time dependency freetype2 found: YES 23.4.17
Checking if "FT has color" with dependency freetype2 links: YES
Run-time dependency x11 found: YES 1.7.0
Run-time dependency xext found: YES 1.3.4
Checking if "shmctl IPC_RMID allowes subsequent attaches" with dependencies x11, xext runs: YES
Run-time dependency xrender found: YES 0.9.10
Run-time dependency xcb found: YES 1.14
Run-time dependency xcb-render found: YES 1.14
Run-time dependency x11-xcb found: YES 1.7.0
Run-time dependency xcb-shm found: YES 1.14
Dependency QtGui skipped: feature qt disabled
Has header "ApplicationServices/ApplicationServices.h" : NO
Run-time dependency libudev found: YES 247
Run-time dependency libdrm found: YES 2.4.104
Run-time dependency cogl-2.0-experimental found: YES 2.0.0
Dependency directfb skipped: feature directfb disabled
Library OpenVG skipped: feature openvg disabled
Run-time dependency gobject-2.0 found: YES 2.67.4
Run-time dependency glib-2.0 found: YES 2.67.4
Library bfd found: YES
Checking for function "bfd_openr" with dependency -lbfd: YES
Has header "libiberty.h" : YES
Program gs found: YES (/usr/bin/gs)
Run-time dependency libspectre found: YES 0.2.9
Run-time dependency poppler-glib found: YES 21.01.0
Checking for function "poppler_page_render" with dependency poppler-glib: YES
Run-time dependency librsvg-2.0 found: YES 2.51.0
Run-time dependency pixman-1 found: YES 0.40.0
Checking for size of "void *" : 8
Checking for size of "int" : 4
Checking for size of "long" : 8
Checking for size of "long long" : 8
Checking for size of "size_t" : 8
Has header "stdint.h" : YES
Has header "inttypes.h" : YES
Has header "sys/int_types.h" : NO
Has header "fcntl.h" : YES
Has header "unistd.h" : YES
Has header "signal.h" : YES
Has header "sys/stat.h" : YES
Has header "sys/socket.h" : YES
Has header "poll.h" : YES
Has header "sys/poll.h" : YES
Has header "sys/un.h" : YES
Has header "sched.h" : YES
Has header "sys/mman.h" : YES
Has header "time.h" : YES
Has header "libgen.h" : YES
Has header "byteswap.h" : YES
Has header "signal.h" : YES (cached)
Has header "setjmp.h" : YES
Has header "fenv.h" : YES
Has header "sys/wait.h" : YES
Has header "sys/stat.h" : YES (cached)
Has header "io.h" : NO
Has header "fenv.h" : YES (cached)
Has header "xlocale.h" : NO
Has header "sys/ioctl.h" : YES
Has header "X11/extensions/XShm.h" : YES
Has header "X11/extensions/shmproto.h" : YES
Has header "X11/extensions/shmstr.h" : YES
Checking for type "uint64_t" : YES
Checking for type "uint128_t" : NO
Checking for type "__uint128_t" : YES
Checking for function "alarm" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "ctime_r" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "localtime_r" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "gmtime_r" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "drand48" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "flockfile" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "funlockfile" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "getline" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "link" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "strndup" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "fork" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "waitpid" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "raise" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "newlocale" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "strtod_l" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FcInit" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FcFini" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FT_Get_X11_Font_Format" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FT_GlyphSlot_Embolden" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FT_GlyphSlot_Oblique" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FT_Load_Sfnt_Table" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FT_Library_SetLcdFilter" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FT_Get_Var_Design_Coordinates" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "FT_Done_MM_Var" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "XRenderCreateSolidFill" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "XRenderCreateLinearGradient" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "XRenderCreateRadialGradient" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "XRenderCreateConicalGradient" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "sched_getaffinity" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "mmap" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "clock_gettime" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "feenableexcept" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "fedisableexcept" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking for function "feclearexcept" with dependencies -lm, lzo2, -ldl, zlib, libpng, fontconfig, freetype2, x11, xext, xrender, xcb, xcb-render, x11-xcb, xcb-shm, cogl-2.0-experimental, -lbfd, libspectre, pixman-1: YES
Checking if "pthreads" links: YES
Checking if "Atomic ops: cxx11" links: YES
Library rt found: YES
Checking for function "shm_open" with dependency -lrt: YES
Compiler for C supports arguments -Wno-attributes: YES
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-long-long: YES
Configuring cairo-features.h using configuration
Configuring cairo-trace using configuration
Run-time dependency expat found: YES 2.2.10
Header <malloc.h> has symbol "__malloc_hook" : YES
Has header "execinfo.h" : YES
Configuring config.h using configuration
Build targets in project: 25
cairo 1.17.4
Surface Backends
Image : YES
Recording : YES
Observer : YES
Mime : YES
Tee : YES
XML : YES
Xlib : YES
Xlib Xrender : YES
Qt : NO
Quartz : NO
Quartz-image : NO
XCB : YES
Win32 : NO
OS2 : NO
CairoScript : YES
PostScript : YES
PDF : YES
SVG : YES
OpenGL : NO
OpenGL ES 2.0 : NO
OpenGL ES 3.0 : NO
BeOS : NO
DirectFB : NO
OpenVG : NO
DRM : NO
Cogl : YES
Font Backends
User : YES
FreeType : YES
Fontconfig : YES
Win32 : NO
Quartz : NO
Functions
PNG functions : YES
GLX functions : NO
WGL functions : NO
EGL functions : NO
X11-xcb : YES
XCB-shm : YES
Features and Utilities
cairo-trace: : YES
cairo-script-interpreter: YES
and it fails with:
[tkloczko@barrel x86_64-redhat-linux-gnu]$ ninja
[38/334] Compiling C object util/cairo-trace/libcairo-trace.so.p/lookup-symbol.c.o
FAILED: util/cairo-trace/libcairo-trace.so.p/lookup-symbol.c.o
/usr/bin/gcc -Iutil/cairo-trace/libcairo-trace.so.p -Iutil/cairo-trace -I../util/cairo-trace -I. -I.. -Isrc -I../src -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/cogl -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -grecord-gcc-switches -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -pthread '-DSHARED_LIB_EXT="0"' -DHAVE_CONFIG_H -D_REENTRANT -MD -MQ util/cairo-trace/libcairo-trace.so.p/lookup-symbol.c.o -MF util/cairo-trace/libcairo-trace.so.p/lookup-symbol.c.o.d -o util/cairo-trace/libcairo-trace.so.p/lookup-symbol.c.o -c ../util/cairo-trace/lookup-symbol.c
../util/cairo-trace/lookup-symbol.c: In function ‘find_address_in_section’:
../util/cairo-trace/lookup-symbol.c:148:10: warning: implicit declaration of function ‘bfd_get_section_flags’; did you mean ‘bfd_set_section_flags’? [-Wimplicit-function-declaration]
148 | if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) == 0)
| ^~~~~~~~~~~~~~~~~~~~~
| bfd_set_section_flags
../util/cairo-trace/lookup-symbol.c:151:11: warning: implicit declaration of function ‘bfd_get_section_vma’; did you mean ‘bfd_set_section_vma’? [-Wimplicit-function-declaration]
151 | vma = bfd_get_section_vma (symtab->bfd, section);
| ^~~~~~~~~~~~~~~~~~~
| bfd_set_section_vma
../util/cairo-trace/lookup-symbol.c:155:36: warning: passing argument 1 of ‘bfd_section_size’ from incompatible pointer type [-Wincompatible-pointer-types]
155 | size = bfd_section_size (symtab->bfd, section);
| ~~~~~~^~~~~
| |
| bfd *
In file included from ../util/cairo-trace/lookup-symbol.c:67:
/usr/include/bfd.h:1224:35: note: expected ‘const asection *’ {aka ‘const struct bfd_section *’} but argument is of type ‘bfd *’
1224 | bfd_section_size (const asection *sec)
| ~~~~~~~~~~~~~~~~^~~
../util/cairo-trace/lookup-symbol.c:155:12: error: too many arguments to function ‘bfd_section_size’
155 | size = bfd_section_size (symtab->bfd, section);
| ^~~~~~~~~~~~~~~~
In file included from ../util/cairo-trace/lookup-symbol.c:67:
/usr/include/bfd.h:1224:1: note: declared here
1224 | bfd_section_size (const asection *sec)
| ^~~~~~~~~~~~~~~~
[87/334] Generating symbol file src/libcairo.so.2.1174.0.p/libcairo.so.2.1174.0.symbols
ninja: build stopped: subcommand failed.