[Mapserver-users] Mapscript Java Interface - Compiling error

Jose Maria Michia josemariamichia at yahoo.com.ar
Tue Feb 17 08:01:43 PST 2004


--0-1142758087-1077033703=:93059
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi, I need help whit this error, obtained compiling Mapscript Java interface. The same error occur with version 4.0.1. The CGI application work normally.
 
root at nirvana:/usr/local/src/mapserver-4.0/mapscript/java# make
/usr/bin/swig -java -shadow -package edu.umn.gis.mapscript mapscript.i
Syntax error
../../map.h:453. Syntax error in input.
../../map.h:473. Syntax error in input.
../../map.h:478. Syntax error in input.
../../map.h:487. Syntax error in input.
../../map.h:493. Syntax error in input.
../mapzoom.i:688. Identifier 'mapObj' redeclared (ignored).
../../map.h:823. Previous declaration of 'mapObj'
mapscript.i:200. Identifier 'errorObj' redeclared (ignored).
../../maperror.h:52. Previous declaration of 'errorObj'
mapscript.i:540. Identifier 'mapObj' redeclared (ignored).
../../map.h:823. Previous declaration of 'mapObj'
mapscript.i:561. Identifier 'symbolSetObj' redeclared (ignored).
../../map.h:538. Previous declaration of 'symbolSetObj'
mapscript.i:745. Identifier 'layerObj' redeclared (ignored).
../../map.h:748. Previous declaration of 'layerObj'
mapscript.i:816. Identifier 'classObj' redeclared (ignored).
../../map.h:448. Previous declaration of 'classObj'
mapscript.i:849. Identifier 'pointObj' redeclared (ignored).
../../mapprimitive.h:18. Previous declaration of 'pointObj'
mapscript.i:910. Identifier 'lineObj' redeclared (ignored).
../../mapprimitive.h:23. Previous declaration of 'lineObj'
mapscript.i:1019. Identifier 'shapeObj' redeclared (ignored).
../../mapprimitive.h:42. Previous declaration of 'shapeObj'
mapscript.i:1067. Identifier 'rectObj' redeclared (ignored).
../../mapprimitive.h:7. Previous declaration of 'rectObj'
mapscript.i:1142. Identifier 'shapefileObj' redeclared (ignored).
../../mapshape.h:131. Previous declaration of 'shapefileObj'
mapscript.i:1260. Identifier 'imageObj' redeclared (ignored).
../../map.h:878. Previous declaration of 'imageObj'
mapscript.i:1294. Identifier 'outputFormatObj' redeclared (ignored).
../../map.h:314. Previous declaration of 'outputFormatObj'
mapscript.i:1322. Identifier 'projectionObj' redeclared (ignored).
../../mapproject.h:28. Previous declaration of 'projectionObj'
mapscript.i:1365. Identifier 'DBFInfo' redeclared (ignored).
../../mapshape.h:96. Previous declaration of 'DBFInfo'
/usr/share/swig1.3/constraints.i:89.  Warning.  Deprecated typemap feature ($source/$target).
swig:  The use of $source and $target in a typemap declaration is deprecated.
swig:  For typemaps related to argument input (in,ignore,default,arginit,check), replace
swig:  $source by $input and $target by $1.   For typemaps related to return values (out,
swig:  argout,ret,except), replace $source by $1 and $target by $result.  See the file
swig:  Doc/Manual/Typemaps.html for complete details.
/usr/share/swig1.3/constraints.i:108.  Warning.  Deprecated typemap feature ($source/$target).
/usr/share/swig1.3/constraints.i:127.  Warning.  Deprecated typemap feature ($source/$target).
/usr/share/swig1.3/constraints.i:146.  Warning.  Deprecated typemap feature ($source/$target).
/usr/share/swig1.3/constraints.i:165.  Warning.  Deprecated typemap feature ($source/$target).
/usr/share/swig1.3/constraints.i:175.  Warning.  Deprecated typemap feature ($source/$target).
/usr/share/swig1.3/constraints.i:187.  Warning.  Deprecated typemap feature ($source/$target).
/usr/share/swig1.3/constraints.i:197.  Warning.  Deprecated typemap feature ($source/$target).
/usr/share/swig1.3/constraints.i:207.  Warning.  Deprecated typemap feature ($source/$target).
gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/jdk1.4/include -I/usr/local/jdk1.4/include/linux mapscript_wrap.c
mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscript_set_1labelCacheObj':
mapscript_wrap.c:10975: parse error before `%'
mapscript_wrap.c:10977: `arg1' undeclared (first use in this function)
mapscript_wrap.c:10977: (Each undeclared identifier is reported only once
mapscript_wrap.c:10977: for each function it appears in.)
mapscript_wrap.c:10977: parse error before `%'
mapscript_wrap.c:10978: parse error before `='
mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscript_get_1labelCacheObj':
mapscript_wrap.c:10985: parse error before `%'
mapscript_wrap.c:10987: `result' undeclared (first use in this function)
mapscript_wrap.c:10987: parse error before `%'
mapscript_wrap.c:10989: parse error before `%'
make: *** [mapscript_so] Error 1

