[mapserver-dev] Compile Error in mapserver-6.0.1 in mapogr.cpp

Matthew Pettis matthew.pettis at gmail.com
Mon Nov 28 14:17:15 EST 2011


Hi,

This was cross-posted at mapserver-users, with no response:
http://osgeo-org.1803224.n2.nabble.com/Compile-Error-in-mapserver-6-0-1-in-mapogr-cpp-td7023084.html

Perhaps this is the right list...
......................
Hi,

Trying to compile under Ubuntu 8.04 LTS.  configure script passed, but get
error at bottome during make/compile.  Is there a patch for this, or a
higher version?

Thanks,
Matt


g++ -c -O2 -fPIC -Wall  -DNDEBUG    -DHAVE_VSNPRINTF -DNEED_STRLCPY
-DNEED_STRLCAT -DNEED_STRRSTR     -DUSE_FASTCGI         -DUSE_LIBXML2
 -DUSE_WFS_SVR -DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
 -DUSE_OGR   -DUSE_PROJ    -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 -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF
-DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE   -DDISABLE_CVSID
-I/usr/include/freetype2     -I/usr//include -Irenderers/agg/include
-I/usr//include   -I/usr/include/gdal -I/usr/include/postgresql
 -I/usr/include -I/usr/include/fastcgi  -I/usr/include/libxml2   mapogr.cpp
-o mapogr.o
mapogr.cpp:3215:46: error: macro "MS_INIT_COLOR" requires 5 arguments, but
only 4 given
mapogr.cpp:3221:50: error: macro "MS_INIT_COLOR" requires 5 arguments, but
only 4 given
mapogr.cpp: In function 'int msOGRUpdateStyle(OGRStyleMgr*, mapObj*,
layerObj*, classObj*)':
mapogr.cpp:3053: error: 'struct labelObj' has no member named
'backgroundcolor'
mapogr.cpp:3053: error: 'struct labelObj' has no member named
'backgroundcolor'
mapogr.cpp:3053: error: 'struct labelObj' has no member named
'backgroundcolor'
mapogr.cpp:3053: error: 'struct labelObj' has no member named
'backgroundcolor'
mapogr.cpp:3053: error: 'struct labelObj' has no member named
'backgroundcolor'
mapogr.cpp:3215: error: 'MS_INIT_COLOR' was not declared in this scope
make: *** [mapogr.o] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20111128/7d82f424/attachment.html


More information about the mapserver-dev mailing list