Here are the changes that were made to get mapserver compiling on my 64 bit box. Hopefully this will help someone.<br><br>
<p class="MsoNormal">Here are the changes that needs to be made:</p>
<ol style="margin-top: 0cm;" start="1" type="1"><li class="MsoNormal" style="">Change
<a href="http://configure.in">configure.in</a> so that configuration file can find libgd in /usr/lib/64</li><li class="MsoNormal" style="">Set
library folder to /usr/X11R6/lib64 so that libXpm.so and libXext.so can be
found</li><li class="MsoNormal" style="">Prompt
it to load libXext</li></ol>
<p class="MsoNormal"><a name="_Toc110067388"> </a></p>
<h2 style="margin-left: 0cm; text-indent: 0cm;"><font size="2"><span style=""><span style=""><span style="">1.1<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></span></span>Configuration Changes</span></font></h2>
<ol style="margin-top: 0cm;" start="1" type="1"><li class="MsoNormal" style=""><span style="">Open up <a href="http://configure.in">configure.in</a> for editing</span></li><li class="MsoNormal" style=""><span style="">Edit file so that
</span><span style=""><span style="background-color: rgb(255, 255, 153);" class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">$GD_INCLUDE=/usr/include</span></span></span>
and </span><span style=""><span style="background-color: rgb(255, 255, 153);" class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">$GD_LIBDIR=/usr/lib64</span></span></span><span class="CodeSnippet">
<span style="border: medium none ; font-family: Tahoma; font-weight: normal;"></span></span></span></li></ol>
<ol style="margin-top: 0cm;" start="4" type="1"><li class="MsoNormal" style=""><span style="">On line 501, just before an if
statement, add these lines:</span></li></ol>
<p class="MsoNormal" style="margin-left: 108pt; text-indent: -108pt;"><span style=""><span class="CodeSnippet"><span style="border: medium none ; font-family: Tahoma; font-weight: normal;"><span style=""><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span><span style="background-color: rgb(255, 255, 153);">i.</span><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 153);">
</span></span></span></span><span style="background-color: rgb(255, 255, 153);" class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">GD_INCLUDE<span style="border: medium none ;">=/usr/include
</span></span></span><span style="border: medium none ; font-family: Tahoma; font-weight: normal;"></span></span></span></p>
<p class="MsoNormal" style="margin-left: 108pt; text-indent: -108pt;"><span style=""><span style="background-color: rgb(255, 255, 153);" class="CodeSnippet"><span style="border: medium none ; font-family: Tahoma; font-weight: normal;">
<span style=""><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span>ii.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></span></span><span style="border: medium none ;"><span style="border: medium none ;">GD_LIBDIR<span style="border: medium none ;">=<span style="border: medium none ;">/usr/lib64</span></span></span></span></span>
<span class="CodeSnippet"><span style="border: medium none ; font-family: Tahoma; font-weight: normal;"></span></span></span></p>
<ol style="margin-top: 0cm;" start="3" type="1"><li class="MsoNormal" style=""><span style="">Parse <a href="http://configure.in">configure.in</a> to make
configuration script.</span></li><ol style="margin-top: 0cm;" start="1" type="a"><li class="MsoNormal" style=""><span style="background-color: rgb(255, 255, 153);"><span class="CodeSnippet"><span style="border: medium none ;">
<span style="border: medium none ;">%> <span style="border: medium none ;">autoconf <span style="border: medium none ;">–<span style="border: medium none ;">o <span style="border: medium none ;">configure2 configu<span style="border: medium none ;">
r<span style="border: medium none ;"><a href="http://e.in">e.in</a></span></span></span></span></span></span></span></span></span></span><span style=""></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;">
</span></span></span></li></ol></ol>
<ol style="margin-top: 0cm;" start="5" type="1"><li class="MsoNormal" style=""><span style="">Run configure2 with normal options and <span style="background-color: rgb(255, 255, 153);">--with-xpm=/usr/X11R6/lib64</span>.
<span style=""> </span>This will produce<span style=""> </span>'Makefile' file</span></li><ol style="margin-top: 0cm; background-color: rgb(255, 255, 153);" start="1" type="a"><li class="MsoNormal" style=""><span style="">
<span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">%> <span style="border: medium none ;">./</span></span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;">
<span style="border: medium none ;">configure2
--with-gd=/usr/local<span style="border: medium none ;"> \</span></span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"></span></span></span></li></ol></ol>
<p class="MsoNormal" style="margin-left: 144pt; background-color: rgb(255, 255, 153);"><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">--with-ogr=/home/isharema/usr/bin/gdal-config
</span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;"> \</span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;">
</span></span></span></p>
<p class="MsoNormal" style="margin-left: 144pt; background-color: rgb(255, 255, 153);"><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;"><span style=""> </span>
--with-gdal=/home/isharema/us<span style="border: medium none ;">r/bin/gdal-config</span></span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">
\</span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"></span></span></span></p>
<p class="MsoNormal" style="margin-left: 144pt; background-color: rgb(255, 255, 153);"><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;"><span style=""> </span>
--with-proj=$HOME/usr</span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;"> \</span></span></span></span><span style=""><span class="CodeSnippet">
<span style="border: medium none ;"></span></span></span></p>
<p class="MsoNormal" style="margin-left: 144pt; background-color: rgb(255, 255, 153);"><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;"><span style=""> </span>
--with-freetype </span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">\</span></span></span></span><span style=""><span class="CodeSnippet">
<span style="border: medium none ;"></span></span></span></p>
<p class="MsoNormal" style="margin-left: 144pt; background-color: rgb(255, 255, 153);"><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">--with-jpeg
</span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">\</span></span></span></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;">
</span></span></span></p>
<p class="MsoNormal" style="margin-left: 144pt;"><span style="background-color: rgb(255, 255, 153);"><span class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">--with-xpm=/usr/X11R6/
<span style="border: medium none ;">l<span style="border: medium none ;">ib64</span></span></span></span></span></span><span style=""></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"></span>
</span></span></p>
<ol style="margin-top: 0cm;" start="6" type="1"><li class="MsoNormal" style=""><span style="">Open Mapfile for editing</span></li><ol style="margin-top: 0cm;" start="1" type="a"><li class="MsoNormal" style=""><span style="">
Go to line <i style="">211</i> and <i style="">212</i></span></li><li class="MsoNormal" style=""><span style="">Include –lXext to load Xext library. <span style=""> </span>This will make both CFLAGS and CXXFLAGS
equal to</span></li></ol></ol>
<p class="MsoNormal" style="margin-left: 108pt; text-indent: -108pt;"><span style=""><span class="CodeSnippet"><span style="border: medium none ; font-family: Tahoma; font-weight: normal;"><span style=""><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span>i.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></span></span></span><span style="background-color: rgb(255, 255, 153);"> </span></span><span style=""><span style="background-color: rgb(255, 255, 153);" class="CodeSnippet"><span style="border: medium none ;"><span style="border: medium none ;">
-O2 -fPIC -Wall -lXext<span style=""> </span>$(FLAGS)</span></span></span><span class="CodeSnippet"><span style="border: medium none ; font-family: Tahoma; font-weight: normal;"></span></span></span></p>
<ol style="margin-top: 0cm;" start="7" type="1"><li class="MsoNormal" style=""><span style="">type make</span></li><ol style="margin-top: 0cm;" start="1" type="a"><li class="MsoNormal" style=""><span style=""><span class="CodeSnippet">
<span style="border: medium none ;"><span style="border: medium none ;"><span style=""> </span><span style="border: medium none ; background-color: rgb(255, 255, 153);">%><span style="border: medium none ;"> <span style="border: medium none ;">
make</span></span></span></span></span></span><span class="CodeSnippet"><span style="border: medium none ; font-family: Tahoma; font-weight: normal;"></span></span></span></li></ol></ol>
<p class="MsoNormal"><span style=""></span><span style=""><span class="CodeSnippet"><span style="border: medium none ;"> </span></span></span></p>
<p class="MsoNormal"><span style="">That's it!</span></p>
Xin<br>