COMPILING ERROR 64-bit

*nix specific usage questions
LSTOIC
New Cone
New Cone
Posts: 5
Joined: 17 Jul 2011 00:51

COMPILING ERROR 64-bit

Postby LSTOIC » 17 Jul 2011 01:12

Purposely separated this post from prior : SUSE 11.4 64-bit w/KDE compile errors for latest VLC etc

Downloaded all source-code. Tried compiling dependencies both from VideoLan.Org's host as well as the particular dependencies' individual hosts (e.g. ffmpeg I tried to compile from both VideoLan's tarball as well as from it's producer's)

Two errors arose, the "primary" is when using make on the VLC directory

{
make[5]: Entering directory `/home/argon/vlc-1.1.10/modules/access'
CCLD libaccess_avio_plugin.la
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/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

}


The FFMPEG had various compilation problems most of which were solved, to where it finally spat out without an error. So, I will ignore that for now.

Thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: COMPILING ERROR 64-bit

Postby Rémi Denis-Courmont » 17 Jul 2011 09:13

FFmpeg not compiled correctly as PIC, cannot be used in VLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

LSTOIC
New Cone
New Cone
Posts: 5
Joined: 17 Jul 2011 00:51

Re: COMPILING ERROR 64-bit

Postby LSTOIC » 22 Jul 2011 15:57

I did do for example
./configure --extra-cflags=-fPIC

and tried make again, that did not work. i have tried some obvious maneuvers, hence my frustration.

basically, I should not even have to be trying to recompile, because VLC has a "One-Click Install" for SUSE 11.4 and that did not report any errors, so it should have worked... at the very least it should have had some note next to the button saying "warning this doesn't really work we are lying to you"

;-)

i mean ;-(

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: COMPILING ERROR 64-bit

Postby Rémi Denis-Courmont » 23 Jul 2011 10:29

Complain to the packagers of the Suse RPM's.

But ultimately, the real problem is that Suse (and Fedora) are unfriendly distros for multimedia applications like VLC. They lack a number of important libraries. It is no accident that Linux VLC developers are almost exclusively using Debian or Ubuntu.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

carver
New Cone
New Cone
Posts: 2
Joined: 31 Aug 2009 18:55
Operating System: win32/wince/vxworks
Location: kiev.ua
Contact:

Re: COMPILING ERROR 64-bit

Postby carver » 27 Dec 2011 22:40

the same problem with ubuntu server 10.10 amd64.
1) so, I install ubuntu-server 11.10 amd64.
2) get vlc drom git, and vlc compiled fine
3) but later I get ffmpeg from git, and ffmpeg compiled fine
4) try compile vlc again, and again has error

Code: Select all

CCLD libaccess_avio_plugin.la /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[5]: *** [libaccess_avio_plugin.la] Error 1
/carv


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 29 guests