[Mapserver-users] Mapserver 3.6.3 - Compile errors

Jose Mendez jmendez at captiveweb.net
Fri Feb 7 16:34:14 PST 2003


Hi,

I am new to mapserver and I've been trying to compile
it but have not been successul.  Your help will be
greatly appreciated. thanks. 

I ISSUED THE CONFIGURE COMMAND AS FOLLOWS:

>> ./configure --with-proj
--with-postgis=/usr/local/src/postgresql-7.2.3/src/bin/pg_config/pg_config\
 --with-jpeg=/usr/lib/ --with-gd
--with-freetype=/usr/lib/

THIS WAS THE OUTPUT:

loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) g++
checking whether the C++ compiler (g++  ) works... yes
checking whether the C++ compiler (g++  ) is a
cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking for bison... (cached) bison -y
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached)
yes
checking for exp in -lm... (cached) yes
checking how to run the C preprocessor... (cached) gcc
-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 whether we should include JPEG support...
Could not find jpeglib.h or libjpeg.a/libjpeg.so in
/usr/lib/.
checking for jpeg_read_header in -ljpeg... yes
        using libjpeg from system libs.
checking which version of GD to use...
        using libgd from system libs.
checking where FreeType is installed...
        using libfreetype from -L/usr/lib/ -lfreetype
checking where Zlib is installed...
checking for zlibVersion in -lz... yes
        using libz from system libs.
checking where PNG is installed...
checking for png_init_io in -lpng... no
        PNG (libpng) library cannot be found, possibly
needed for GD
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 gdImageString16 in -lgd... yes
checking for gdImageGifPtr in -lgd... no
        using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT) from system libs.
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... (cached) no
        libpdf not found... PDF support not included.
checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... no
        libtiff not found... TIFF support not
included.
checking whether we should include EPPL7 support...
        including EPPL7 support.
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.
checking whether we should include thread safe
support...
        thread safe support disabled.
checking whether we should include ESRI SDE support...
        ESRI SDE support not requested.
checking whether we should compile in MPATROL
support...
        MPATROL support not requested.
checking whether we should include OGR support...
        OGR support not requested.
checking if GDAL support requested... no
checking if PostGIS support requested... yes, user
supplied pg_config
checking if OracleSpatial support requested... no
checking whether we should include WMS support...
        OGC WMS compatibility enabled (-DUSE_WMS).
checking whether we should include WMS Client
Connections support...
Compiling with -DIGNORE_MISSING_DATA.
checking whether we should enable debug features...
checking for PHP/MapScript module options...
        PHP/MapScript module not configured.
creating ./config.status
creating Makefile


SO EVERYTHING SEEMS FINE BUT WHEN I RUN 'make' IT
STOPS ON AN ERROR:

>> make

gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL
-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS    -DUSE_JPEG
-DUSE_GD_PNG -DUSE_GD\
_JPEG -DUSE_GD_WBMP -DUSE_GD_FT     -DUSE_POSTGIS  
-I/usr/include           -I/usr/local/pgsql/include  
maptemplate.c -o ma\
ptemplate.o
cc1: warning: changing search order for system
directory "/usr/include"
cc1: warning:   as it has already been specified as a
non-system directory
In file included from map.h:32,
                 from maptemplate.h:8,
                 from maptemplate.c:3:
mapproject.h:13:26: proj_api.h: No such file or
directory
In file included from map.h:32,
                 from maptemplate.h:8,
                 from maptemplate.c:3:
mapproject.h:24: parse error before "projPJ"
mapproject.h:24: warning: no semicolon at end of
struct or union
mapproject.h:28: warning: type defaults to `int' in
declaration of `projectionObj'
mapproject.h:28: warning: data definition has no type
or storage class
mapproject.h:31: parse error before '*' token
mapproject.h:32: parse error before '*' token
mapproject.h:33: parse error before '*' token
mapproject.h:34: parse error before '*' token
mapproject.h:35: parse error before '*' token
mapproject.h:36: parse error before "projectionObj"
mapproject.h:38: parse error before "projectionObj"
mapproject.h:39: parse error before '*' token
mapproject.h:40: parse error before '*' token
mapproject.h:41: parse error before '*' token
mapproject.h:42: parse error before '*' token
mapproject.h:44: parse error before '*' token
mapproject.h:53: parse error before '*' token
In file included from map.h:41,
                 from maptemplate.h:8,
                 from maptemplate.c:3:
/usr/include/regex.h:535:1: warning: "__restrict_arr"
redefined
In file included from /usr/include/features.h:283,
                 from /usr/include/stdio.h:28,
                 from map.h:8,
                 from maptemplate.h:8,
                 from maptemplate.c:3:
/usr/include/sys/cdefs.h:212:1: warning: this is the
location of the previous definition
In file included from maptemplate.h:8,
                 from maptemplate.c:3:
