<font color="#663366"><font size="2"><font face="trebuchet ms,sans-serif">That worked perfectly and didn&#39;t cause the postgis error like in 5.6.1, Thank you!!!<br></font></font></font><br><div class="gmail_quote">On Wed, Mar 24, 2010 at 10:15 AM, Alan Boudreault <span dir="ltr">&lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">With mapserver 5.6.3, could you try to open the mapstring.c file and add the<br>
following include at the line 40:<br>
#include &lt;errno.h&gt;<br>
<br>
Fixed by FrankW in <a href="http://trac.osgeo.org/mapserver/changeset/9998" target="_blank">http://trac.osgeo.org/mapserver/changeset/9998</a><br>
<font color="#888888"><br>
Alan<br>
</font><div><div></div><div class="h5"><br>
On March 24, 2010 11:04:23 am Julie Knoll wrote:<br>
&gt; Actually we are using version 5.4.<br>
&gt;<br>
&gt; I just tried compiling 5.6.3 and got a new set of errors on make<br>
&gt; (non-related to agg)<br>
&gt;<br>
&gt; mapstring.c: In function ‘msConvertWideStringToUTF8’:<br>
&gt; mapstring.c:1542: warning: dereferencing type-punned pointer will break<br>
&gt; strict-aliasing rules<br>
&gt; mapstring.c:1544: error: ‘errno’ undeclared (first use in this function)<br>
&gt; mapstring.c:1544: error: (Each undeclared identifier is reported only once<br>
&gt; mapstring.c:1544: error: for each function it appears in.)<br>
&gt; mapstring.c:1545: error: ‘E2BIG’ undeclared (first use in this function)<br>
&gt; mapstring.c:1548: error: ‘EILSEQ’ undeclared (first use in this function)<br>
&gt; mapstring.c:1551: error: ‘EINVAL’ undeclared (first use in this function)<br>
&gt; make: *** [mapstring.o] Error 1<br>
&gt;<br>
&gt; I then tried version 5.6.1 which compiled and installed perfectly, but when<br>
&gt; trying to actually draw a map, it reported an error with my postgis layer:<br>
&gt;<br>
&gt; [Wed Mar 24 09:49:48 2010].943741 msPostGISLayerGetItems(): Query error.<br>
&gt; Error (ERROR:  column &quot;box&quot; does not exist<br>
&gt; LINE 1: ...om geom_cassidi_states where the_geom &amp;&amp; setsrid(!BOX!,4269)...<br>
&gt;                                                              ^<br>
&gt; ) executing SQL: select * from (select the_geom, state_name, gid from<br>
&gt; geom_cassidi_states where the_geom &amp;&amp; setsrid(!BOX!,4269)) as foo where<br>
&gt; false limit 0<br>
&gt;<br>
&gt;<br>
&gt; so not sure what to do now ...<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Mar 24, 2010 at 9:52 AM, Alan Boudreault<br>
&gt;<br>
&gt; &lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;wrote:<br>
&gt; &gt; Julie, what mapserver version are you using? AGG is already included in<br>
&gt; &gt; mapserver 5.6.x source. Just compile with &quot;--with-agg&quot; option. I&#39;m not<br>
&gt; &gt; sure MS<br>
&gt; &gt; has been tested with agg 2.5.<br>
&gt; &gt;<br>
&gt; &gt; Alan<br>
&gt; &gt;<br>
&gt; &gt; On March 24, 2010 10:22:35 am Julie Knoll wrote:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have installed packages for agg-2.5 and agg-devel-2.5 on our server.<br>
&gt; &gt; &gt; Compling mapserver using ./configure --with-php=/usr/include/php<br>
&gt; &gt; &gt; --with-postgis --with-proj --with-geos --with-freetype --with-agg=/usr<br>
&gt; &gt; &gt;  works fine. However make returns the following errors. Could someone<br>
&gt; &gt; &gt;  please help? The server is CentOS 5.4<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named<br>
&gt; &gt; &gt; ‘row_data’ in ‘class mapserv_row_ptr_cache&lt;int&gt;’<br>
&gt; &gt; &gt; /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named<br>
&gt; &gt; &gt; ‘row_data’ in ‘class mapserv_row_ptr_cache&lt;int&gt;’<br>
&gt; &gt; &gt; mapagg.cpp: In member function ‘void<br>
&gt; &gt; &gt; AGGMapserverRenderer::renderEllipse(double, double, double, double,<br>
&gt; &gt;<br>
&gt; &gt; double,<br>
&gt; &gt;<br>
&gt; &gt; &gt; agg::rgba8&amp;, agg::rgba8&amp;, double)’:<br>
&gt; &gt; &gt; mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp: In function ‘void msCircleDrawShadeSymbolAGG(symbolSetObj*,<br>
&gt; &gt; &gt; imageObj*, pointObj*, double, styleObj*, double)’:<br>
&gt; &gt; &gt; mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*,<br>
&gt; &gt; &gt; imageObj*, pointObj*, styleObj*, double)’:<br>
&gt; &gt; &gt; mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*, shapeObj*,<br>
&gt; &gt; &gt; symbolSetObj*, styleObj*, double)’:<br>
&gt; &gt; &gt; mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*,<br>
&gt; &gt;<br>
&gt; &gt; imageObj*,<br>
&gt; &gt;<br>
&gt; &gt; &gt; shapeObj*, styleObj*, double)’:<br>
&gt; &gt; &gt; mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*,<br>
&gt; &gt; &gt;  imageObj*, shapeObj*, styleObj*, double)’:<br>
&gt; &gt; &gt; mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named<br>
&gt; &gt; &gt; ‘transform’<br>
&gt; &gt; &gt; make: *** [mapagg.o] Error 1<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Alan Boudreault<br>
&gt; &gt; Mapgears<br>
&gt; &gt; <a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a><br>
&gt;<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Alan Boudreault<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a><br>
</div></div></blockquote></div><br>