[mapserver-dev] msautotest-wxs: how to suppress the header information?

Tamas Szekeres szekerest at gmail.com
Thu Mar 19 16:48:13 EDT 2009


Normand,

Thanks for the options I'm using almost the same here.
As looking into the buildkit sources it looks like fcgi have been patched by
someone to provide binary stdout, as follows:

112a113,116
> #ifdef _WIN32
> #include <fcntl.h>
> #include <io.h>
> #endif
136a141,144
> #ifdef _WIN32
>                 _setmode( _fileno(stdout), _O_BINARY);
>                 _setmode( _fileno(stdin), _O_BINARY);
> #endif

I've been using the lib in the original form which use the default stdout
mechanism., causing this problem because of it. Isn't this something to be
contributed back to the fcgi library?


Best regards,

Tamas




2009/3/19 Normand Savard <nsavard at mapgears.com>

> Tamas Szekeres wrote:
> > Yeah, I've disabled fastcgi in my compilation and all the problem has
> gone!
> > I wonder how the binaries compiled with fcgi will ever work on windows
> then.
> > As far as I know ms4w uses fcgi enabled in their binaries. Did you
> mention
> > you or Assefa have managed to run the tests successfully by using ms4w?
> I'd
> > be curious to krow what setting could also be applied when enabling
> fastcgi
> > to be compiled in.
> >
> >
> >
> Tamas,
>
> I attached the MapServer switches when I start the compilation on
> Windows by using the mapserver-buildkit.
>
> Norm
>
>
>        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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090319/f76a968c/attachment.html


More information about the mapserver-dev mailing list