autotools gtk-doc scanner build failure: undefined reference to `gst_gl_display_wayland_get_type'
Building on fedora 30 (and also tested on fedora 28), gst-plugins-base-1.15.2 build fails when using --enable-gtk-doc configure option.
DOC Introspecting gobjects
libtool: compile: gcc -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I../../gst-libs -I../../gst-libs -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c gst-plugins-base-libs-scan.c -fPIC -DPIC -o .libs/gst-plugins-base-libs-scan.o
libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld .libs/gst-plugins-base-libs-scan.o -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/gst-plugins-base-libs-scan ../../gst-libs/gst/allocators/.libs/libgstallocators-1.0.so ../../gst-libs/gst/audio/.libs/libgstaudio-1.0.so ../../gst-libs/gst/fft/.libs/libgstfft-1.0.so ../../gst-libs/gst/rtp/.libs/libgstrtp-1.0.so ../../gst-libs/gst/rtsp/.libs/libgstrtsp-1.0.so ../../gst-libs/gst/sdp/.libs/libgstsdp-1.0.so /home/rdieter/pkgs.fedoraproject.org/gstreamer1-plugins-base/gst-plugins-base-1.15.2/gst-libs/gst/rtp/.libs/libgstrtp-1.0.so -lgio-2.0 ../../gst-libs/gst/tag/.libs/libgsttag-1.0.so ../../gst-libs/gst/video/.libs/libgstvideo-1.0.so ../../gst-libs/gst/app/.libs/libgstapp-1.0.so ../../gst-libs/gst/pbutils/.libs/libgstpbutils-1.0.so ../../gst-libs/gst/riff/.libs/libgstriff-1.0.so /home/rdieter/pkgs.fedoraproject.org/gstreamer1-plugins-base/gst-plugins-base-1.15.2/gst-libs/gst/audio/.libs/libgstaudio-1.0.so /var/tmp/kdecache-rdieter/BUILDROOT/gst-plugins-base-1.15.2/gst-libs/gst/tag/.libs/libgsttag-1.0.so /home/rdieter/pkgs.fedoraproject.org/gstreamer1-plugins-base/gst-plugins-base-1.15.2/gst-libs/gst/tag/.libs/libgsttag-1.0.so -lz ../../gst-libs/gst/gl/.libs/libgstgl-1.0.so /home/rdieter/pkgs.fedoraproject.org/gstreamer1-plugins-base/gst-plugins-base-1.15.2/gst-libs/gst/video/.libs/libgstvideo-1.0.so -lorc-0.4 /home/rdieter/pkgs.fedoraproject.org/gstreamer1-plugins-base/gst-plugins-base-1.15.2/gst-libs/gst/allocators/.libs/libgstallocators-1.0.so -lm -lgmodule-2.0 -lGL -lGLESv2 -lX11-xcb -lX11 -lxcb -lEGL -ldrm -lgbm -lgudev-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -pthread
.libs/gst-plugins-base-libs-scan.o: In function `get_object_types':
/var/tmp/kdecache-rdieter/BUILDROOT/gst-plugins-base-1.15.2/docs/libs/gst-plugins-base-libs-scan.c:111: undefined reference to `gst_gl_display_wayland_get_type'
collect2: error: ld returned 1 exit status
2019-03-07 12:49:52,656:scangobj.py:execute_command:1196:WARNING:Linking scanner failed: 1, command: /bin/sh ../../libtool --tag=CC --mode=link gcc -lgobject-2.0 -lglib-2.0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld gst-plugins-base-libs-scan.lo ../../gst-libs/gst/allocators/libgstallocators-1.0.la ../../gst-libs/gst/audio/libgstaudio-1.0.la ../../gst-libs/gst/fft/libgstfft-1.0.la ../../gst-libs/gst/rtp/libgstrtp-1.0.la ../../gst-libs/gst/rtsp/libgstrtsp-1.0.la ../../gst-libs/gst/sdp/libgstsdp-1.0.la ../../gst-libs/gst/tag/libgsttag-1.0.la ../../gst-libs/gst/video/libgstvideo-1.0.la ../../gst-libs/gst/app/libgstapp-1.0.la ../../gst-libs/gst/pbutils/libgstpbutils-1.0.la ../../gst-libs/gst/riff/libgstriff-1.0.la ../../gst-libs/gst/gl/libgstgl-1.0.la -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o gst-plugins-base-libs-scan
make[3]: *** [Makefile:971: scan-build.stamp] Error 1
Edited by Tim-Philipp Müller