Gstreamer build fails at generating gir files
I'm using master glib/gobject-instropection/gstreamer and it keeps one failing to find 2 symbols that are available in the generated gst library.
ninja
[1/366] Generating Gst-1.0.gir with a custom command.
FAILED: gst/Gst-1.0.gir
/home/djdeath/src/gnome-build/bin/g-ir-scanner -pthread -I/home/djdeath/src/gnome-build/include/gobject-introspection-1.0 -I/home/djdeath/src/gnome-build/include/glib-2.0 -I/home/djdeath/src/gnome-build/lib/glib-2.0/include --no-libtool --namespace=Gst --nsversion=1.0 --warn-all --output gst/Gst-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);' --c-include=gst/gst.h -I/home/djdeath/src/gnome-src/gstreamer/gst -I/home/djdeath/src/gnome-src/gstreamer/build/gst -I./. -I../. -I./gst/parse -I../gst/parse --filelist=/home/djdeath/src/gnome-src/gstreamer/build/gst/b408f4a@@gstreamer-1.0@sha/Gst_1.0_gir_filelist --include=GLib-2.0 --include=GObject-2.0 --include=GModule-2.0 --symbol-prefix=gst --identifier-prefix=Gst --pkg-export=gstreamer-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 -Wnested-externs -Wdeclaration-after-statement -Wvla -Wpointer-arith -I./. -I../. -I./gst/parse -I../gst/parse -I/home/djdeath/src/gnome-build/include/glib-2.0 -I/home/djdeath/src/gnome-build/lib/glib-2.0/include -I/usr/include/x86_64-linux-gnu --cflags-end -L/home/djdeath/src/gnome-src/gstreamer/build/gst/printf -L/home/djdeath/src/gnome-build/lib --library gstreamer-1.0 -L/home/djdeath/src/gnome-src/gstreamer/build/gst -L/home/djdeath/src/gnome-build/lib -L/home/djdeath/src/gnome-build/lib --extra-library=gobject-2.0 --extra-library=glib-2.0 --extra-library=gmodule-2.0 --extra-library=m --extra-library=dl --extra-library=unwind --extra-library=dw --extra-library=elf
/home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0.c: In function ‘main’:
/home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0.c:602:15: warning: nested extern declaration of ‘gst_init’ [-Wnested-externs]
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);
^~~~~~~~
g-ir-scanner: link: cc -o /home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0 -O0 -g /home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0.o -L. -Wl,-rpath,. -Wl,--no-as-needed -L/home/djdeath/src/gnome-src/gstreamer/build/gst/printf -Wl,-rpath,/home/djdeath/src/gnome-src/gstreamer/build/gst/printf -L/home/djdeath/src/gnome-build/lib -Wl,-rpath,/home/djdeath/src/gnome-build/lib -L/home/djdeath/src/gnome-src/gstreamer/build/gst -Wl,-rpath,/home/djdeath/src/gnome-src/gstreamer/build/gst -L/home/djdeath/src/gnome-build/lib -Wl,-rpath,/home/djdeath/src/gnome-build/lib -L/home/djdeath/src/gnome-build/lib -Wl,-rpath,/home/djdeath/src/gnome-build/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0 -lm -ldl -lunwind -ldw -lelf -L/home/djdeath/src/gnome-build/lib -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -L/home/djdeath/src/gnome-build/lib
/usr/bin/ld: /home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0.o:(.data.rel+0x1d8): undefined reference to `gst_promise_result_get_type'
/usr/bin/ld: /home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0.o:(.data.rel+0x4a0): undefined reference to `gst_promise_get_type'
collect2: error: ld returned 1 exit status
../gst/gstdeviceprovider.c:778: Warning: Gst: unknown annotation: transfer-none
../gst/gstdeviceprovider.c:779: Warning: Gst: unknown annotation: transfer-floating
linking of temporary binary failed: Command '['cc', '-o', '/home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0', '-O0', '-g', '/home/djdeath/src/gnome-src/gstreamer/build/tmp-introspect4kxhgxb4/Gst-1.0.o', '-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed', '-L/home/djdeath/src/gnome-src/gstreamer/build/gst/printf', '-Wl,-rpath,/home/djdeath/src/gnome-src/gstreamer/build/gst/printf', '-L/home/djdeath/src/gnome-build/lib', '-Wl,-rpath,/home/djdeath/src/gnome-build/lib', '-L/home/djdeath/src/gnome-src/gstreamer/build/gst', '-Wl,-rpath,/home/djdeath/src/gnome-src/gstreamer/build/gst', '-L/home/djdeath/src/gnome-build/lib', '-Wl,-rpath,/home/djdeath/src/gnome-build/lib', '-L/home/djdeath/src/gnome-build/lib', '-Wl,-rpath,/home/djdeath/src/gnome-build/lib', '-lgstreamer-1.0', '-lgobject-2.0', '-lglib-2.0', '-lgmodule-2.0', '-lm', '-ldl', '-lunwind', '-ldw', '-lelf', '-L/home/djdeath/src/gnome-build/lib', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-L/home/djdeath/src/gnome-build/lib']' returned non-zero exit status 1.
ninja: build stopped: subcommand failed.
Edited by Lionel Landwerlin