Page 1 of 1

COMPILING ERROR 64-bit

Posted: 17 Jul 2011 01:12
by LSTOIC
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.

Re: COMPILING ERROR 64-bit

Posted: 17 Jul 2011 09:13
by Rémi Denis-Courmont
FFmpeg not compiled correctly as PIC, cannot be used in VLC.

Re: COMPILING ERROR 64-bit

Posted: 22 Jul 2011 15:57
by LSTOIC
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 ;-(

Re: COMPILING ERROR 64-bit

Posted: 23 Jul 2011 10:29
by Rémi Denis-Courmont
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.

Re: COMPILING ERROR 64-bit

Posted: 27 Dec 2011 22:40
by carver
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