map.h:617: parse error before "projectionObj"
map.h:617: warning: no semicolon at end of struct or
union
map.h:671: parse error before '}' token
map.h:671: warning: type defaults to `int' in
declaration of `layerObj'
map.h:671: warning: data definition has no type or
storage class
map.h:679: parse error before "layerObj"
map.h:679: warning: no semicolon at end of struct or
union
map.h:702: conflicting types for `units'
map.h:620: previous declaration of `units'
map.h:714: parse error before "projection"
map.h:714: warning: type defaults to `int' in
declaration of `projection'
map.h:714: warning: data definition has no type or
storage class
map.h:715: parse error before "latlon"
map.h:715: warning: type defaults to `int' in
declaration of `latlon'
map.h:715: warning: data definition has no type or
storage class
map.h:728: parse error before '}' token
map.h:728: warning: type defaults to `int' in
declaration of `mapObj'
map.h:728: warning: data definition has no type or
storage class
map.h:737: parse error before '*' token
map.h:750: parse error before '*' token
map.h:751: parse error before '*' token
map.h:759: parse error before '*' token
map.h:764: parse error before '*' token
map.h:773: parse error before '*' token
map.h:780: parse error before '*' token
map.h:781: parse error before '*' token
map.h:783: parse error before '*' token
map.h:783: warning: type defaults to `int' in
declaration of `msLoadMap'
map.h:783: warning: data definition has no type or
storage class
map.h:784: parse error before '*' token
 -- similar lines
map.h:900: parse error before '*' token
map.h:901: parse error before "mapObj"
map.h:923: parse error before '*' token
 -- similar lines
map.h:998: parse error before '*' token
map.h:999: parse error before '*' token
map.h:1003: parse error before '*' token
In file included from maptemplate.c:3:
maptemplate.h:40: parse error before "mapObj"
maptemplate.h:40: warning: no semicolon at end of
struct or union
maptemplate.h:47: parse error before '*' token
maptemplate.h:47: warning: type defaults to `int' in
declaration of `ResultLayer'
maptemplate.h:47: warning: data definition has no type
or storage class
maptemplate.h:92: parse error before '}' token
maptemplate.h:92: warning: type defaults to `int' in
declaration of `mapservObj'
maptemplate.h:92: warning: data definition has no type
or storage class
maptemplate.h:100: parse error before '*' token
maptemplate.h:100: warning: type defaults to `int' in
declaration of `msAllocMapServObj'
maptemplate.h:100: warning: data definition has no
type or storage class
maptemplate.h:105: parse error before '*' token
maptemplate.h:108: parse error before '*' token
 -- similar lines
