[Mapserver-users] mapserver nightly bulid compile problem
Aaron D. Hunt
hunt at zedxinc.com
Wed Feb 4 12:56:21 PST 2004
Mapserver compiles but now when I try perl mapscript I get
gcc -c -I/home/mapserver/mapserver_dev -I/home/mapserver//include -I/home/m
apserver//include -I/home/mapserver//include -I/home/mapserver//include -D_R
EENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/inclu
de/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"\" -DXS_VERSION=\"
\" -fPIC
-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DIGNORE_MISSING_DATA
-DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL mapscript_wrap.c
In file included from ../../map.h:34,
from mapscript_wrap.c:629:
../../cgiutil.h:37: conflicting types for `getline'
/usr/include/bits/stdio.h:103: previous declaration of `getline'
mapscript_wrap.c:1178: redefinition of `self'
mapscript_wrap.c:1178: `self' previously declared here
mapscript_wrap.c: In function `classObj_moveStyleUp':
mapscript_wrap.c:1178: redeclaration of `self'
mapscript_wrap.c:1178: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:1181: redefinition of `self'
mapscript_wrap.c:1181: `self' previously declared here
mapscript_wrap.c: In function `classObj_moveStyleDown':
mapscript_wrap.c:1181: redeclaration of `self'
mapscript_wrap.c:1181: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:1352: redefinition of `self'
mapscript_wrap.c:1352: `self' previously declared here
mapscript_wrap.c: In function `layerObj_applySLD':
mapscript_wrap.c:1352: redeclaration of `self'
mapscript_wrap.c:1352: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:1355: redefinition of `self'
mapscript_wrap.c:1355: `self' previously declared here
mapscript_wrap.c: In function `layerObj_applySLDURL':
mapscript_wrap.c:1355: redeclaration of `self'
mapscript_wrap.c:1355: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:1358: redefinition of `self'
mapscript_wrap.c:1358: `self' previously declared here
mapscript_wrap.c: In function `layerObj_generateSLD':
mapscript_wrap.c:1358: redeclaration of `self'
mapscript_wrap.c:1358: `self' previously declared here
mapscript_wrap.c:1359: warning: return makes pointer from integer without a
cast
mapscript_wrap.c: At top level:
mapscript_wrap.c:1361: redefinition of `self'
mapscript_wrap.c:1361: `self' previously declared here
mapscript_wrap.c: In function `layerObj_moveClassUp':
mapscript_wrap.c:1361: redeclaration of `self'
mapscript_wrap.c:1361: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:1364: redefinition of `self'
mapscript_wrap.c:1364: `self' previously declared here
mapscript_wrap.c: In function `layerObj_moveClassDown':
mapscript_wrap.c:1364: redeclaration of `self'
mapscript_wrap.c:1364: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:2308: redefinition of `self'
mapscript_wrap.c:2308: `self' previously declared here
mapscript_wrap.c: In function `mapObj_applySLD':
mapscript_wrap.c:2308: redeclaration of `self'
mapscript_wrap.c:2308: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:2311: redefinition of `self'
mapscript_wrap.c:2311: `self' previously declared here
mapscript_wrap.c: In function `mapObj_applySLDURL':
mapscript_wrap.c:2311: redeclaration of `self'
mapscript_wrap.c:2311: `self' previously declared here
mapscript_wrap.c: At top level:
mapscript_wrap.c:2314: redefinition of `self'
mapscript_wrap.c:2314: `self' previously declared here
mapscript_wrap.c: In function `mapObj_generateSLD':
mapscript_wrap.c:2314: redeclaration of `self'
mapscript_wrap.c:2314: `self' previously declared here
mapscript_wrap.c:2315: warning: return makes pointer from integer without a
cast
make: *** [mapscript_wrap.o] Error 1
----- Original Message -----
From: "Daniel Morissette" <dmorissette at dmsolutions.ca>
To: "Aaron D. Hunt" <hunt at zedxinc.com>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Wednesday, February 04, 2004 3:19 PM
Subject: Re: [Mapserver-users] mapserver nightly bulid compile problem
> 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 at dmsolutions.ca
> DM Solutions Group http://www.dmsolutions.ca/
> ------------------------------------------------------------
More information about the MapServer-users
mailing list