After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 710451 - yadif: OSX linking fails because of unresolved symbols: "pb_1" and "pw_1" unreferenced
yadif: OSX linking fails because of unresolved symbols: "pb_1" and "pw_1" unr...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Mac OS
: Normal major
: 1.2.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-10-18 13:20 UTC by hmachefe
Modified: 2013-11-01 09:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description hmachefe 2013-10-18 13:20:03 UTC
Building gstreamer-1-1-4 on my own (manually == without CERBERO) I managed to get everything compiled until "gst-plugins-bad" :
 
for which LINK is broken at the end : 
... 
  CCLD     libgstyadif.la 
Undefined symbols for architecture x86_64: 
  "pb_1", referenced from: 
      _filter_line_x86_64 in libgstyadif_la-yadif.o 
  "pw_1", referenced from: 
      _filter_line_x86_64 in libgstyadif_la-yadif.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It happens not only as well with more recent version 1.2.0 of gst-plugins-bad.

More details here : http://gstreamer-devel.966125.n4.nabble.com/gst-plugins-bad-1-1-4-Mac-LINK-failure-gt-quot-pb-1-quot-and-quot-pw-1-quot-unreferenced-td4662679.html
Comment 1 Sebastian Dröge (slomo) 2013-10-31 21:15:31 UTC
For OSX/iOS these symbols probably have to be prefixed with an underscore. I'll take a look at that tomorrow if nobody is faster.
Comment 2 Sebastian Dröge (slomo) 2013-11-01 09:42:08 UTC
commit 010fd8a471bc60ea1490d43bc6d32d5dcc77c18d
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Fri Nov 1 10:41:16 2013 +0100

    yadif: Fix compiler warning caused by specifying const twice
    
      yadif.c:49:24: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
      DECLARE_ASM_CONST (16, const xmm_reg, pb_1) = {
                           ^
      yadif.c:33:50: note: expanded from macro 'DECLARE_ASM_CONST'
      #define DECLARE_ASM_CONST(n,t,v)    static const t __attribute__((used)) __attribute__ ((aligned (n))) v
                                                     ^
      yadif.c:52:24: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
      DECLARE_ASM_CONST (16, const xmm_reg, pw_1) = {
                           ^
      yadif.c:33:50: note: expanded from macro 'DECLARE_ASM_CONST'
      #define DECLARE_ASM_CONST(n,t,v)    static const t __attribute__((used)) __attribute__ ((aligned (n)))

commit 411cf48db7a2eeaf3c22ef8d47ddc1781e7ede6d
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Fri Nov 1 10:40:06 2013 +0100

    yadif: Fix build with XCode
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710451