<html><head></head><body>Err, isn't Bsymbolic already enabled for all VLC binaries? And why is this problem only affecting chromaprint?<br><br><div class="gmail_quote">Le 15 mai 2018 12:38:56 GMT+03:00, Konstantin Pavlov <thresh@videolan.org> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">When using contribs, chromaprint links to static ffmpeg, which results<br>in the following linking error:<br><br>CXXLD    libstream_out_chromaprint_plugin.la<br>/usr/bin/ld: /vlc/contrib/x86_64-linux-gnu/lib/libavcodec.a(fft.o):<br>relocation R_X86_64_PC32 against symbol `ff_cos_32' can not be used when<br>making a shared object; recompile with -fPIC<br>/usr/bin/ld: final link failed: Bad value<br><br>Even though ffmpeg is compiled as PIC. The solution to the problem is<br>documented in [1].<br><br>[1] <a href="https://ffmpeg.org/platform.html#Advanced-linking-configuration">https://ffmpeg.org/platform.html#Advanced-linking-configuration</a><br>---<br> configure.ac                   | 5 ++++-<br> modules/stream_out/Makefile.am | 2 +-<br> 2 files changed, 5 insertions(+), 2 deletions(-)<br><br>diff --git a/configure.ac b/configure.ac<br>index 4a53c2ea2c..f75e696604 100644<br>--- a/configure.ac<br>+++ b/configure.ac<br>@@ -3622,7 +3622,10 @@ dnl  chromaprint audio track fingerprinter<br> dnl<br> m4_pushdef([libchromaprint_version], 0.6.0)<br> PKG_WITH_MODULES([CHROMAPRINT],[libchromaprint >= libchromaprint_version],<br>-    VLC_ADD_PLUGIN([stream_out_chromaprint]),<br>+    VLC_ADD_PLUGIN([stream_out_chromaprint])<br>+    AS_IF([test -n "${ac_cv_ld_bsymbolic}"], [<br>+      VLC_ADD_LDFLAGS([chromaprint],[${ac_cv_ld_bsymbolic}])<br>+    ]),<br>     AS_IF([test "${enable_chromaprint}" = "yes"],<br>         [AC_MSG_ERROR(Library [libchromaprint >= libchromaprint_version] needed for [chromaprint] was not found)],<br>         [AC_MSG_WARN(Library [libchromaprint >= libchromaprint_version] needed for [chromaprint] was not found)]<br>diff --git a/modules/stream_out/Makefile.am b/modules/stream_out/Makefile.am<br>index 8a1b42d34d..02aa672c42 100644<br>--- a/modules/stream_out/Makefile.am<br>+++ b/modules/stream_out/Makefile.am<br>@@ -62,7 +62,7 @@ endif<br> # Chromaprint plugin<br> libstream_out_chromaprint_plugin_la_SOURCES = stream_out/chromaprint.c stream_out/chromaprint_data.h dummy.cpp<br> libstream_out_chromaprint_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CHROMAPRINT_CFLAGS)<br>-libstream_out_chromaprint_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(soutdir)'<br>+libstream_out_chromaprint_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(soutdir)' $(LDFLAGS_chromaprint)<br> libstream_out_chromaprint_plugin_la_LIBADD = $(CHROMAPRINT_LIBS)<br> EXTRA_LTLIBRARIES += libstream_out_chromaprint_plugin.la<br> sout_LTLIBRARIES += $(LTLIBstream_out_chromaprint)</pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>