Page 1 of 1

ERROR shared object; recompile with -fPIC ??

Posted: Sun Mar 04, 2012 9:37 am
by Joshua-Brown
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

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

Posted: Sat Dec 22, 2012 1:48 pm
by mcurran
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

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

Posted: Tue Jan 22, 2013 4:36 am
by mcurran
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??????

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

Posted: Tue Jan 22, 2013 6:22 am
by mockturtl
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

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

Posted: Wed Jan 23, 2013 4:20 pm
by mcurran
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.

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

Posted: Wed Jan 23, 2013 5:59 pm
by mcurran
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

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

Posted: Wed Jan 23, 2013 8:19 pm
by mockturtl
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.

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

Posted: Mon Jan 28, 2013 9:33 pm
by mcurran
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.

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

Posted: Mon Jan 28, 2013 11:23 pm
by mockturtl
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.