Hi Andy,<br><br>I tried modifying both the Makefile.in.Linux as well as the regular makefile.  I can see -fPIC on the command line, so it appears to be doing what I want, but I still get the same error in both cases.<br><br>

Jason<br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 1:32 PM, Andy Colson <span dir="ltr">&lt;<a href="mailto:andy@squeakycode.net">andy@squeakycode.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Jason Beverage wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi Nick,<br>
<br>
I&#39;ve also tried AGG 2.5 and get the same result.  I can build it just fine, its just that the Python bindings don&#39;t work correctly.<br>
<br>
Thanks,<br>
<br>
Jason<br>
<br></div><div class="im">
On Thu, Jul 16, 2009 at 1:14 PM, Nikolai Nikolov &lt;<a href="mailto:nnikolov@gypsii.com" target="_blank">nnikolov@gypsii.com</a> &lt;mailto:<a href="mailto:nnikolov@gypsii.com" target="_blank">nnikolov@gypsii.com</a>&gt;&gt; wrote:<br>


<br>
    Hi Jason,<br>
<br>
     <br>
    Mapserver 5.2.0 and later versions build successfully with AGG 2.5<br>
    !!!  So I would suggest, as the best option for you, to get AGG 2.5<br>
    and then build AGG and Mapserver.<br>
<br>
     <br>
    Best regards,<br>
<br>
    Nick<br>
<br>
     <br>
    ------------------------------------------------------------------------<br>
<br>
    *From:* <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a><br>
    &lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>&gt;<br>
    [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a><br>
    &lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>&gt;] *On Behalf Of<br>
    *Jason Beverage<br>
    *Sent:* 16 July 2009 18:08<br>
    *To:* <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br></div>
    &lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&gt;<div class="im"><br>
    *Subject:* [mapserver-users] Building Mapserver with Mapscript and AGG<br>
<br>
     <br>
    Hi all,<br>
<br>
    I&#39;m trying to build Mapserver 5.4.1 against AGG 2.4 with Python<br>
    Mapscript on Centos 5 and I&#39;m having some trouble.<br>
<br>
    I followed the instructions on<br>
    <a href="http://mapserver.org/installation/unix.html" target="_blank">http://mapserver.org/installation/unix.html</a> and modified the<br>
    Makefile.in.Linux of AGG to include the -fPIC option to support<br>
    mapscript.  AGG seems to build libagg.a just fine in the src directory.<br>
<br>
    When I build mapserver against that version of AGG, it compiles fine<br>
    and so do the python bindings.  However, when I install and try to<br>
    use mapscript in python, I get an error when I try to import the<br>
    mapscript module:<br>
    ImportError: /usr/lib/python2.4/site-packages/_mapscript.so:<br>
    undefined symbol: _ZN3agg12g_sqrt_tableE<br>
<br>
    This appears to be an error due to the -fPIC option not being<br>
    specified in the AGG build, which I&#39;ve done.<br>
<br>
    Are there any other steps that must be done to successfully compile<br>
    Mapserver against AGG to get the python bindings to work?<br>
<br>
    Thanks,<br>
<br>
    Jason<br>
<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<div class="im"><br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
</div><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote>
<br>
<br>
When you do a make, if you scroll back up into the output do you see -fpic on the command line?<br>
<br>
You say you modified Makefile.in.Linux?  Do you use the automake stuff?<br>
<br>
I didnt, I used the normal Makefile, which includes src/Makefile.  I modified src/Makefile and changed:<br>
<br>
CXXFLAGS= $(AGGCXXFLAGS) -I../include -L./<br>
<br>
to<br>
<br>
CXXFLAGS= $(AGGCXXFLAGS) -fPIC -I../include -L./<br>
<br>
and then just did:<br>
<br>
make<br><font color="#888888">
<br>
<br>
<br>
-Andy<br>
</font></blockquote></div><br>