Normand,<br><br>Thanks for the options I&#39;m using almost the same here. <br>As looking into the buildkit sources it looks like fcgi have been patched by someone to provide binary stdout, as follows:<br><br>112a113,116<br>
&gt; #ifdef _WIN32<br>&gt; #include &lt;fcntl.h&gt;<br>&gt; #include &lt;io.h&gt;<br>&gt; #endif<br>136a141,144<br>&gt; #ifdef _WIN32<br>&gt;                 _setmode( _fileno(stdout), _O_BINARY);<br>&gt;                 _setmode( _fileno(stdin), _O_BINARY);<br>
&gt; #endif<br><br>I&#39;ve been using the lib in the original form which use the default stdout mechanism., causing this problem because of it. Isn&#39;t this something to be contributed back to the fcgi library?<br><br>
<br>Best regards,<br><br>Tamas <br><br><br><br><br><div class="gmail_quote">2009/3/19 Normand Savard <span dir="ltr">&lt;<a href="mailto:nsavard@mapgears.com">nsavard@mapgears.com</a>&gt;</span><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">Tamas Szekeres wrote:<br>
&gt; Yeah, I&#39;ve disabled fastcgi in my compilation and all the problem has gone!<br>
&gt; I wonder how the binaries compiled with fcgi will ever work on windows then.<br>
&gt; As far as I know ms4w uses fcgi enabled in their binaries. Did you mention<br>
&gt; you or Assefa have managed to run the tests successfully by using ms4w? I&#39;d<br>
&gt; be curious to krow what setting could also be applied when enabling fastcgi<br>
&gt; to be compiled in.<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>Tamas,<br>
<br>
I attached the MapServer switches when I start the compilation on<br>
Windows by using the mapserver-buildkit.<br>
<br>
Norm<br>
<br><br>
        cl /nologo /Ox /MD /W3 /DDEBUG /EHsc -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gd-2.0.35  -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\jpeg-6b   -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\proj_4_6_1/src -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\php-5.2.6/regex -DPHP_NO_ALIASES -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/gcore -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/alg -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/ogr -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/port -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/ogr/ogrsf_frmts -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/ogr -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/port -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\gdal-trunk/gcore  -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\curl-7.15.1/include -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\ming-0.2a/src -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\ming-0.2a -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\PDFlib-Lite-6.0.2/libs/pdflib -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\postgresql-8.3.3/src/interfaces/libpq -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\postgresql-8.3.3/src/include -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\libiconv-1.9.1\include -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\fcgi-2.4.0\include -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\geos-2.2.3/source/headers -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\geos-2.2.3/capi -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\geos-2.2.3/source/capi -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\zlib-1.2.3 -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\libxml2-2.6.23.win32/include  -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\agg-2.4\include -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\agg-2.4\include\platform\win32 -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\freetype-2.1.10\include -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\agg-2.4\font_freetype -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\libpng-1.2.8 -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\fribidi-0.19.1\lib -ID:\build\mapserver-buildkit\mapserver-5.2.1\..\fribidi-0.19.1\charset -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_POSTGIS   -DUSE_PROJ -DUSE_PROJ_API_H  -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DGD_HAS_FTEX_XSHOW -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD  -DUSE_WMS_LYR -DUSE_MING_FLASH -DIGNORE_MISSING_DATA  -DENABLE_STDERR_DEBUG   -DUSE_GDAL -DUSE_FASTCGI  -DUSE_WFS_SVR -DUSE_WFS_LYR-DUSE_WCS_SVR -DUSE_PDF   -DUSE_GD_ANTIALIAS     -DUSE_ICONV -DUSE_GEOS -DUSE_ZLIB -DUSE_SOS_SVR  -DUSE_LIBXML2 -DUSE_AGG -DUSE_RGBA_PNG -DUSE_FRIBIDI -DWIN32 -D_WIN32 /c maprgbapng.c /Fomaprgbapng.obj<br>

<br></blockquote></div><br>