[mapserver-dev] build error in trunk on mapogr.cpp (msMaybeAllocateStyle)

Frank Warmerdam warmerdam at pobox.com
Sat Feb 20 22:00:53 EST 2010


Kralidis,Tom [Ontario] wrote:
> on fc10:
> 
> ....
> 
> g++ -c -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR        -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MING_FLASH   -DUSE_POSTGIS  -DUSE_GDAL -DUSE_OGR -DUSE_GEOS   -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG   -DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB     -I/usr/include -I/usr/include/freetype2   -I/usr/local/include -I/usr/local/include  -I/usr/include   -I/usr/local/include -I/usr/include   -I/usr/local/include  -I/usr/local/include   -I/usr/include -I/usr/include/libxml2   mapogr.cpp -o mapogr.o
> mapogr.cpp: In function 'int msOGRLayerGetAutoStyle(mapObj*, layerObj*, classObj*, int, long int)':
> mapogr.cpp:2792: error: 'msMaybeAllocateStyle' was not declared in this scope
> mapogr.cpp:3122: error: 'msMaybeAllocateStyle' was not declared in this scope
> mapogr.cpp:3136: error: 'msMaybeAllocateStyle' was not declared in this scope
> mapogr.cpp:3242: error: 'msMaybeAllocateStyle' was not declared in this scope
> mapogr.cpp:3346: error: 'msMaybeAllocateStyle' was not declared in this scope

Tom,

I suspect a sprinter added this today and wasn't building with OGR.  The
rest of the modules used the function msMaybeAllocateClassStyle() so I
have modified mapogr.cpp to use this function call too and things seem to
build ok.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-dev mailing list