[Bug 774424] New: Fail to build with meson on FreeBSD because -lexecinfo is not used

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 14 19:18:18 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=774424

            Bug ID: 774424
           Summary: Fail to build with meson on FreeBSD because -lexecinfo
                    is not used
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: lantw44 at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

FreeBSD has execinfo.h and backtrace-related functions available in its default
installation, but using it requires linking with -lexecinfo. Building gstreamer
with meson 0.35.1 on FreeBSD fails with linking error:

gst/gstreamer-1.0 at sha/gstinfo.c.o: In function `generate_backtrace_trace':
/home/lantw44/gnome/build/gstreamer/../../source/gstreamer/gst/gstinfo.c:2567:
undefined reference to `backtrace_symbols'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.

I will attach a patch to fix the problem, but it requires meson >= 0.36.0 to
work properly because has_function check in older versions use the wrong way to
write the test program, which causes the statement used to reference the
function to be deleted by clang in generated code.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list