[geos-devel] 3.2.0 Preparations - Failed under MingW - Compiles but make check fails

Paul Ramsey pramsey at cleverelephant.ca
Thu May 28 10:24:30 EDT 2009


Looks like MinGW is sensitive to doubly included headers.

On Thu, May 28, 2009 at 6:35 AM, Obe, Regina <robe.dnd at cityofboston.gov> wrote:
> Paul,
>
> Doing a fresh checkout of trunk and then repeating the below under MingW
> makes things compile fine so I guess it was junk I had left over from
> before.
>
> However doing a
> make install
>
> followed by:
>
> make check
>
> gives lots of errors.  Everything is fine up thru xmltester, then start
> getting errors in threadtest.c -- too many to list - hear is a sampling.
> I presume its something wrong with my unistd.h or some include is being
> included twice (but if someone else can confirm its not just my MingW
> install).
>
>
> In file included from ../../source/headers/geos/io/WKTReader.h:21,
>                 from ../../source/headers/geos/io.h:56,
>                 from
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/unistd.h:10,
>                 from capi/threadtest.c:20:
> ../../source/headers/geos/geom/CoordinateSequence.h:100: error:
> conflicting types for 'Coordinate'
> ../../source/headers/geos/geom/Coordinate.h:85: error: previous
> definition of 'Coordinate' was here
> ../../source/headers/geos/geom/CoordinateSequence.h:100: error: syntax
> error before '&' token
> ../../source/headers/geos/geom/CoordinateSequence.h:154: error: syntax
> error before ':' token
> ../../source/headers/geos/geom/CoordinateSequence.h:171: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:172: error:
> redefinition of parameter 'add'
> ../../source/headers/geos/geom/CoordinateSequence.h:154: error: previous
> definition of 'add' was here
> ../../source/headers/geos/geom/CoordinateSequence.h:224: error:
> redefinition of parameter 'Coordinate'
> ../../source/headers/geos/geom/CoordinateSequence.h:100: error: previous
> definition of 'Coordinate' was here
> ../../source/headers/geos/geom/CoordinateSequence.h:224: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:235: error: storage
> class specified for parameter `CoordinateSequence'
> ../../source/headers/geos/geom/CoordinateSequence.h:235: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:248: error: storage
> class specified for parameter `bool'
> ../../source/headers/geos/geom/CoordinateSequence.h:248: error: syntax
> error before "hasRepeatedPoints"
> ../../source/headers/geos/geom/CoordinateSequence.h:254: error: storage
> class specified for parameter `CoordinateSequence'
> ../../source/headers/geos/geom/CoordinateSequence.h:254: error:
> redefinition of parameter 'CoordinateSequence'
> ../../source/headers/geos/geom/CoordinateSequence.h:235: error: previous
> definition of 'CoordinateSequence' was here
> ../../source/headers/geos/geom/CoordinateSequence.h:254: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:262: error: storage
> class specified for parameter `Coordinate'
> ../../source/headers/geos/geom/CoordinateSequence.h:262: error:
> redefinition of parameter 'Coordinate'
> ../../source/headers/geos/geom/CoordinateSequence.h:224: error: previous
> definition of 'Coordinate' was here
> ../../source/headers/geos/geom/CoordinateSequence.h:262: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:269: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:270: error: storage
> class specified for parameter `indexOf'
> ../../source/headers/geos/geom/CoordinateSequence.h:277: error: storage
> class specified for parameter `bool'
> ../../source/headers/geos/geom/CoordinateSequence.h:277: error:
> redefinition of parameter 'bool'
> ../../source/headers/geos/geom/CoordinateSequence.h:248: error: previous
> definition of 'bool' was here
> ../../source/headers/geos/geom/CoordinateSequence.h:277: error: syntax
> error before "equals"
> ../../source/headers/geos/geom/CoordinateSequence.h:281: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:281: error: storage
> class specified for parameter `scroll'
> ../../source/headers/geos/geom/CoordinateSequence.h:300: error: syntax
> error before '&' token
> ../../source/headers/geos/geom/CoordinateSequence.h:300: error: storage
> class specified for parameter `increasingDirection'
> ../../source/headers/geos/geom/CoordinateSequence.h:303: error: syntax
> error before '*' token
> ../../source/headers/geos/geom/CoordinateSequence.h:303: error: storage
> class specified for parameter `reverse'
> ../../source/headers/geos/geom/CoordinateSequence.h:314: error: syntax
> error before "virtual"
> In file included from ../../source/headers/geos/io.h:56,
>
> capi/threadtest.c:107: error: previous definition of 'GEOSGeometry' was
> here
> capi/threadtest.c:196: error: syntax error before '*' token
> capi/threadtest.c:198: error: storage class specified for parameter
> `wkt'
> capi/threadtest.c:199: error: syntax error before "FILE"
> capi/threadtest.c:202: error: syntax error before "size_t"
> capi/threadtest.c:205: error: syntax error before "input"
> capi/threadtest.c: At top level:
> ../../source/headers/geos/io/ByteOrderValues.h:40: warning: 'getInt'
> declared `static' but never defined
> ../../source/headers/geos/io/ByteOrderValues.h:41: warning: 'putInt'
> declared `static' but never defined
> ../../source/headers/geos/io/ByteOrderValues.h:43: warning: 'getLong'
> declared `static' but never defined
> ../../source/headers/geos/io/ByteOrderValues.h:44: warning: 'putLong'
> declared `static' but never defined
> ../../source/headers/geos/io/ByteOrderValues.h:46: warning: 'getDouble'
> declared `static' but never defined
> ../../source/headers/geos/io/ByteOrderValues.h:47: warning: 'putDouble'
> declared `static' but never defined
>
> etc.
>
>
>
>
> -----Original Message-----
> From: geos-devel-bounces at lists.osgeo.org
> [mailto:geos-devel-bounces at lists.osgeo.org] On Behalf Of Obe, Regina
> Sent: Thursday, May 28, 2009 8:21 AM
> To: GEOS Development List
> Subject: RE: [geos-devel] 3.2.0 Preparations - Failed under MingW
>
> Paul,
> Geos trunk doesn't compile for me under MingW. Haven't tried under VS
> 2008 yet.
>
> I haven't done a clean checkout so will try that next, but this is what
> I get under MingW, after doing an sh autogen.sh (maybe I need to upgrade
> my auto conf again)
>
> $ sh autogen.sh
> * Running /mingw/bin/libtoolize (2.2.4)
> \tOPTIONS = --force --copy
> libtoolize: putting auxiliary files in `.'.
> libtoolize: copying file `./ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `macros'.
> libtoolize: copying file `macros/libtool.m4'
> libtoolize: copying file `macros/ltoptions.m4'
> libtoolize: copying file `macros/ltsugar.m4'
> libtoolize: copying file `macros/ltversion.m4'
> libtoolize: copying file `macros/lt~obsolete.m4'
> * Running /bin/aclocal (1.8.2)
> /usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of
> AG_PATH_AU
> TOOPTS
>  run info '(automake)Extending aclocal'
>  or see
> http://sources.redhat.com/automake/automake.html#Extending%20aclocal
> * Running /bin/autoheader (2.59)
> * Running /bin/automake (1.8.2)
> \tOPTIONS = --add-missing --copy
> configure.in:10: installing `./config.guess'
> configure.in:10: installing `./config.sub'
> * Running /bin/autoconf (2.59)
> ======================================
> Now you are ready to run './configure'
>
> and then ./configure
>
> -- make works for a while and then fails with below
>
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I../../../source/headers
> -I../../../source/headers/geos -I../../../source/headers -g -O2
> -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -MT
> SnapIfNeededOverlayOp.lo -MD -MP -MF .deps/SnapIfNeededOverlayOp.Tpo -c
> snap/SnapIfNeededOverlayOp.cpp  -DDLL_EXPORT -DPIC -o
> .libs/SnapIfNeededOverlayOp.o
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I../../../source/headers
> -I../../../source/headers/geos -I../../../source/headers -g -O2
> -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -MT
> SnapIfNeededOverlayOp.lo -MD -MP -MF .deps/SnapIfNeededOverlayOp.Tpo -c
> snap/SnapIfNeededOverlayOp.cpp -o SnapIfNeededOverlayOp.o >/dev/null
> 2>&1
> make[4]: *** No rule to make target `FuzzyPointLocator.cpp', needed by
> `FuzzyPointLocator.lo'.  Stop.
> make[4]: Leaving directory
> `/D/SVNProjects/geos/trunk/source/operation/overlay'
> make[3]: *** [install-recursive] Error 1
> make[3]: Leaving directory
> `/D/SVNProjects/geos/trunk/source/operation/overlay'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/D/SVNProjects/geos/trunk/source/operation'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/D/SVNProjects/geos/trunk/source'
> make: *** [install-recursive] Error 1
>
> Thanks,
> Regina
>
> -----Original Message-----
> From: geos-devel-bounces at lists.osgeo.org
> [mailto:geos-devel-bounces at lists.osgeo.org] On Behalf Of Paul Ramsey
> Sent: Wednesday, May 27, 2009 3:27 PM
> To: GEOS Development List
> Subject: [geos-devel] 3.2.0 Preparations
>
> I have triaged most of the bugs in the tracker now, and I think we
> have a reasonable working set to examine and either fix or defer now
> under the 3.2 milestone. Once that list has been worked, we can move
> to an RC1 release.
>
> http://trac.osgeo.org/geos/report/3
>
> Paul
>
> --
> Paul Ramsey
> OpenGeo - http://opengeo.org
> PostGIS topical ointment. Cures slow maps.
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
> -----------------------------------------
> The substance of this message, including any attachments, may be
> confidential, legally privileged and/or exempt from disclosure
> pursuant to Massachusetts law. It is intended
> solely for the addressee. If you received this in error, please
> contact the sender and delete the material from any computer.
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
> -----------------------------------------
> The substance of this message, including any attachments, may be
> confidential, legally privileged and/or exempt from disclosure
> pursuant to Massachusetts law. It is intended
> solely for the addressee. If you received this in error, please
> contact the sender and delete the material from any computer.
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>


More information about the geos-devel mailing list