[mapserver-users] build 3.6.1 warnings and errors

Puneet Kishor pkishor at GeoAnalytics.com
Fri Aug 9 10:54:24 EDT 2002


Build help needed. Many tia.

Trying to install ms3.6.1 on OS X 10.1.5 with gcc 3 (I think). Stock 
build, using nothing fancy but gd, png, etc. MapServer builds except for 
the warnings and confusing msg below.

===================
Warnings during Mapserver 3.6.1 make
===================
maptemplate.c:1317: warning: long int format, different type arg (arg 3)
maplexer.c:3273: warning: `yyunput' defined but not used
maperror.c:234: warning: passing arg 1 of `ctime' from incompatible 
pointer type
maperror.c:234: warning: long int format, int32_t arg (arg 4)
mapprimitive.c:1102: warning: unused variable `intersect_points'
mapprimitive.c:1099: warning: `last_angle' might be used uninitialized 
in this function
mapprimitive.c:771: warning: `get_centroid' defined but not used
mapproject.c:432: warning: return makes pointer from integer without a 
cast
mapresample.c:419: warning: `msInitApproxTransformer' defined but not 
used
mapresample.c:436: warning: `msFreeApproxTransformer' defined but not 
used
mapresample.c:447: warning: `msApproxTransformer' defined but not used
mapresample.c:551: warning: `msTransformMapToSource' defined but not used
maptemplate.h:16: warning: `inchesPerUnit' defined but not used
mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not 
used
shptree.c:40: warning: `byte_order' might be used uninitialized in this 
function
shptreevis.c:74: warning: unused variable `pabyBuf'
shptreetst.c:66: warning: `node' might be used uninitialized in this 
function

===================
Interesting and confusing msg during MapServer 3.6.1 make install
===================
cp -f libmap.a /usr/local/lib/
cp -f map.h /usr/local/include/mapserver-3.5/

===================
wtf! I thought I was installing 3.6.1! Why did it cp -f to 
include/mapserver-3.5/ (or is that a feature ;-) ). Anyway, test results
===================

[localhost:~/Projects/mapserver-3.6.1] pkishor% ./mapserv -v
MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF 
INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE

===================
Perl/MapScript fails with following errors during Perl/MapScript make
===================
LD_RUN_PATH="/Users/pkishor/Projects/mapserver-3.6.1:/usr/local/lib:/usr/lib"
  cc  -flat_namespace -bundle -undefined suppress -L/usr/local/lib 
mapscript_wrap.o  -o blib/arch/auto/mapscript/mapscript.bundle   
-L/Users/pkishor/Projects/mapserver-3.6.1 -lmap -lgd -L/usr/local/lib 
-lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -ljpeg -lm
/usr/bin/ld: table of contents for archive: /usr/local/lib/libmap.a is 
out of date; rerun ranlib(1) (can't load from it)
make: *** [blib/arch/auto/mapscript/mapscript.bundle] Error 1





More information about the mapserver-users mailing list