[mapserver-users] mapserver 5.2.1, centos 4.5 x86_64, compile errors using AGG

Howard Butler hobu.inc at gmail.com
Tue Dec 16 17:17:07 EST 2008


<http://www.google.com/search?q=ISO+C%2B%2B+forbids+declaration+of+%27const_row_info%27+with+no+type 
 >

returns

http://trac.osgeo.org/mapserver/ticket/2224


On Dec 16, 2008, at 4:01 PM, Stephen Woodbridge wrote:

> Hi all,
>
> I'm getting the following compile error with mapserver 5.2.1 on a  
> new centos 4.5 x86_64 box. Is this a known problem? Have a fix? I  
> didn't see anything helpful googling for it. Thoughts?
>
>
> ./configure \
>  --enable-runpath \
>  --enable-ignore-missing-data \
>  --enable-debug \
>  --with-httpd=/usr/sbin/httpd \
>  --with-proj=/usr \
>  --with-agg \
>  --with-gd \
>  --with-png \
>  --with-freetype \
>  --with-postgis \
>  --without-tiff \
>  --with-wmsclient
>
> ...
>
>
> MapServer is now configured for
>
> -------------- Compiler Info -------------
>  C compiler:                gcc -g -O2 -fPIC -Wall
>  C++ compiler:              g++ -g -O2 -fPIC -Wall
>  Debug:                     -g  -DNEED_NONBLOCKING_STDERR
>  Generic NINT:
>
> -------------- Renderer Settings ---------
>  zlib support:              -DUSE_ZLIB
>  png support:
>  palette rgba png support:
>  jpeg support:              -DUSE_JPEG
>  iconv support:             -DUSE_ICONV
>  AGG support:               -DUSE_AGG
>  AGG Freetype support:      -laggfontfreetype
>  Ming(flash) support:
>  PDFLib support:
>
> -------------- Support Libraries ---------
>  Proj.4 support:            -DUSE_PROJ
>  Libxml2 support:
>  FriBidi support:
>  Curl support:              -DUSE_CURL
>  FastCGI support:
>  Threading support:
>  GEOS support:
>
> -------------- Data Format Drivers -------
>  native tiff support:
>  PostGIS support:           -DUSE_POSTGIS
>  EPPL7 support:             -DUSE_EPPL
>  ArcSDE support:
>  OGR support:
>  GDAL support:
>  Oracle Spatial support:
>
> -------------- OGC Services --------------
>  WMS Server:                -DUSE_WMS_SVR
>  WMS Client:                -DUSE_WMS_LYR
>  WFS Server:
>  WFS Client:                -DUSE_WMS_LYR
>  WCS Server:
>  SOS Server:
>
> -------------- MapScript -----------------
>  PHP MapScript:             no
>
>
> make
> ...
>
> g++ -c -g -O2 -fPIC -Wall  -DNEED_NONBLOCKING_STDERR - 
> DIGNORE_MISSING_DATA  -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR  
> -DNEED_NONBLOCKING_STDERR     -DUSE_WMS_LYR    -DUSE_CURL - 
> DUSE_WMS_SVR    -DUSE_POSTGIS  -DUSE_JPEG     -DUSE_PROJ -DUSE_EPPL - 
> DUSE_AGG   -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/agg2 -I/usr/include/freetype2  -I/usr/include -I/usr/ 
> include           -O3 -Wno-uninitialized mapagg.cpp -o mapagg.o
> mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info'  
> with no type
> mapagg.h:37: error: typedef name may not be a nested-name-specifier
> mapagg.h:37: error: expected ';' before '<' token
> mapagg.h:96: error: 'row_data' does not name a type
> /usr/include/agg2/agg_pixfmt_rgba.h: In instantiation of  
> 'agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8,  
> agg::order_bgra>, mapserv_row_ptr_cache<int>, int>':
> mapagg.cpp:832:   instantiated from here
> /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named  
> 'row_data' in 'class mapserv_row_ptr_cache<int>'
> /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named  
> 'row_data' in 'class mapserv_row_ptr_cache<int>'
> mapagg.cpp: In member function 'void  
> AGGMapserverRenderer::renderEllipse(double, double, double, double,  
> double, agg::rgba8&, agg::rgba8&, double)':
> mapagg.cpp:299: error: 'class agg::path_storage' has no member named  
> 'transform'
> mapagg.cpp: In function 'void  
> msCircleDrawShadeSymbolAGG(symbolSetObj*, imageObj*, pointObj*,  
> double, styleObj*, double)':
> mapagg.cpp:1056: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp:1080: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp:1123: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp:1156: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp: In function 'void msDrawMarkerSymbolAGG(symbolSetObj*,  
> imageObj*, pointObj*, styleObj*, double)':
> mapagg.cpp:1285: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp: In function 'void drawPolylineMarkers(imageObj*,  
> shapeObj*, symbolSetObj*, styleObj*, double)':
> mapagg.cpp:1411: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp:1412: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp:1413: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp: In function 'void msDrawLineSymbolAGG(symbolSetObj*,  
> imageObj*, shapeObj*, styleObj*, double)':
> mapagg.cpp:1692: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp: In function 'void msDrawShadeSymbolAGG(symbolSetObj*,  
> imageObj*, shapeObj*, styleObj*, double)':
> mapagg.cpp:1815: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp:1867: error: 'class agg::path_storage' has no member  
> named 'transform'
> mapagg.cpp:1924: error: 'class agg::path_storage' has no member  
> named 'transform'
> make: *** [mapagg.o] Error 1
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list