gst-build fails to build with static build and introspection enabled
The most simple static build is failing using the fedora docker image:
$ meson build-static --default-library=static
...
Dependency gstreamer-full-1.0 found: YES 1.19.0.1 (overridden)
Program gst-env.py found: YES (/root/DEV/COMMUNITY/GSTREAMER/gst-build/gst-env.py)
Program git-update found: YES (/root/DEV/COMMUNITY/GSTREAMER/gst-build/git-update)
Build targets in project: 1739
gst-plugins-bad 1.19.0.1
Plugins: accurip, adpcmdec, adpcmenc, aiff, asfmux, audiobuffersplit, audiofxbad, audiomixmatrix, audiolatency, audiovisualizers, autoconvert, bayer, camerabin, coloreffects, debugutilsbad,
dvbsubenc, dvbsuboverlay, dvdspu, faceoverlay, festival, fieldanalysis, freeverb, frei0r, gaudieffects, gdp, geometrictransform, id3tag, inter, interlace, ivfparse, ivtc, jp2kdecimator,
jpegformat, rfbsrc, midi, mpegpsdemux, mpegpsmux, mpegtsdemux, mpegtsmux, mxf, netsim, rtponvif, pcapparse, pnm, proxy, legacyrawparse, removesilence, rist, rtmp2, rtpmanagerbad, sdpelem,
segmentclip, siren, smooth, speed, subenc, switchbin, timecode, transcode, videofiltersbad, videoframe_audiolevel, videoparsersbad, videosignal, vmnc, y4mdec, bluez, decklink, dvb,
fbdevsink, ipcpipeline, kms, nvcodec, shm, uvch264, v4l2codecs, va, assrender, aom, avtp, bs2b, bz2, chromaprint, closedcaption, colormanagement, curl, dash, dtls, dtsdec, faac, faad,
fdkaac, flite, fluidsynthmidi, gme, gsm, hls, iqa, kate, ladspa, de265, mms, lv2, microdns, modplug, mpeg2enc, mplex, neonhttpsrc, ofa, openal, opencv, openexr, openh264, openjpeg,
opusparse, resindvd, rsvg, rtmp, sbc, sctp, smoothstreaming, sndfile, soundtouch, srtp, teletext, ttmlsubs, voamrwbenc, vulkan, waylandsink, webrtc, webrtcdsp, webp, wildmidi, x265, zbar
gst-plugins-base 1.19.0.1
GL api: gles2, gl
GL platform: egl, glx
GL winsys: wayland, x11, gbm
Plugins: adder, app, audioconvert, audiomixer, audiorate, audioresample, audiotestsrc, compositor, encoding, gio, overlaycomposition, pbtypes, playback, rawparse, subparse, tcp,
typefindfunctions, videoconvert, videorate, videoscale, videotestsrc, volume, alsa, cdparanoia, opengl, libvisual, ogg, opus, pango, theora, vorbis, ximagesink, xvimagesink
gst-plugins-good 1.19.0.1
Plugins: alpha, alphacolor, apetag, audiofx, audioparsers, auparse, autodetect, avi, cutter, navigationtest, debug, deinterlace, dtmf, effectv, equalizer, flv, flxdec, goom, goom2k1, icydemux,
id3demux, imagefreeze, interleave, isomp4, alaw, mulaw, level, matroska, monoscope, multifile, multipart, replaygain, rtp, rtpmanager, rtsp, shapewipe, smpte, spectrum, udp, videobox,
videocrop, videofilter, videomixer, wavenc, wavparse, y4menc, ossaudio, oss4, video4linux2, ximagesrc, aasink, cairo, flac, gdkpixbuf, gtk, jack, jpeg, lame, cacasink, dv, png, mpg123, 1394,
qmlgl, pulseaudio, shout2, soup, speex, taglib, twolame, vpx, wavpack
gst-plugins-ugly 1.19.0.1
Plugins: asf, dvdlpcmdec, dvdsub, realmedia, xingmux, a52dec, amrnb, amrwbdec, cdio, dvdread, mpeg2dec, x264
gstreamer 1.19.0.1
Plugins: coreelements, coretracers
orc 0.4.32
Backends
SSE: YES
MMX: YES
NEON: YES
MIPS: YES
c64x: YES
Altivec: YES
Build options
Tools: YES
Tests: YES
Examples: YES
Benchmarks: YES
Documentation: NO disabled
Orc-test library: YES
All GStreamer modules 1.19.0.1
Subprojects
avtp: YES
dssim: YES
gl-headers: YES
gst-devtools: YES
gst-docs: YES
gst-editing-services: YES
gst-examples: YES
gst-integration-testsuites: YES
gst-libav: YES
gst-omx: NO Feature 'omx' disabled
gst-plugins-bad: YES 2 warnings
gst-plugins-base: YES 1 warnings
gst-plugins-good: YES
gst-plugins-rs: NO Feature 'rs' disabled
gst-plugins-ugly: YES
gst-python: YES
gst-rtsp-server: YES
gstreamer: YES 2 warnings
gstreamer-sharp: NO Feature 'sharp' disabled
gstreamer-vaapi: YES
intel-vaapi-driver: NO Inconsistency: Subproject has overridden the dependency with another variable than 'libva_dep'
libmicrodns: YES
libnice: YES
libva: YES 2 warnings
openh264: YES 6 warnings
orc: YES
pygobject: YES 2 warnings
tinyalsa: NO Neither a subproject directory nor a tinyalsa.wrap file was found.
Found ninja-1.9.0 at /usr/bin/ninja
[root@7433ec5bf28c gst-build]# ninja -C build-docker-fedora-static/
ninja: Entering directory `build-docker-fedora-static/'
[538/4799] Generating Gst-1.0.gir with a custom command
../subprojects/gstreamer/gst/gstchildproxy.h:57: Error: Gst: identifier not found on the first line:
* #GstChildProxyInterface::get_child_by_name:
^
../subprojects/gstreamer/gst/gstchildproxy.h:68: Error: Gst: identifier not found on the first line:
* #GstChildProxyInterface::get_child_by_index:
^
../subprojects/gstreamer/gst/gstchildproxy.h:79: Error: Gst: identifier not found on the first line:
* #GstChildProxyInterface::get_children_count:
^
../subprojects/gstreamer/gst/gstchildproxy.h:92: Error: Gst: identifier not found on the first line:
* #GstChildProxyInterface::child_added:
^
../subprojects/gstreamer/gst/gstchildproxy.h:102: Error: Gst: identifier not found on the first line:
* #GstChildProxyInterface::child_removed:
^
../subprojects/gstreamer/gst/gstvalue.h:509: Error: Gst: identifier not found on the first line:
* GstValueTable.deserialize_with_pspec:
^
[592/4799] Generating GstCheck-1.0.gir with a custom command
FAILED: subprojects/gstreamer/libs/gst/check/GstCheck-1.0.gir
/usr/bin/g-ir-scanner --no-libtool --namespace=GstCheck --nsversion=1.0 --warn-all --output subprojects/gstreamer/libs/gst/check/GstCheck-1.0.gir '--add-init-section=extern void gst_init(gint*,gchar**);g_setenv("GST_REGISTRY_DISABLE", "yes", TRUE);g_setenv("GST_REGISTRY_1.0", "/no/way/this/exists.reg", TRUE);g_setenv("GST_PLUGIN_PATH_1_0", "", TRUE);g_setenv("GST_PLUGIN_SYSTEM_PATH_1_0", "", TRUE);gst_init(NULL,NULL);' --quiet --c-include=gst/check/check.h -I/root/DEV/COMMUNITY/GSTREAMER/gst-build/subprojects/gstreamer/libs/gst/check -I/root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer/libs/gst/check -I./subprojects/gstreamer/. -I../subprojects/gstreamer/. -I./subprojects/gstreamer/libs -I../subprojects/gstreamer/libs -I./subprojects/gstreamer/. -I../subprojects/gstreamer/. -I./subprojects/gstreamer/. -I../subprojects/gstreamer/. --filelist=/root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer/libs/gst/check/libgstcheck-1.0.a.p/GstCheck_1.0_gir_filelist --include=GLib-2.0 --include=GObject-2.0 --include=GModule-2.0 --include=Gst-1.0 --symbol-prefix=gst --identifier-prefix=Gst --pkg-export=gstreamer-check-1.0 --cflags-begin -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_DEPRECATED -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wdeclaration-after-statement -Wvla -Wpointer-arith -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DGST_STATIC_COMPILATION -I./subprojects/gstreamer/. -I../subprojects/gstreamer/. -I/usr/include/gobject-introspection-1.0 --cflags-end -I./subprojects/gstreamer/. -I../subprojects/gstreamer/. -I./subprojects/gstreamer/libs -I../subprojects/gstreamer/libs -I./subprojects/gstreamer/gst -I../subprojects/gstreamer/gst --add-include-path=/root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer/gst --add-include-path=/usr/share/gir-1.0 --add-include-path=./subprojects/gstreamer/. --add-include-path=../subprojects/gstreamer/. --add-include-path=./subprojects/gstreamer/libs --add-include-path=../subprojects/gstreamer/libs --add-include-path=./subprojects/gstreamer/gst --add-include-path=../subprojects/gstreamer/gst --library /root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer/libs/gst/check/libgstcheck-1.0.a -L/root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer/libs/gst/check --extra-library=gobject-2.0 --extra-library=glib-2.0 --extra-library=gmodule-2.0 --extra-library=girepository-1.0 --sources-top-dirs /root/DEV/COMMUNITY/GSTREAMER/gst-build/subprojects/gstreamer --sources-top-dirs /root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer
/usr/bin/ld: /root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/tmp-introspectps3uy9ok/GstCheck-1.0.o: in function `main':
GstCheck-1.0.c:(.text+0x139e): undefined reference to `gst_init'
/usr/bin/ld: /root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer/libs/gst/check/libgstcheck-1.0.a(gsttestclock.c.o): in function `gst_test_clock_get_type_once':
/root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/../subprojects/gstreamer/libs/gst/check/gsttestclock.c:220: undefined reference to `gst_clock_get_type'
/usr/bin/ld: /root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/../subprojects/gstreamer/libs/gst/check/gsttestclock.c:220: undefined reference to `_gst_debug_category_new'
/usr/bin/ld: /root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/subprojects/gstreamer/libs/gst/check/libgstcheck-1.0.a(gsttestclock.c.o): in function `gst_test_clock_class_init':
/root/DEV/COMMUNITY/GSTREAMER/gst-build/build-docker-fedora-static/../subprojects/gstreamer/libs/gst/check/gsttestclock.c:259: undefined reference to `gst_clock_get_type'
...