4.4.0 build ok, but 4 python mapscript tests are failing

didier.georgieff didier.georgieff at AGRICULTURE.GOUV.FR
Mon Dec 6 10:04:39 EST 2004


Dear Sean,

> It looks to me like there may be code compiled from the older,
> non-modern, source in build/lib.linux-i686-2.3.

OK.

> Can you try to delete the python/build directory and try again?

1 - tried deleting => same problem

2 - removed the whole mapserver folder and untar a fresh one => same
problem.

See below __exactly__ (from history) what I did.
I'll keep searching. Just let me know if you want me to try something.

>From what i saw, tests create jpg, png and fail on creating other
images. More facts when i find information.

> I am unable
> to confirm your problem on my machine, all 228 tests pass.

OK.

Kernel 2.6.3-15mdk
gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
Python 2.3.3

> I'm on #mapserver on irc.freenode.net all day today if you would
> like quicker feedback on solving this problem.

Thanks a lot for the proposal. But my firewall doesn't allow IRC ;-<

############# install mapserver 4.4.0
tar zxvf mapserver-4.4.0.tar.gz
cd mapserver-4.4.0
../configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj --with-ogr\\
            --with-gdal --with-pdf --with-threads --with-gd=/usr \\
            --with-jpeg=/usr --with-libiconv=/usr --with-freetype=/usr \\
            --with-zlib=/usr --with-png=/usr --with-xpm=/usr/X11R6
make
su
cp mapscript/python/modern/* mapscript/python/
cd mapscript/python/
python setup.py build
cd tests/cases
python runalltests.py -v        # Segfault
python classtest.py -v          # OK
python imagetest.py -v          # Segfault

############### Report from ./configure if this can help to diagnose.
../configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj --with-ogr --with-gdal --with-pdf --with-threads --with-gd=/usr --with-jpeg=/usr --with-libiconv=/usr --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-xpm=/usr/X11R6
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... no
MapServer Version from map.h: '4.4.0'
configure: checking where FreeType 2.x is installed...
        using libfreetype from -lfreetype -lz
checking for FT_Init_FreeType in -lfreetype... yes
        using libfreetype -lfreetype from system libs.
configure: checking where Zlib is installed...
        using libz from -L/usr/lib -lz
configure: checking where PNG is installed...
        using libpng from -L/usr/lib -lpng
configure: checking whether we should include JPEG support...
        using libjpeg from system -L/usr/lib -ljpeg
configure: checking where libXpm is installed...
        using libXpm from -L/usr/X11R6/lib -lXpm -lX11
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
        using libiconv from -L/usr/lib -lc
        libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.12 or higher...
checking for gdImageSetAntiAliased in -lgd... yes
        using libgd 2.0.12 (or higher) from -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/X11R6/lib -lXpm -lX11
checking for gdImageGif in -lc... no
checking for gdImagePng in -lc... yes
checking for gdImageJpeg in -lc... yes
checking for gdImageWBMP in -lc... yes
checking for gdImageStringFT in -lc... yes
checking for gdImageGifPtr in -lc... no
checking for gdFontGetTiny in -lc... no
        using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from /usr.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... yes
checking for PDF_setrgbcolor in -lpdf... yes
checking for PDF_moveto in -lpdf... yes
checking for PDF_curveto in -lpdf... yes
checking for PDF_show_xy in -lpdf... yes
        using libpdf from system libs.
configure: checking whether we should include EPPL7 support...
        including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
checking for pj_init in -lproj... yes
checking for pj_transform in -lproj... yes
checking for pj_latlong_from_proj in -lproj... yes
        using PROJ.4 from system libs.
configure: checking whether we should include thread safe support...
checking for pthread_create in -lpthread... yes
        using -lpthread from system libs.
configure: checking whether we should include ESRI SDE support...
        ESRI SDE support not requested.
configure: checking whether we should include SDE raster support...
        not including experimental SDE raster support.
configure: checking whether we should compile in MPATROL support...
        MPATROL support not requested.
checking if GEOS support requested... no
configure: checking whether we should include OGR support...
checking for gdal-config... /usr/bin/gdal-config
        OGR enabled (-DUSE_OGR).
checking if GDAL support requested... yes
checking checking ms JPEG output... no we, have GDAL available.
configure: checking whether we should include TIFF support...
        disabled since gdal is in use
checking if PostGIS support requested... no
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... no
configure: checking whether we should include WMS Server support...
        OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support...
        OGC WFS Server support not requested.
configure: checking whether we should include WCS Server support...
        OGC WCS Server support not requested.
configure: checking whether we should include WMS Client Connections support...
configure: checking whether we should include WFS Client Connections support...
configure: checking for curl-config...
configure: checking whether FastCGI support should be enabled...
        FastCGI support not enabled.
configure: checking HTTPD server (Apache) version...
        using user-supplied httpd (/usr/sbin/httpd2)
        /usr/sbin/httpd2 version is Apache-AdvancedExtranetServer/2.0.48 (2000048).
Compiling with -DIGNORE_MISSING_DATA.
configure: checking whether we should enable debug features...
configure: checking for PHP/MapScript module options...
        PHP/MapScript module not configured.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/java/Makefile



More information about the mapserver-users mailing list