maptemplate.h:129: parse error before '*' token
maptemplate.h:133: parse error before '*' token
maptemplate.c:26: parse error before '*' token
maptemplate.c: In function `setExtent':
maptemplate.c:30: `msObj' undeclared (first use in
this function)
maptemplate.c:30: (Each undeclared identifier is
reported only once
maptemplate.c:30: for each function it appears in.)
maptemplate.c: At top level:
maptemplate.c:89: parse error before '*' token
maptemplate.c: In function `checkWebScale':
maptemplate.c:93: `msObj' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:145: parse error before '*' token
maptemplate.c: In function `msReturnTemplateQuery':
maptemplate.c:151: `pszMimeType' undeclared (first use
in this function)
maptemplate.c:157: `msObj' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:210: parse error before '*' token
maptemplate.c: In function `isOn':
maptemplate.c:214: `msObj' undeclared (first use in
this function)
maptemplate.c:215: `name' undeclared (first use in
this function)
maptemplate.c:216: `group' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:226: parse error before '*' token
maptemplate.c: In function `sortLayerByMetadata':
maptemplate.c:235: `map' undeclared (first use in this
function)
maptemplate.c:251: `pszMetadata' undeclared (first use
in this function)
maptemplate.c: At top level:
maptemplate.c:715: parse error before '*' token
maptemplate.c: In function `processIcon':
maptemplate.c:723: `map' undeclared (first use in this
function)
maptemplate.c:724: `nIdxLayer' undeclared (first use
in this function)
maptemplate.c:731: `pszInstr' undeclared (first use in
this function)
maptemplate.c:748: `pszPrefix' undeclared (first use
in this function)
maptemplate.c:748: `nIdxClass' undeclared (first use
in this function)
maptemplate.c: At top level:
maptemplate.c:892: parse error before "mapObj"
maptemplate.c: In function `generateGroupTemplate':
maptemplate.c:899: `pszTemp' undeclared (first use in
this function)
maptemplate.c:901: `pszGroupName' undeclared (first
use in this function)
maptemplate.c:901: `pszGroupTemplate' undeclared
(first use in this function)
maptemplate.c:929: `map' undeclared (first use in this
function)
maptemplate.c:971: `pszPrefix' undeclared (first use
in this function)
maptemplate.c: At top level:
maptemplate.c:986: parse error before "mapObj"
maptemplate.c: In function `generateLayerTemplate':
maptemplate.c:996: `pszTemp' undeclared (first use in
this function)
maptemplate.c:998: `pszLayerTemplate' undeclared
(first use in this function)
maptemplate.c:999: `map' undeclared (first use in this
function)
maptemplate.c:1000: `nIdxLayer' undeclared (first use
in this function)
maptemplate.c:1006: `oLayerArgs' undeclared (first use
in this function)
maptemplate.c:1083: `pszPrefix' undeclared (first use
in this function)
maptemplate.c: At top level:
maptemplate.c:1108: parse error before "mapObj"
maptemplate.c: In function `generateClassTemplate':
maptemplate.c:1118: `pszTemp' undeclared (first use in
this function)
maptemplate.c:1120: `pszClassTemplate' undeclared
(first use in this function)
maptemplate.c:1121: `map' undeclared (first use in
this function)
maptemplate.c:1122: `nIdxLayer' undeclared (first use
in this function)
maptemplate.c:1124: `nIdxClass' undeclared (first use
in this function)
maptemplate.c:1131: `oClassArgs' undeclared (first use
in this function)
maptemplate.c:1209: `pszPrefix' undeclared (first use
in this function)
maptemplate.c: At top level:
maptemplate.c: In function `generateLegendTemplate':
maptemplate.c:1265: `msObj' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:1706: parse error before '*' token
maptemplate.c: In function `processLine':
maptemplate.c:1719: `instr' undeclared (first use in
this function)
maptemplate.c:1723: `msObj' undeclared (first use in
this function)
maptemplate.c:1991: `mode' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:2049: parse error before '*' token
maptemplate.c: In function `msReturnPage':
maptemplate.c:2065: `html' undeclared (first use in
this function)
maptemplate.c:2079: `papszBuffer' undeclared (first
use in this function)
maptemplate.c:2100: `msObj' undeclared (first use in
this function)
maptemplate.c:2100: `mode' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:2153: parse error before '*' token
maptemplate.c: In function `msReturnURL':
maptemplate.c:2157: `url' undeclared (first use in
this function)
maptemplate.c:2163: `msObj' undeclared (first use in
this function)
maptemplate.c:2163: `mode' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:2175: parse error before '*' token
maptemplate.c: In function `msReturnQuery':
maptemplate.c:2186: `lp' undeclared (first use in this
function)
maptemplate.c:2201: `papszBuffer' undeclared (first
use in this function)
maptemplate.c:2210: `msObj' undeclared (first use in
this function)
maptemplate.c:2272: `pszMimeType' undeclared (first
use in this function)
maptemplate.c: At top level:
maptemplate.c:2355: parse error before '*' token
maptemplate.c:2356: warning: return type defaults to
`int'
maptemplate.c: In function `msAllocMapServObj':
maptemplate.c:2357: `msObj' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:2425: parse error before '*' token
maptemplate.c: In function `msFreeMapServObj':
maptemplate.c:2429: `msObj' undeclared (first use in
this function)
maptemplate.c: At top level:
maptemplate.c:2453: parse error before '*' token
maptemplate.c: In function `msGenerateImages':
maptemplate.c:2458: `msObj' undeclared (first use in
this function)
maptemplate.c:2465: `szQuery' undeclared (first use in
this function)
maptemplate.c:2479: `bReturnOnError' undeclared (first
use in this function)
maptemplate.c: At top level:
maptemplate.c:2581: parse error before '*' token
maptemplate.c: In function `msProcessTemplate':
maptemplate.c:2585: `msObj' undeclared (first use in
this function)
maptemplate.c:2588: `map' undeclared (first use in
this function)
maptemplate.c:2599: `names' undeclared (first use in
this function)
maptemplate.c:2599: `values' undeclared (first use in
this function)
maptemplate.c:2599: `numentries' undeclared (first use
in this function)
maptemplate.c:2611: `bGenerateImages' undeclared
(first use in this function)
maptemplate.c: At top level:
maptemplate.c:2635: parse error before '*' token
maptemplate.c: In function `msProcessLegendTemplate':
maptemplate.c:2639: `msObj' undeclared (first use in
this function)
maptemplate.c:2641: `map' undeclared (first use in
this function)
maptemplate.c:2652: `names' undeclared (first use in
this function)
maptemplate.c:2652: `values' undeclared (first use in
this function)
maptemplate.c:2652: `numentries' undeclared (first use
in this function)
maptemplate.c: At top level:
maptemplate.c:2673: parse error before '*' token
maptemplate.c: In function `msProcessQueryTemplate':
maptemplate.c:2677: `msObj' undeclared (first use in
this function)
maptemplate.c:2680: `map' undeclared (first use in
this function)
maptemplate.c:2691: `names' undeclared (first use in
this function)
maptemplate.c:2691: `values' undeclared (first use in
this function)
maptemplate.c:2691: `numentries' undeclared (first use
in this function)
make: *** [maptemplate.o] Error 1

IT TOOK ME A WHILE TO GET ALL THE LIBRARIES LOADED FOR
THE CONFIGURATION NOW I DON'T KNOW WHAT TO TRY TO GET
IT TO COMPILE. PLEASE HELP.  THANKS.





__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the MapServer-users mailing list