Re: Relocation R_X86_64_PC32 against - compile error, please assist?

I put the Who? in Mishehu <[email protected]> Sun, 18 Apr 2010 23:19:34 -0500
Newsgroups gmane.comp.video.transcode.user
Organization Cartis Solutions, Inc.
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------070801000809010308020806
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

You appear to be attempting to link in 32 bit binaries.  Typically on 
Linux systems, at least ones that have both 32 bit and 64 bit libs, the 
64 bit libs are in /lib64, /usr/lib64, and /usr/local/lib64.  Check that 
you are pointing the configure params to the proper paths.  If so, you 
might indeed need to recompile some of the dependencies with -fPIC.

-Mishehu

On 4/18/2010 16:36, Simon wrote:
> Hi There,
>
> We are trying to build transcode 1.1.5 on a debian lenny box:
>
> ./configure --enable-shared --enable-pthreads --enable-ffmpeg 
> --enable-libavcodec --enable-libav --enable-x264 
> --with-libavformat-libs=/usr/local/lib 
> --with-libavcodec-libs=/usr/local/lib --with-x264-libs=/usr/local/lib 
> --prefix=/usr/local
>
> Here is the output of configure:
>
> http://www.nzlocal.com/simon/transcode.txt
>
> But when i make to compile i get the following. I think this is 
> something todo with the fact that i have a 64bit system correct? But i 
> dont know what todo from here :(
>
> /usr/bin/ld: /usr/local/lib/libavcodec.a(dsputil_mmx.o): relocation 
> R_X86_64_PC32 against `ff_pw_20' can not be used when making a shared 
> object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [export_divx5.la <http://export_divx5.la>] Error 1
> make[2]: Leaving directory `/usr/src/transcode-1.1.5/export'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/transcode-1.1.5'
> make: *** [all] Error 2
>
> Thanks
>
> Simon


--------------070801000809010308020806
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You appear to be attempting to link in 32 bit binaries.&nbsp; Typically on
Linux systems, at least ones that have both 32 bit and 64 bit libs, the
64 bit libs are in /lib64, /usr/lib64, and /usr/local/lib64.&nbsp; Check
that you are pointing the configure params to the proper paths.&nbsp; If so,
you might indeed need to recompile some of the dependencies with -fPIC.<br>
<br>
-Mishehu<br>
<br>
On 4/18/2010 16:36, Simon wrote:
<blockquote
 cite="mid:[email protected]"
 type="cite">Hi There,<br>
  <br>
We are trying to build transcode 1.1.5 on a debian lenny box:<br>
  <br>
./configure --enable-shared --enable-pthreads --enable-ffmpeg
--enable-libavcodec --enable-libav --enable-x264
--with-libavformat-libs=/usr/local/lib
--with-libavcodec-libs=/usr/local/lib --with-x264-libs=/usr/local/lib
--prefix=/usr/local<br>
  <br>
Here is the output of configure:<br>
  <br>
  <a moz-do-not-send="true"
 href="http://www.nzlocal.com/simon/transcode.txt">http://www.nzlocal.com/simon/transcode.txt</a><br>
  <br>
But when i make to compile i get the following. I think this is
something todo with the fact that i have a 64bit system correct? But i
dont know what todo from here :( <br>
  <br>
/usr/bin/ld: /usr/local/lib/libavcodec.a(dsputil_mmx.o): relocation
R_X86_64_PC32 against `ff_pw_20' can not be used when making a shared
object; recompile with -fPIC<br>
/usr/bin/ld: final link failed: Bad value<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [<a moz-do-not-send="true" href="http://export_divx5.la">export_divx5.la</a>]
Error 1<br>
make[2]: Leaving directory `/usr/src/transcode-1.1.5/export'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/usr/src/transcode-1.1.5'<br>
make: *** [all] Error 2<br>
  <br>
Thanks<br>
  <br>
Simon<br>
</blockquote>
<br>
</body>
</html>

--------------070801000809010308020806--