ERROR shared object; recompile with -fPIC ??

Questions about applications and software
Forum rules
Before you post please read how to get help

ERROR shared object; recompile with -fPIC ??

Postby Joshua-Brown on Sun Mar 04, 2012 9:37 am

This is the error I got when I tried to 'make' wxsvg-1.1.6
How do I fix this? Any thoughts?


/usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavformat.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libwxsvg.la] Error 1
make[2]: Leaving directory `/home/brown/Downloads/wxsvg-1.1.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brown/Downloads/wxsvg-1.1.6/src'
make: *** [all-recursive] Error 1
Joshua-Brown
Level 1
Level 1
 
Posts: 2
Joined: Thu Mar 01, 2012 10:23 am

Linux Mint is funded by ads and donations.
 

Re: ERROR shared object; recompile with -fPIC ??

Postby mcurran on Sat Dec 22, 2012 1:48 pm

bump. Trying to build vlc:

/usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavformat.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[5]: *** [libaccess_avio_plugin.la] Error 1
make[5]: Leaving directory `/opt/vlc/modules/access'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/vlc/modules/access'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/vlc/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/vlc'
make: *** [all] Error 2
IBM IntelliStation Z Pro [6227-ACU]
Intel Xeon (3.4GHz) | Irwindale (x2)
nVIDIA GTX 460 (1024MB-DDR5)
6GB RAM (800MHz)
MULTI-BOOT: Metro/Mountain Lion/LMDE
    User avatar
    mcurran
    Level 3
    Level 3
     
    Posts: 100
    Joined: Sun Jan 20, 2008 10:32 pm

    Re: ERROR shared object; recompile with -fPIC ??

    Postby mcurran on Tue Jan 22, 2013 4:36 am

    NICE SUPPORT HERE, ALL THE TIME! rainbows' NONE WHATSOEVER. YOU'RE ALL A BUNCH OF rainbows' MUTES!

    If anyone, anyone can tell me the package that handles the stupid little gui login screen in mint, then please let me know. I'm running LMDE and I wan to be able to run as root, easily, and be able to choose my window manager at the same time. This distro should revert from the norm, and keep apps that force non-root use out of the distro. all-together. I know someone out there can help. Just name it, one package, what is it??????
    IBM IntelliStation Z Pro [6227-ACU]
    Intel Xeon (3.4GHz) | Irwindale (x2)
    nVIDIA GTX 460 (1024MB-DDR5)
    6GB RAM (800MHz)
    MULTI-BOOT: Metro/Mountain Lion/LMDE
      User avatar
      mcurran
      Level 3
      Level 3
       
      Posts: 100
      Joined: Sun Jan 20, 2008 10:32 pm

      Re: ERROR shared object; recompile with -fPIC ??

      Postby mockturtl on Tue Jan 22, 2013 6:22 am

      If anyone, anyone can tell me the package that handles the stupid little gui login screen in mint

      The GUI login is a "display manager." It's probably mdm (Mint), but could be gdm3 (GNOME), kdm (KDE), xdm, lightdm, ... more info.

      Configuration can be more or less exposed through themes (e.g., mdmsetup).

      Code: Select all
      I'm running LMDE and I wan to be able to run as root, easily, and be able to choose my window manager at the same time. This distro should revert from the norm, and keep apps that force non-root use out of the distro.
      GUI programs shouldn't run as root; use gksu, gksudo (or kdesu, kdesudo) instead of su, sudo. That's "the norm" because it's impossible to secure (but it isn't "forced").

      Trying to build vlc


      Code: Select all
      apt build-dep vlc  # install prerequisites
      apt source vlc     # download the source
      cd vlc-x.y.z
      apt build -b       # compile .deb files to parent directory
      Image
      User avatar
      mockturtl
      Level 4
      Level 4
       
      Posts: 442
      Joined: Sat Oct 09, 2010 8:51 pm

      Re: ERROR shared object; recompile with -fPIC ??

      Postby mcurran on Wed Jan 23, 2013 4:20 pm

      yeah, it complains about -fPIC and muxer or whatever. I'm trying to build it now and have been for hours. I even tried linking luac to a previous version, because I heard there were problems compiling with 5.2 and fPIC, but, nothing working yet. THanks for the help though.
      IBM IntelliStation Z Pro [6227-ACU]
      Intel Xeon (3.4GHz) | Irwindale (x2)
      nVIDIA GTX 460 (1024MB-DDR5)
      6GB RAM (800MHz)
      MULTI-BOOT: Metro/Mountain Lion/LMDE
        User avatar
        mcurran
        Level 3
        Level 3
         
        Posts: 100
        Joined: Sun Jan 20, 2008 10:32 pm

        Re: ERROR shared object; recompile with -fPIC ??

        Postby mcurran on Wed Jan 23, 2013 5:59 pm

        Also, building the source from aptitude does the same thing. relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object
        IBM IntelliStation Z Pro [6227-ACU]
        Intel Xeon (3.4GHz) | Irwindale (x2)
        nVIDIA GTX 460 (1024MB-DDR5)
        6GB RAM (800MHz)
        MULTI-BOOT: Metro/Mountain Lion/LMDE
          User avatar
          mcurran
          Level 3
          Level 3
           
          Posts: 100
          Joined: Sun Jan 20, 2008 10:32 pm

          Re: ERROR shared object; recompile with -fPIC ??

          Postby mockturtl on Wed Jan 23, 2013 8:19 pm

          mcurran wrote:Also, building the source from aptitude does the same thing. relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object
          Googling the error indicates it's been a problem in Arch and Maverick / Julia.

          http://trac.videolan.org/vlc/ticket/6729
          As the text says, you need to recompile your FFmpeg/libavcodec/libavformat with pic enabled.

          I can confirm my steps above work in Debian testing, with no extra gymnastics.
          Image
          User avatar
          mockturtl
          Level 4
          Level 4
           
          Posts: 442
          Joined: Sat Oct 09, 2010 8:51 pm

          Re: ERROR shared object; recompile with -fPIC ??

          Postby mcurran on Mon Jan 28, 2013 9:33 pm

          Yeah, sorry, I forgot to post my fix.

          I just downloaded the source for libav and compiled it with --enable-pic, installed it, then I compiled and installed vlc with --enable-run-as-root, which was my objective.

          As for the GUI not allowing me to login as root, I just removed mdm, which didn't effect my window manager setup at all, as far as I know. Just removed what was previously a little GUI for the startx command "gdm", now "mdm".

          Would be cool to test out gnome3 on LMDE. I'm debating on trying to install it now. I'm not sure if it will break my mate setup though, or leave it alone. Would be cool to have gnome3 as a separate option like cinnamon.
          IBM IntelliStation Z Pro [6227-ACU]
          Intel Xeon (3.4GHz) | Irwindale (x2)
          nVIDIA GTX 460 (1024MB-DDR5)
          6GB RAM (800MHz)
          MULTI-BOOT: Metro/Mountain Lion/LMDE
            User avatar
            mcurran
            Level 3
            Level 3
             
            Posts: 100
            Joined: Sun Jan 20, 2008 10:32 pm

            Re: ERROR shared object; recompile with -fPIC ??

            Postby mockturtl on Mon Jan 28, 2013 11:23 pm

            Glad you got VLC sorted out.

            mcurran wrote:As for the GUI not allowing me to login as root, I just removed mdm, which didn't effect my window manager setup at all, as far as I know.
            It won't have. The WM (metacity / mutter) is independent of the DM (session launcher).

            Would be cool to test out gnome3 on LMDE. I'm debating on trying to install it now. I'm not sure if it will break my mate setup though, or leave it alone. Would be cool to have gnome3 as a separate option like cinnamon.
            It won't break your current setup -- the idea of MATE was to avoid conflicts by rebranding everything. If you have cinnamon installed, gnome-shell won't add much.
            Image
            User avatar
            mockturtl
            Level 4
            Level 4
             
            Posts: 442
            Joined: Sat Oct 09, 2010 8:51 pm

            Linux Mint is funded by ads and donations.
             

            Return to Software & Applications

            Who is online

            Users browsing this forum: UgoRipley and 24 guests