<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Text relocation remains against symbol, libx264</title>
	<atom:link href="http://blogs.everycity.co.uk/alasdair/2009/05/text-relocation-remains-against-symbol-libx264/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.everycity.co.uk/alasdair/2009/05/text-relocation-remains-against-symbol-libx264/</link>
	<description></description>
	<pubDate>Tue, 07 Feb 2012 05:25:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: mismis</title>
		<link>http://blogs.everycity.co.uk/alasdair/2009/05/text-relocation-remains-against-symbol-libx264/#comment-618</link>
		<dc:creator>mismis</dc:creator>
		<pubDate>Thu, 06 Oct 2011 15:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=212#comment-618</guid>
		<description>it works for me!

I used blastwave csw stuff for compilation:
&lt;code&gt;
export LDFLAGS='-L/opt/csw/lib -R/opt/csw/lib'
export CFLAGS='-I/opt/csw/include'
export CC='/opt/csw/gcc4/bin/gcc'
export PKG_CONFIG_PATH='/opt/csw/lib/pkgconfig'
&lt;/code&gt;

for x264-snapshot-20111004-2245 i did:
&lt;code&gt;
./configure --prefix=/opt/csw --enable-shared --enable-pic
&lt;/code&gt;

then modified config.mak:
&lt;code&gt;
LD=/opt/csw/gcc4/bin/gcc -shared -o
LDFLAGS=-L/opt/csw/lib -R/opt/csw/lib -lm -lpthread -mimpure-text -lrt
&lt;/code&gt;

then shared lib successfully got compiled by issuing /opt/csw/bin/gmake

After this gmake install fails you have to copy manually the compiled objects to the right place:
&lt;code&gt;
cp libx264.so.118 /opt/csw/lib
cp libx264.1 /opt/csw/lib
cp x264.h /opt/csw/include
cp x264_config.h /opt/csw/include
cp x264.pc /opt/csw/lib/pkgconfig
&lt;/code&gt;

also modify /opt/csw/lib/libx264.so symlink to point to the new version!</description>
		<content:encoded><![CDATA[<p>it works for me!</p>
<p>I used blastwave csw stuff for compilation:<br />
<code><br />
export LDFLAGS='-L/opt/csw/lib -R/opt/csw/lib'<br />
export CFLAGS='-I/opt/csw/include'<br />
export CC='/opt/csw/gcc4/bin/gcc'<br />
export PKG_CONFIG_PATH='/opt/csw/lib/pkgconfig'<br />
</code></p>
<p>for x264-snapshot-20111004-2245 i did:<br />
<code><br />
./configure --prefix=/opt/csw --enable-shared --enable-pic<br />
</code></p>
<p>then modified config.mak:<br />
<code><br />
LD=/opt/csw/gcc4/bin/gcc -shared -o<br />
LDFLAGS=-L/opt/csw/lib -R/opt/csw/lib -lm -lpthread -mimpure-text -lrt<br />
</code></p>
<p>then shared lib successfully got compiled by issuing /opt/csw/bin/gmake</p>
<p>After this gmake install fails you have to copy manually the compiled objects to the right place:<br />
<code><br />
cp libx264.so.118 /opt/csw/lib<br />
cp libx264.1 /opt/csw/lib<br />
cp x264.h /opt/csw/include<br />
cp x264_config.h /opt/csw/include<br />
cp x264.pc /opt/csw/lib/pkgconfig<br />
</code></p>
<p>also modify /opt/csw/lib/libx264.so symlink to point to the new version!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blogs.everycity.co.uk/alasdair/2009/05/text-relocation-remains-against-symbol-libx264/#comment-213</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 10 Feb 2010 20:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=212#comment-213</guid>
		<description>If you use the -mimpure-text option, your libx264.so.67 gets linked. But, when you link the lib to an executable, and attempt to execute it, the same error is likely to occur agaain:
ld.so.1: : fatal: relocation error: R-AMD64_32: file libx264.so.67: ...</description>
		<content:encoded><![CDATA[<p>If you use the -mimpure-text option, your libx264.so.67 gets linked. But, when you link the lib to an executable, and attempt to execute it, the same error is likely to occur agaain:<br />
ld.so.1: : fatal: relocation error: R-AMD64_32: file libx264.so.67: &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