Saludos
José María Michia
http://visualizador.rosario.gov.ar




---------------------------------
 ¿Buscás un auto?
Encontralo en Yahoo! Autos
¡Más de 4000 clasificados todos los días!
Usados - 0 km - Vendé el tuyo
--0-1142758087-1077033703=:93059
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>
<DIV>Hi, I need help whit this error, obtained compiling Mapscript Java interface. The same error occur with version 4.0.1. The CGI application work normally.</DIV>
<DIV> </DIV>
<DIV><A href="mailto:root at nirvana:/usr/local/src/mapserver-4.0/mapscript/java#">root at nirvana:/usr/local/src/mapserver-4.0/mapscript/java#</A> make<BR>/usr/bin/swig -java -shadow -package edu.umn.gis.mapscript mapscript.i<BR>Syntax error<BR>../../map.h:453. Syntax error in input.<BR>../../map.h:473. Syntax error in input.<BR>../../map.h:478. Syntax error in input.<BR>../../map.h:487. Syntax error in input.<BR>../../map.h:493. Syntax error in input.<BR>../mapzoom.i:688. Identifier 'mapObj' redeclared (ignored).<BR>../../map.h:823. Previous declaration of 'mapObj'<BR>mapscript.i:200. Identifier 'errorObj' redeclared (ignored).<BR>../../maperror.h:52. Previous declaration of 'errorObj'<BR>mapscript.i:540. Identifier 'mapObj' redeclared (ignored).<BR>../../map.h:823. Previous declaration of 'mapObj'<BR>mapscript.i:561. Identifier 'symbolSetObj' redeclared (ignored).<BR>../../map.h:538. Previous declaration of 'symbolSetObj'<BR>mapscript.i:745. Identifier 'layerObj' redeclared
 (ignored).<BR>../../map.h:748. Previous declaration of 'layerObj'<BR>mapscript.i:816. Identifier 'classObj' redeclared (ignored).<BR>../../map.h:448. Previous declaration of 'classObj'<BR>mapscript.i:849. Identifier 'pointObj' redeclared (ignored).<BR>../../mapprimitive.h:18. Previous declaration of 'pointObj'<BR>mapscript.i:910. Identifier 'lineObj' redeclared (ignored).<BR>../../mapprimitive.h:23. Previous declaration of 'lineObj'<BR>mapscript.i:1019. Identifier 'shapeObj' redeclared (ignored).<BR>../../mapprimitive.h:42. Previous declaration of 'shapeObj'<BR>mapscript.i:1067. Identifier 'rectObj' redeclared (ignored).<BR>../../mapprimitive.h:7. Previous declaration of 'rectObj'<BR>mapscript.i:1142. Identifier 'shapefileObj' redeclared (ignored).<BR>../../mapshape.h:131. Previous declaration of 'shapefileObj'<BR>mapscript.i:1260. Identifier 'imageObj' redeclared (ignored).<BR>../../map.h:878. Previous declaration of 'imageObj'<BR>mapscript.i:1294. Identifier 'outputFormatObj'
 redeclared (ignored).<BR>../../map.h:314. Previous declaration of 'outputFormatObj'<BR>mapscript.i:1322. Identifier 'projectionObj' redeclared (ignored).<BR>../../mapproject.h:28. Previous declaration of 'projectionObj'<BR>mapscript.i:1365. Identifier 'DBFInfo' redeclared (ignored).<BR>../../mapshape.h:96. Previous declaration of 'DBFInfo'<BR>/usr/share/swig1.3/constraints.i:89.  Warning.  Deprecated typemap feature ($source/$target).<BR>swig:  The use of $source and $target in a typemap declaration is deprecated.<BR>swig:  For typemaps related to argument input (in,ignore,default,arginit,check), replace<BR>swig:  $source by $input and $target by $1.   For typemaps related to return values (out,<BR>swig:  argout,ret,except), replace $source by $1 and $target by $result.  See the file<BR>swig:  Doc/Manual/Typemaps.html for complete details.<BR>/usr/share/swig1.3/constraints.i:108.  Warning.  Deprecated typemap feature
 ($source/$target).<BR>/usr/share/swig1.3/constraints.i:127.  Warning.  Deprecated typemap feature ($source/$target).<BR>/usr/share/swig1.3/constraints.i:146.  Warning.  Deprecated typemap feature ($source/$target).<BR>/usr/share/swig1.3/constraints.i:165.  Warning.  Deprecated typemap feature ($source/$target).<BR>/usr/share/swig1.3/constraints.i:175.  Warning.  Deprecated typemap feature ($source/$target).<BR>/usr/share/swig1.3/constraints.i:187.  Warning.  Deprecated typemap feature ($source/$target).<BR>/usr/share/swig1.3/constraints.i:197.  Warning.  Deprecated typemap feature ($source/$target).<BR>/usr/share/swig1.3/constraints.i:207.  Warning.  Deprecated typemap feature ($source/$target).<BR>gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/local/jdk1.4/include -I/usr/local/jdk1.4/include/linux
 mapscript_wrap.c<BR>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscript_set_1labelCacheObj':<BR>mapscript_wrap.c:10975: parse error before `%'<BR>mapscript_wrap.c:10977: `arg1' undeclared (first use in this function)<BR>mapscript_wrap.c:10977: (Each undeclared identifier is reported only once<BR>mapscript_wrap.c:10977: for each function it appears in.)<BR>mapscript_wrap.c:10977: parse error before `%'<BR>mapscript_wrap.c:10978: parse error before `='<BR>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscript_get_1labelCacheObj':<BR>mapscript_wrap.c:10985: parse error before `%'<BR>mapscript_wrap.c:10987: `result' undeclared (first use in this function)<BR>mapscript_wrap.c:10987: parse error before `%'<BR>mapscript_wrap.c:10989: parse error before `%'<BR>make: *** [mapscript_so] Error 1<BR></DIV>
<DIV>Saludos</DIV>
<DIV>José María Michia</DIV>
<DIV><A href="http://visua/">http://visua</A>lizador.rosario.gov.ar</DIV></DIV><p><br><hr size=1>
<a href="http://ar.rd.yahoo.com/mail/welcome/*http://ar.autos.yahoo.com"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/fr/icon/car.gif" width=16 height=16 border=0></a> <b>¿Buscás un auto?</b><br>
Encontralo en <a href="http://ar.rd.yahoo.com/mail/welcome/*http://ar.autos.yahoo.com"><B>Yahoo! Autos</B></a><br><font color=#FF6600><B>¡Más de 4000 clasificados todos los días!</B></font><br>
<small><a href="http://ar.rd.yahoo.com/mail/welcome/*http://yahoo.deautos.com/usados">Usados</a> - <a href="http://ar.rd.yahoo.com/mail/welcome/*http://yahoo.deautos.com/ofertas">0 km</a> - <a href="http://ar.rd.yahoo.com/mail/welcome/*http://ar.autos.yahoo.com/vender/">Vendé el tuyo</a></small>
--0-1142758087-1077033703=:93059--



More information about the MapServer-users mailing list