[Mapserver-users] mapserver nightly bulid compile problem

Daniel Morissette dmorissette@dmsolutions.ca
Wed, 04 Feb 2004 15:19:39 -0500


Aaron D. Hunt wrote:
>  
> I get
>  
> clude -I/usr/local/pgsql/include  -I/home/mapserver//include   
> mapogr.cpp -o mapogr.o
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
> -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR   -DUSE_MING_FLASH   
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   
> -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS    -I/home/mapserver//include  
> -I/home/mapserver//include       -I/home/mapserver//include 
> -I/home/mapserver//include -I/usr/local/pgsql/include  
> -I/home/mapserver//include   mappostgis.c -o mappostgis.o
> mappostgis.c:33: parse error before "__extension__"
> mappostgis.c:33: warning: type defaults to `int' in declaration of `__res'
> mappostgis.c:33: `__c' undeclared here (not in a function)
> mappostgis.c:33: `__c' undeclared here (not in a function)
> mappostgis.c:33: `__c' undeclared here (not in a function)


I ran into this as well and fixed it in CVS a few minutes ago for both 
the 4.0 and 4.1 branches.

If you want to patch your source code locally, just remove the 
definition of function tolower() at line 33 in mappostgis.c and aadd the 
following line at the top of the file:

#include <ctype.h>

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette@dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users