compiling 4.2.3 on Mandrake

Michal Krupička 39507 at MAIL.MUNI.CZ
Tue Oct 12 22:26:36 EDT 2004


Hi all
I am not able to compile mapserver_4.2.3, can anyone help me, please?
My operating system is Mandrake 9.2.
Thanks a lot, Mike.
This the first step:

$ . configure --without-tiff --with-gdal=/usr/bin/gdal-config --with-httpd=/usr/sbin/httpd2
checking for gcc... (cached) gcc
checking for C compiler default output... 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... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for flex... (cached) flex
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for bison... (cached) bison -y
checking if compiler supports -R... (cached) no
checking for exp in -lm... (cached) yes
checking for __gxx_personality_v0 in -lstdc++... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strlcat... (cached) no
bash: checking where FreeType 2.x is installed......
checking for FT_Init_FreeType in -lfreetype... yes
        using libfreetype -lfreetype from system libs.
bash: checking where Zlib is installed......
checking for zlibVersion in -lz... yes
        using libz from system libs.
bash: checking where PNG is installed......
checking for png_init_io in -lpng... yes
        using libpng from system libs.
bash: checking whether we should include JPEG support......
checking for jpeg_read_header in -ljpeg... yes
        using libjpeg from system libs.
bash: checking where libiconv is installed......
checking for libiconv_open in -liconv... no
        libiconv library cannot be found, possibly needed for GD
bash: checking for GD 2.0.12 or higher......
checking for gdImageSetAntiAliased in -lgd... yes
        using libgd 2.0.12 (or higher) from system libs (-L/usr/lib -lgd -ljpeg
-lfreetype -lpng -lz  ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageGifPtr in -lgd... no
        using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs.
bash: checking whether we should include PDF support......
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... no
        libpdf not found... PDF support not included.
bash: checking whether we should include EPPL7 support......
        including EPPL7 support.
bash: checking whether we should include PROJ.4 support......
        PROJ.4 support not requested.
bash: checking whether we should include thread safe support......
        thread safe support disabled.
bash: checking whether we should include ESRI SDE support......
        ESRI SDE support not requested.
bash: checking whether we should compile in MPATROL support......
        MPATROL support not requested.
bash: checking whether we should include OGR support......
        OGR enabled (-DUSE_OGR).
checking if GDAL support requested... yes, user supplied gdal-config
(/usr/bin/gdal-config)
checking checking ms JPEG output... no we, have GDAL available.
bash: checking whether we should include TIFF support......
        disabled by --without-tiff
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
bash: checking whether we should include WMS Server support......
        OGC WMS Compatibility not enabled (PROJ.4 is required for WMS).
bash: checking whether we should include WFS Server support......
        OGC WFS Server support not requested.
bash: checking whether we should include WMS Client Connections support......
        OGC WMS Client Connections not enabled (PROJ.4 and libcurl required).
bash: checking whether we should include WFS Client Connections support......
        OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR
required).
bash: checking for curl-config...
bash: checking HTTPD server (Apache) version...
        using user-supplied httpd (/usr/sbin/httpd2)
        /usr/sbin/httpd2 version is Apache-AdvancedExtranetServer/2.0.47
(2000047).
Compiling with -DIGNORE_MISSING_DATA.
bash: checking whether we should enable debug features......
bash: checking for PHP/MapScript module options......
        PHP/MapScript module not configured.
bash: creating ./config.status
config.status: creating Makefile


