[mapserver-users] compile problems

Frank Warmerdam warmerdam at pobox.com
Fri Nov 22 22:56:38 EST 2002


Caffeinate The World wrote:
> I get this compile error in both latest stable and nightly built:
> 
> --- from nightly built
> 
> ns01$ gmake
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
> -DUSE_PROJ_API_H -DUSE_WMS_S
> VR      -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY     -DUSE_POSTGIS   
> -I/usr/local/include  -I
> /usr/local/include -I/usr/pkg/include -I/usr/pkg/include       
> -I/usr/local_install/postgre
> sql-7.2.3/include    mapwms.c -o mapwms.o
> mapwms.c: In function `msWMSGetCapabilities':
> mapwms.c:705: syntax error before `,'
> gmake: *** [mapwms.o] Error 1

Hi,

I have committed a fix for this.  It looks as if you don't have any of
USE_GD_GIF, USE_GD_PNG, USE_GD_JPEG or USE_GD_WBMP defined for some reason
so there are none of the strings in the #ifdef selected.

However, even with my fix it is clear you aren't going to be able to operate
properly since you will have no formats supported.  I would suggest looking
into why none of the USE_GD_XXX constants are defined in your makefile.
When I compile mapwwms.c it looks like this:


gcc -c -g -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
-DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR     -DUSE_TIFF  -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS  -DUSE_THREAD 
-I/usr/include         -I/home/warmerda/gdal/port -I/home/warmerda/gdal/core 
-I/home/warmerda/gdal/ogr -I/home/warmerda/gdal/ogr/ogrsf_frmts -I/usr/local/include 
-I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww 
-DHAVE_CONFIG_H   mapwms.c -o mapwms.o

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-users mailing list