[Mapserver-users] mapserver install [compile time]
Kendall Sor
ksor at uclink.berkeley.edu
Thu Mar 4 16:27:43 PST 2004
hi here is my setup
rehat 9
apache2
php4.3
postresql7.4.1
postgist0.8.1
mapserver 4.01
### php install
** i took out the --with-apxs2=/usr/local/apache/bin/apxs since i read that we should not include
this with mapserver
php4 configure
./configure
--with-pgsql=shared \
--prefix=/usr/local/php \
--enable-force-cgi-redirect \
--disable-cgi \
--with-zlib \
--with-gettext \
--with-regex=system \
--with-gdbm \
--enable-track-vars \
--with-xml
### other libraries required for mapserver
libJPG b6
./configure
freetype-2.1.3
./configure
GD 2.0.22
./configure --with-freetype=/usr/local/lib --with-jpeg=/usr/local/lib
### mapserver 4.01
./configure
--with-gd
--with-freetype=/usr/local/lib/
--with-php=/tmp/php-4.3.4
--with-ming
--with-postgis
make,
breaks on the maptemplate.o file. any help would be appreciated. do i should i need to edit the
Makefile?
then this is the following error i get:
gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include
maptemplate.c -o maptemplate.o
In file included from maptemplate.h:8,
from maptemplate.c:3:
map.h:42:18: ming.h: No such file or directory
In file included from maptemplate.h:8,
from maptemplate.c:3:
map.h:819: parse error before "SWFMovie"
map.h:819: warning: no semicolon at end of struct or union
map.h:821: parse error before '*' token
map.h:821: warning: type defaults to `int' in declaration of `pasMovies'
map.h:821: warning: data definition has no type or storage class
map.h:827: parse error before '}' token
map.h:827: warning: type defaults to `int' in declaration of `SWFObj'
map.h:827: warning: data definition has no type or storage class
map.h:858: parse error before "SWFObj"
map.h:858: warning: no semicolon at end of struct or union
map.h:858: warning: no semicolon at end of struct or union
map.h:866: parse error before '}' token
map.h:866: warning: type defaults to `int' in declaration of `img'
map.h:866: warning: data definition has no type or storage class
map.h:868: parse error before '}' token
map.h:868: warning: type defaults to `int' in declaration of `imageObj'
map.h:868: warning: data definition has no type or storage class
map.h:871: parse error before "imageObj"
map.h:872: parse error before '*' token
map.h:955: parse error before '*' token
map.h:955: warning: type defaults to `int' in declaration of `msDrawScalebar'
map.h:955: warning: data definition has no type or storage class
map.h:1031: parse error before '*' token
map.h:1031: warning: type defaults to `int' in declaration of `msDrawLegend'
map.h:1031: warning: data definition has no type or storage class
map.h:1034: parse error before '*' token
map.h:1034: warning: type defaults to `int' in declaration of `msCreateLegendIcon'
map.h:1034: warning: data definition has no type or storage class
map.h:1054: parse error before "imageObj"
map.h:1062: parse error before "imageObj"
map.h:1063: parse error before '*' token
map.h:1063: warning: type defaults to `int' in declaration of `msDrawReferenceMap'
map.h:1063: warning: data definition has no type or storage class
map.h:1168: parse error before '*' token
map.h:1168: warning: type defaults to `int' in declaration of `msDrawMap'
map.h:1168: warning: data definition has no type or storage class
map.h:1169: parse error before '*' token
map.h:1169: warning: type defaults to `int' in declaration of `msDrawQueryMap'
map.h:1169: warning: data definition has no type or storage class
map.h:1171: parse error before "imageObj"
map.h:1172: parse error before "imageObj"
map.h:1173: parse error before "imageObj"
map.h:1174: parse error before "imageObj"
map.h:1175: parse error before "imageObj"
map.h:1177: parse error before "imageObj"
map.h:1178: parse error before "imageObj"
map.h:1180: parse error before "imageObj"
map.h:1181: parse error before "imageObj"
map.h:1182: parse error before "imageObj"
map.h:1183: parse error before "imageObj"
map.h:1184: parse error before "imageObj"
map.h:1186: parse error before '*' token
map.h:1187: parse error before '*' token
map.h:1188: parse error before '*' token
map.h:1190: parse error before "imageObj"
map.h:1191: parse error before "imageObj"
map.h:1193: parse error before "imageObj"
map.h:1194: parse error before "imageObj"
map.h:1202: parse error before '*' token
map.h:1203: warning: type defaults to `int' in declaration of `msImageCreateIM'
map.h:1203: warning: data definition has no type or storage class
map.h:1204: parse error before '*' token
map.h:1204: warning: type defaults to `int' in declaration of `msImageLoadIM'
map.h:1204: warning: data definition has no type or storage class
map.h:1205: parse error before '*' token
map.h:1206: parse error before "imageObj"
map.h:1208: parse error before '*' token
map.h:1209: parse error before '*' token
map.h:1212: parse error before '*' token
map.h:1213: parse error before '*' token
map.h:1215: parse error before "imageObj"
map.h:1216: parse error before "imageObj"
map.h:1217: parse error before "imageObj"
map.h:1218: parse error before "imageObj"
map.h:1219: parse error before "imageObj"
map.h:1221: parse error before '*' token
map.h:1222: parse error before '*' token
map.h:1230: parse error before '*' token
map.h:1231: warning: type defaults to `int' in declaration of `msImageCreateGD'
map.h:1231: warning: data definition has no type or storage class
map.h:1232: parse error before '*' token
map.h:1232: warning: type defaults to `int' in declaration of `msImageLoadGD'
map.h:1232: warning: data definition has no type or storage class
map.h:1233: parse error before '*' token
map.h:1270: parse error before "imageObj"
map.h:1274: parse error before "imageObj"
map.h:1312: parse error before '*' token
map.h:1313: warning: type defaults to `int' in declaration of `msImageCreate'
map.h:1313: warning: data definition has no type or storage class
map.h:1323: parse error before '*' token
map.h:1324: warning: type defaults to `int' in declaration of `msImageCreateSWF'map.h:1324:
warning: data definition has no type or storage class
map.h:1326: parse error before "imageObj"
map.h:1328: parse error before '*' token
map.h:1331: parse error before '*' token
map.h:1333: parse error before "imageObj"
map.h:1336: parse error before "imageObj"
map.h:1339: parse error before "imageObj"
map.h:1341: parse error before "imageObj"
map.h:1342: parse error before "imageObj"
map.h:1351: parse error before '*' token
map.h:1353: parse error before '*' token
map.h:1355: parse error before '*' token
map.h:1357: parse error before "imageObj"
map.h:1440: parse error before "imageObj"
In file included from map.h:1464,
from maptemplate.h:8,
from maptemplate.c:3:
mapows.h:180: parse error before "imageObj"
maptemplate.c: In function `msReturnTemplateQuery':
maptemplate.c:157: invalid lvalue in assignment
maptemplate.c:171: warning: assignment makes integer from pointer without a castmaptemplate.c:183:
warning: assignment makes integer from pointer without a castmaptemplate.c:193: warning:
assignment makes integer from pointer without a castmaptemplate.c:203: warning: assignment makes
integer from pointer without a castmaptemplate.c: In function `processIcon':
maptemplate.c:824: invalid lvalue in assignment
maptemplate.c:830: warning: assignment makes integer from pointer without a castmaptemplate.c:836:
warning: assignment makes integer from pointer without a castmaptemplate.c: In function
`msGenerateImages':
maptemplate.c:2649: `image' undeclared (first use in this function)
maptemplate.c:2649: (Each undeclared identifier is reported only once
maptemplate.c:2649: for each function it appears in.)
make: *** [maptemplate.o] Error 1
More information about the MapServer-users
mailing list