<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>plee.me &#187; Makefile</title>
	<atom:link href="http://blog.plee.me/tag/makefile/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.plee.me</link>
	<description>About software, technology and random things</description>
	<lastBuildDate>Wed, 04 Jan 2012 18:52:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Compiling Exim and MySQL on a (CentOS) 64 bit Environment</title>
		<link>http://blog.plee.me/2009/06/compiling-exim-and-mysql-on-a-64-bit-environment/</link>
		<comments>http://blog.plee.me/2009/06/compiling-exim-and-mysql-on-a-64-bit-environment/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 16:07:32 +0000</pubDate>
		<dc:creator>pl</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[-lmysqlclient]]></category>
		<category><![CDATA[64]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[error 1]]></category>
		<category><![CDATA[error 2]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[exit status]]></category>
		<category><![CDATA[ld]]></category>
		<category><![CDATA[lib64]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[LOOKUP_INCLUDE]]></category>
		<category><![CDATA[LOOKUP_LIBS]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[Makefile]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://blog.plee.me/?p=56</guid>
		<description><![CDATA[Hey there! I was recently trying to compile Exim with MySQL support on a CentOS 5.x 64 bit system. However, I had my dear share of trouble when it came to adjust the Local/Makefile for the 64 bit architecture. The following error was what I got stuck on: ... gcc dkim-exim.c awk '{ print ($1+1) [...]]]></description>
			<content:encoded><![CDATA[<p>Hey there!</p>
<p>I was recently trying to compile Exim with MySQL support on a CentOS 5.x 64 bit system. However, I had my dear share of trouble when it came to adjust the <em>Local/Makefile</em> for the 64 bit architecture.</p>
<p>The following error was what I got stuck on:</p>
<pre>...
gcc dkim-exim.c

awk '{ print ($1+1) }' cnumber.h &gt; cnumber.temp
rm -f cnumber.h; mv cnumber.temp cnumber.h
gcc version.c
rm -f exim
gcc -o exim
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/root/incoming/exim-4.69/build-Linux-x86_64'
make: *** [go] Error 2</pre>
<p>Turns out it was easier to solve than I thought. The point was that it was looking for 32 bit libraries where it should have been looking for 64 bit ones. I adjusted the following lines in <em>Local/Makefile</em>:</p>
<pre>LOOKUP_INCLUDE=-I /usr/include/mysql
LOOKUP_LIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm</pre>
<p>to say this:</p>
<pre>LOOKUP_INCLUDE=-I /usr/include/mysql
LOOKUP_LIBS=-L/usr/lib64/mysql -lmysqlclient -lz -lm</pre>
<p>And - hurray! - it works <img src='http://blog.plee.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Be careful though, it seems to need the <em>/mysql</em> after <em>/usr/lib64</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.plee.me/2009/06/compiling-exim-and-mysql-on-a-64-bit-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

