[geos-devel] [GEOS] #557: Build error on Mac

GEOS geos-trac at osgeo.org
Thu Jun 14 13:34:35 PDT 2012


#557: Build error on Mac
------------------------+---------------------------------------------------
 Reporter:  dburken     |       Owner:  geos-devel@…              
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:  3.3.5                     
Component:  Default     |     Version:  3.3.4                     
 Severity:  Unassigned  |    Keywords:                            
------------------------+---------------------------------------------------
 Svn revision 3673

 Darwin Kernel Version 11.4.0

 gcc version 4.2.1

 {{{
 In file included from /work/osgeo/geos/geos-svn/capi/geos_c.cpp:48:
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1196:9: warning: struct
 'WKTReader' was previously declared as a class
       [-Wmismatched-tags]
 typedef struct GEOSWKTReader_t GEOSWKTReader;
         ^
 /work/osgeo/geos/geos-svn/include/geos/io/WKTReader.h:58:16: note:
 previous use is here
 class GEOS_DLL WKTReader {
                ^
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1196:9: note: did you mean class
 here?
 typedef struct GEOSWKTReader_t GEOSWKTReader;
         ^~~~~~
         class
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1197:9: warning: struct
 'WKTWriter' was previously declared as a class
       [-Wmismatched-tags]
 typedef struct GEOSWKTWriter_t GEOSWKTWriter;
         ^
 /work/osgeo/geos/geos-svn/include/geos/io/WKTWriter.h:79:16: note:
 previous use is here
 class GEOS_DLL WKTWriter {
                ^
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1197:9: note: did you mean class
 here?
 typedef struct GEOSWKTWriter_t GEOSWKTWriter;
         ^~~~~~
         class
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1198:9: warning: struct
 'WKBReader' was previously declared as a class
       [-Wmismatched-tags]
 typedef struct GEOSWKBReader_t GEOSWKBReader;
         ^
 /work/osgeo/geos/geos-svn/include/geos/io/WKBReader.h:79:16: note:
 previous use is here
 class GEOS_DLL WKBReader {
                ^
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1198:9: note: did you mean class
 here?
 typedef struct GEOSWKBReader_t GEOSWKBReader;
         ^~~~~~
         class
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1199:9: warning: struct
 'WKBWriter' was previously declared as a class
       [-Wmismatched-tags]
 typedef struct GEOSWKBWriter_t GEOSWKBWriter;
         ^
 /work/osgeo/geos/geos-svn/include/geos/io/WKBWriter.h:72:16: note:
 previous use is here
 class GEOS_DLL WKBWriter {
                ^
 /work/osgeo/geos/geos-svn/capi/geos_c.h:1199:9: note: did you mean class
 here?
 typedef struct GEOSWKBWriter_t GEOSWKBWriter;
         ^~~~~~
         class
 /work/osgeo/geos/geos-svn/capi/geos_c.cpp:118:1: error: unknown type name
 'GEOSInterruptCallback'; did you mean
       'GEOSQueryCallback'?
 GEOSInterruptCallback*
 ^~~~~~~~~~~~~~~~~~~~~
 GEOSQueryCallback
 /work/osgeo/geos/geos-svn/capi/geos_c.h:138:16: note: 'GEOSQueryCallback'
 declared here
 typedef void (*GEOSQueryCallback)(void *item, void *userdata);
                ^
 /work/osgeo/geos/geos-svn/capi/geos_c.cpp:119:32: error: use of undeclared
 identifier 'GEOSInterruptCallback'; did you mean
       'GEOSQueryCallback'?
 GEOS_interruptRegisterCallback(GEOSInterruptCallback* cb)
                                ^
 /work/osgeo/geos/geos-svn/capi/geos_c.cpp:119:55: error: use of undeclared
 identifier 'cb'
 GEOS_interruptRegisterCallback(GEOSInterruptCallback* cb)
                                                       ^
 /work/osgeo/geos/geos-svn/capi/geos_c.cpp:119:58: error: expected ';'
 after top level declarator
 GEOS_interruptRegisterCallback(GEOSInterruptCallback* cb)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/557>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list