libffi mismatch version with wrap_mode=forcefallback
Describe your issue
The build fails with
$ meson build -Dwrap_mode=forcefallback -Dbackend=ninja -Dbad=disabled -Dgood=disabled -Dintrospection=disabled -Dbase=disabled -Dlibav=disabled -Dlibnice=disabled -Dtls=disabled
[1868/3009] Linking target subprojects/gstreamer/tests/examples/controller/controller-graph
FAILED: subprojects/gstreamer/tests/examples/controller/controller-graph
cc -o subprojects/gstreamer/tests/examples/controller/controller-graph subprojects/gstreamer/tests/examples/controller/controller-graph.p/controller-graph.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-Bsymbolic-functions '-Wl,-rpath,$ORIGIN/../../../../glib/glib:$ORIGIN/../../../../glib/gobject:$ORIGIN/../../../../libffi/src:$ORIGIN/../../../../glib/gmodule:$ORIGIN/../../../gst:$ORIGIN/../../../libs/gst/controller' -Wl,-rpath-link,/workdir/gst-build/build-test/subprojects/glib/glib -Wl,-rpath-link,/workdir/gst-build/build-test/subprojects/glib/gobject -Wl,-rpath-link,/workdir/gst-build/build-test/subprojects/libffi/src -Wl,-rpath-link,/workdir/gst-build/build-test/subprojects/glib/gmodule -Wl,-rpath-link,/workdir/gst-build/build-test/subprojects/gstreamer/gst -Wl,-rpath-link,/workdir/gst-build/build-test/subprojects/gstreamer/libs/gst/controller -Wl,--start-group subprojects/glib/glib/libglib-2.0.so.0.6800.3 subprojects/glib/gobject/libgobject-2.0.so.0.6800.3 subprojects/glib/gmodule/libgmodule-2.0.so.0.6800.3 subprojects/gstreamer/gst/libgstreamer-1.0.so.0.1901.0 subprojects/gstreamer/libs/gst/controller/libgstcontroller-1.0.so.0.1901.0 -lm /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so -Wl,--end-group
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to `ffi_type_void@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to `ffi_call@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to `ffi_type_uint32@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to `ffi_type_sint32@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to `ffi_prep_cif@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to `ffi_type_pointer@LIBFFI_BASE_7.0'
collect2: error: ld returned 1 exit status
[1877/3009] Compiling C object subprojects/freetype2/libfreetype.so.6.16.0.p/src_autofit_autofit.c.o
ninja: build stopped: subcommand failed.
root@2c2ef8f4cf9d:/workdir/gst-build#
Setup
- Operating System: Ubuntu 20.04
- Device: Computer
- GStreamer Version: 1.19.1
Expected Behavior
Build successful
Observed Behavior
It fails with a wrong version of libffi for wayland-client library with all project requesting gtk-3 as a dependency.
How reproducible is the bug?
With ubuntu 20.4.
Working with ubuntu 18.04
Steps to reproduce the bug
- open terminal
- type
command
Screenshots if relevant
Solutions you have tried
adding -lffi works but using the one from the system