recompile with -fPIC error.

This forum is about all development around libVLC.
anil_jangam
New Cone
New Cone
Posts: 5
Joined: 13 Jun 2014 02:34

recompile with -fPIC error.

Postby anil_jangam » 13 Jun 2014 02:43

Hi,

I am trying to compile the vlc code based using the build procedure explained here.

https://wiki.videolan.org/UnixCompile/

After following the "Contrib method" for third party libraries, I am facing the following compilation error. I tried recompile after I compiled the FFmpeg module by assing -fPIC CFLAG option in the corresponding modules Makefile, but it did not help.

Erro rmessage is:

Code: Select all

rtpfmt.c:486:29: warning: ‘c2’ may be used uninitialized in this function [-Wuninitialized] rtpfmt.c:486:29: warning: ‘c1’ may be used uninitialized in this function [-Wuninitialized] CC libstream_out_rtp_plugin_la-rtcp.lo CC libstream_out_rtp_plugin_la-rtsp.lo CC libstream_out_rtp_plugin_la-vod.lo CCLD libstream_out_rtp_plugin.la CC libstream_out_raop_plugin_la-raop.lo In file included from /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gcrypt.h:32:0, from raop.c:33: /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gpg-error.h:30:7: warning: "_MSC_VER" is not defined [-Wundef] In file included from raop.c:33:0: /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gcrypt.h:105:5: warning: "_GCRT_GCC_VERSION" is not defined [-Wundef] In file included from raop.c:43:0: ../../include/vlc_gcrypt.h:33:1: warning: ‘gcry_thread_cbs’ is deprecated (declared at /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gcrypt.h:213) [-Wdeprecated-declarations] CCLD libstream_out_raop_plugin.la CC libstream_out_chromaprint_plugin_la-chromaprint.lo CXX libstream_out_chromaprint_plugin_la-dummy.lo CXXLD libstream_out_chromaprint_plugin.la /usr/bin/ld: /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/lib/libavcodec.a(fft.o): relocation R_X86_64_PC32 against symbol `ff_cos_32' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[5]: *** [libstream_out_chromaprint_plugin.la] Error 1 make[5]: Leaving directory `/home/anilj/workspace/tools/vlc/modules/stream_out' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/anilj/workspace/tools/vlc/modules/stream_out'
Can someone please comment/help as to what is missing here? I am stuck and need to get this through.

Regards,
/anil.

anil_jangam
New Cone
New Cone
Posts: 5
Joined: 13 Jun 2014 02:34

Re: recompile with -fPIC error.

Postby anil_jangam » 13 Jun 2014 21:01

Does it asking to recompile the dependent library (libavcodec.a) with -fPIC or it is asking to build vlc with -fPIC? Note that "Contrib method" as provided in the build page, builds all dependencies in satic form.

Thanks

anil_jangam
New Cone
New Cone
Posts: 5
Joined: 13 Jun 2014 02:34

Re: recompile with -fPIC error.

Postby anil_jangam » 13 Jun 2014 23:36

This was resolved after compiling on Ubuntu 12.04 fresh install. I was using 14.04 and perhaps the repo was culprit.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 39 guests