GNOME Bugzilla – Bug 729352
Build fail at linking time for some libraries
Last modified: 2014-08-01 09:05:48 UTC
Created attachment 275565 [details] Log of a failed build I'm trying to build gstreamer-vaapi for Rosa Fresh R3 x86_64 but the building process fails at the linking time (undefined reference) for the libraries listed below: libgstvaapi_drm_1.0_la-gstvaapiwindow_drm.o, libgstvaapi_x11_1.0_la-gstvaapipixmap_x11.o, libgstvaapi_x11_1.0_la-gstvaapiutils.o and libgstvaapi_wayland_1.0_la-gstvaapiwindow_wayland.o For the first ones ld fails when searching for "gst_debug_log" and "_gst_debug_min" symbols, while for the last one it fails in finding the "gst_video_info_set_format" symbol. AFAICT the first two symbols are from libgstream, while the last on is from libgstvideo, so there are really two issues here: 1) ld not finding a couple of debug symbols (and consequently harmless in normal use); 2) ld not finding a possibly used symbol. I could force ld to ignore all the undefined symbols, but the case 2 make me a little weary about that because it could lead to runtime failures. I'm using gcc 4.7.4, gstreamer-1.0 1.0.10, libdrm 2.4.53, wayland 1.4.0 and libva 1.3.0.
Hi, I suggest you try to build without the libtool patches first. i.e. the original (unpatched) gstreamer-vaapi 0.5.8 sources. Thanks.
Huh?? I'm using the original sources, no patch added... Libtool 2.4.2 here. I can force the build process to ignore undefined symbols from errors ld, but I would like to avoid that because it opens the door for weird errors at run-time...
Created attachment 282232 [details] [review] build: fix with --no-undefined linker flags Please try the attached patch. I presume this might help? Thanks.
Yes, it completely solves the issue: marking fixed. Thank you. Is the patch already merged in the new 0.5.9 sources?
(In reply to comment #4) > Yes, it completely solves the issue: > marking fixed. Thank you. > > Is the patch already merged in the new 0.5.9 sources? Not yet, so I am re-opening so that I don't forget to add it to the patch queue. :)
commit 7ac501d026036887c114b28bc9fb4aabc557e91a Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Date: Fri Aug 1 06:32:32 2014 +0200 build: fix with --no-undefined linker flags. https://bugzilla.gnome.org/show_bug.cgi?id=729352