[postgis-devel] [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW
PostGIS
trac at osgeo.org
Mon Oct 26 14:38:20 PDT 2009
#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: postgis 1.5.0
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by robe):
Olivier,
Sorry for taking so long to get back to you. Under a lot of time
pressures with other projects this week so you probably won't here much
from me for at least another week or 2.
Regarding the attached. It doesn't compile for me at all. Gives errors
like
{{{
lwgeom_in_gml.c:2179: warning: type defaults to `int' in declaration of
`name'
lwgeom_in_gml.c:2179: error: syntax error before '<' token
lwgeom_in_gml.c:2181: warning: type defaults to `int' in declaration of
`name'
lwgeom_in_gml.c:2181: error: syntax error before '<' token
lwgeom_in_gml.c:2183: warning: type defaults to `int' in declaration of
`name'
lwgeom_in_gml.c:2183: error: syntax error before '<' token
lwgeom_in_gml.c:2185: warning: type defaults to `int' in declaration of
`name'
lwgeom_in_gml.c:2185: error: syntax error before '<' token
lwgeom_in_gml.c:2187: warning: type defaults to `int' in declaration of
`name'
lwgeom_in_gml.c:2187: error: syntax error before '<' token
lwgeom_in_gml.c:2189: warning: type defaults to `int' in declaration of
`name'
lwgeom_in_gml.c:2189: error: syntax error before '<' token
lwgeom_in_gml.c:2195: warning: type defaults to `int' in declaration of
`geom'
lwgeom_in_gml.c:2195: error: redefinition of 'geom'
lwgeom_in_gml.c:2173: error: previous definition of 'geom' was here
lwgeom_in_gml.c:2195: error: redefinition of 'geom'
lwgeom_in_gml.c:247: error: previous definition of 'geom' was here
lwgeom_in_gml.c:2195: error: syntax error before ')' token
lwgeom_in_gml.c:2197: error: syntax error before ')' token
lwgeom_in_gml.c:2223: warning: type defaults to `int' in declaration of
`xa'
lwgeom_in_gml.c:2223: error: redefinition of 'xa'
lwgeom_in_gml.c:2149: error: previous definition of 'xa' was here
lwgeom_in_gml.c:2223: error: redefinition of 'xa'
lwgeom_in_gml.c:1401: error: previous definition of 'xa' was here
lwgeom_in_gml.c:2223: warning: data definition has no type or storage
class
lwgeom_in_gml.c:2223: error: syntax error before '<' token
}}}
and goes on and on. The gml in BTW works fine on my OpenSUSE 10.3 (using
the same libxml source) (haven't tried my more finicky 11). Even going
thru the gardent test seems to work fine.
I think its an issue with compiling libxml2 under mingW. I searched, and
it seems stories are the same with the libxml crashing when compiled under
mingw. Possibly threading issues or something. the compile of libxml2
also gives a ton of warnings about exceeded length of the form
{{{
.libs/lt-testModule.c:285: warning: string length `1611' is greater than
the length `509' ISO C89 compilers are required to support
}}}
So I fear this may be beyond my abilities to solve. Perhaps Mark can take
a stab at it when he has the time to see if there is a trick to getting
this to behave correctly.
My newer mingw 4.4 compiler refuses to even compile the libxml2.
Thanks,
Regina
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
More information about the postgis-devel
mailing list