and the second:
$ make
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maptemplate.c -o maptemplate.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapbits.c -o mapbits.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maphash.c -o maphash.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapshape.c -o mapshape.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapxbase.c -o mapxbase.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapparser.c -o mapparser.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maplexer.c -o maplexer.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maptree.c -o maptree.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapsearch.c -o mapsearch.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapstring.c -o mapstring.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapsymbol.c -o mapsymbol.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapfile.c -o mapfile.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maplegend.c -o maplegend.o
maplegend.c: In function `msDrawLegendIcon':
maplegend.c:20: warning: implicit declaration of function `gdImageSetClip'
maplegend.c:46: warning: implicit declaration of function `gdImageCopyResampled'
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maputil.c -o maputil.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapscale.c -o mapscale.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapquery.c -o mapquery.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maplabel.c -o maplabel.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maperror.c -o maperror.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapprimitive.c -o mapprimitive.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapproject.c -o mapproject.o
mapproject.c: In function `msGetEPSGProj':
mapproject.c:471: warning: return makes pointer from integer without a cast
mapproject.c: At top level:
mapproject.c:480: warning: `msProjFinder' defined but not used
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapraster.c -o mapraster.o
mapraster.c: In function `msAddColorGD':
mapraster.c:236: warning: implicit declaration of function `gdTrueColor'
mapraster.c: At top level:
mapraster.c:1073: warning: `drawERD' defined but not used
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapsde.c -o mapsde.o
g++ -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapogr.cpp -o mapogr.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mappostgis.c -o mappostgis.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapmygis.c -o mapmygis.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maplayer.c -o maplayer.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapresample.c -o mapresample.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapwms.c -o mapwms.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapwmslayer.c -o mapwmslayer.o
mapwmslayer.c:131: warning: `msSetWMSParamString' defined but not used
mapwmslayer.c:154: warning: `msSetWMSParamInt' defined but not used
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      maporaclespatial.c -o maporaclespatial.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapgml.c -o mapgml.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapprojhack.c -o mapprojhack.o
mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not used
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapthread.c -o mapthread.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapdraw.c -o mapdraw.o
mapdraw.c: In function `msDrawMap':
mapdraw.c:107: warning: unused variable `lastconnectiontype'
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL
-I/usr/include         -I/usr/include      mapgd.c -o mapgd.o
mapgd.c: In function `msImageCreateGD':
mapgd.c:85: warning: implicit declaration of function `gdImageCreateTrueColor'
mapgd.c:85: warning: assignment makes pointer from integer without a cast
mapgd.c:86: warning: implicit declaration of function `gdImageAlphaBlending'
mapgd.c: In function `msImageInitGD':
mapgd.c:131: warning: implicit declaration of function `gdTrueColorAlpha'
mapgd.c:133: warning: implicit declaration of function `gdTrueColor'
mapgd.c:137: error: structure has no member named `tpixels'
mapgd.c: In function `createBrush':
mapgd.c:307: warning: assignment makes pointer from integer without a cast
mapgd.c: In function `ImageFilledPolygonAA':
mapgd.c:381: warning: implicit declaration of function `gdImageSetAntiAliasedDontBlend'
mapgd.c:382: error: `gdAntiAliased' undeclared (first use in this function)
mapgd.c:382: error: (Each undeclared identifier is reported only once
mapgd.c:382: error: for each function it appears in.)
mapgd.c: In function `msDrawMarkerSymbolGD':
mapgd.c:1073: warning: implicit declaration of function `gdImageCopyResampled'
mapgd.c: In function `msDrawLineSymbolGD':
mapgd.c:1299: warning: implicit declaration of function `gdImageSetAntiAliased'
mapgd.c:1300: error: `gdAntiAliased' undeclared (first use in this function)
mapgd.c: In function `msDrawShadeSymbolGD':
mapgd.c:1362: error: `gdAntiAliased' undeclared (first use in this function)
mapgd.c: In function `RenderCartoLine':
mapgd.c:1687: error: `gdAntiAliased' undeclared (first use in this function)
mapgd.c: In function `msDrawTextGD':
mapgd.c:2157: error: structure has no member named `alphaBlendingFlag'
mapgd.c: In function `msSaveImageGD':
mapgd.c:2494: warning: implicit declaration of function `gdImageSaveAlpha'
mapgd.c: In function `msFixedImageCopy':
mapgd.c:2607: error: `gdAlphaOpaque' undeclared (first use in this function)
mapgd.c: In function `msImageCopyMerge':
mapgd.c:2639: warning: implicit declaration of function `gdTrueColorGetAlpha'
mapgd.c:2642: error: `gdAlphaTransparent' undeclared (first use in this
function)
mapgd.c:2659: warning: implicit declaration of function `gdTrueColorGetRed'
mapgd.c:2662: warning: implicit declaration of function `gdTrueColorGetGreen'
mapgd.c:2665: warning: implicit declaration of function `gdTrueColorGetBlue'
make: *** [mapgd.o] Error



More information about the mapserver-users mailing list