libx264_plugin.so fails to compile

*nix specific usage questions
CulleyS
New Cone
New Cone
Posts: 3
Joined: 06 Oct 2007 16:40

libx264_plugin.so fails to compile

Postby CulleyS » 06 Oct 2007 16:56

This my first attempt at building 0.9 from source. Now, all of my problems could be because I'm running Ubuntu 7.10 (gutsy) on AMD 64 architecture.

This is the error report I get during compilation:

LINK : libx264_plugin.so
/usr/bin/ld: /usr/local/lib/libx264.a(common.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libx264.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Reaping losing child 0x00702400 PID 27597
Removing child 0x00702400 PID 27597 from chain.
Reaping losing child 0x006b5000 PID 22332
Removing child 0x006b5000 PID 22332 from chain.
Reaping losing child 0x00654320 PID 3044
Removing child 0x00654320 PID 3044 from chain.
Reaping losing child 0x0067a320 PID 15389
Removing child 0x0067a320 PID 15389 from chain.
Reaping losing child 0x0067a7a0 PID 15388
make: *** [all] Error 2
Removing child 0x0067a7a0 PID 15388 from chain.

I ran configure again with as "./configure --with-pic, but received the same error message. I can provide the config.log if necessary? Here's a snippit with version info:

uname -m = x86_64
uname -r = 2.6.22-12-generic
#define VERSION_MESSAGE "0.9.0-svn Grishenko"
#define COPYRIGHT_MESSAGE "VLC media player - version 0.9.0-svn Grishenko - (c) 1996-2007 the VideoLAN team"
#define CONFIGURE_LINE "./configure '--with-pic'"
#define PACKAGE_VERSION_MAJOR "0"
#define PACKAGE_VERSION_MINOR "9"
#define PACKAGE_VERSION_REVISION "0"
#define PACKAGE_VERSION_EXTRA "svn"
#define VLC_COMPILER "gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)"
#define MODULE_SUFFIX "__0_9_0b"
#define MODULE_SYMBOL 0_9_0b

Any suggestions would be appreciated. :)

Thanks,

Culley

kmf31
Cone that earned his stripes
Cone that earned his stripes
Posts: 308
Joined: 11 Mar 2007 21:47

Re: libx264_plugin.so fails to compile

Postby kmf31 » 06 Oct 2007 18:53

The solution is in the error messages:
"when making a shared object; recompile" x264 "with -fPIC".

I would to try to first recompile x264 with: "--enable-pic" and also with "--enable-shared" and then recompile vlc.


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

Who is online

Users browsing this forum: No registered users and 10 guests