Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDAL installation via pip exits with errors #2827

Closed
AndreasLuckert opened this issue Aug 3, 2020 · 13 comments
Closed

GDAL installation via pip exits with errors #2827

AndreasLuckert opened this issue Aug 3, 2020 · 13 comments

Comments

@AndreasLuckert
Copy link

AndreasLuckert commented Aug 3, 2020

Expected behavior and actual behavior.

I wanted to install it via pip, but got the following console output:

Collecting gdal
  Using cached GDAL-3.1.2.tar.gz (593 kB)
Building wheels for collected packages: gdal
  Building wheel for gdal (setup.py): started
  Building wheel for gdal (setup.py): finished with status 'error'
  Running setup.py clean for gdal
Failed to build gdal
Installing collected packages: gdal
    Running setup.py install for gdal: started
    Running setup.py install for gdal: finished with status 'error'
The error output was:

  ERROR: Command errored out with exit status 1:
   command: /home/linuxbrew/.linuxbrew/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-slie5dz0/gdal/setup.py'"'"'; __file__='"'"'/tmp/pip-install-slie5dz0/gdal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-p5ifeihk
       cwd: /tmp/pip-install-slie5dz0/gdal/
  Complete output (1589 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  copying gdal.py -> build/lib.linux-x86_64-3.8
  copying ogr.py -> build/lib.linux-x86_64-3.8
  copying osr.py -> build/lib.linux-x86_64-3.8
  copying gdalconst.py -> build/lib.linux-x86_64-3.8
  copying gdalnumeric.py -> build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/osr.py -> build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/ogr.py -> build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/gdal.py -> build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/__init__.py -> build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/gdalconst.py -> build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/gnm.py -> build/lib.linux-x86_64-3.8/osgeo
  copying osgeo/gdal_array.py -> build/lib.linux-x86_64-3.8/osgeo
  /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/setuptools/lib2to3_ex.py:39: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
    warnings.warn(
  Fixing build/lib.linux-x86_64-3.8/gdal.py build/lib.linux-x86_64-3.8/ogr.py build/lib.linux-x86_64-3.8/osr.py build/lib.linux-x86_64-3.8/gdalconst.py build/lib.linux-x86_64-3.8/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py
  Skipping optional fixer: ws_comma
  Fixing build/lib.linux-x86_64-3.8/gdal.py build/lib.linux-x86_64-3.8/ogr.py build/lib.linux-x86_64-3.8/osr.py build/lib.linux-x86_64-3.8/gdalconst.py build/lib.linux-x86_64-3.8/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py
  Skipping optional fixer: ws_comma
  running build_ext
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o -std=c++11
  building 'osgeo._gdal' extension
  building 'osgeo._gdalconst' extension
  creating build/temp.linux-x86_64-3.8
  building 'osgeo._osr' extension
  creating build/temp.linux-x86_64-3.8/extensions
  creating build/temp.linux-x86_64-3.8/extensions
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/gdal_wrap.o -std=c++11 -I/usr/include/gdal
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gdalconst_wrap.c -o build/temp.linux-x86_64-3.8/extensions/gdalconst_wrap.o -I/usr/include/gdal
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/osr_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/osr_wrap.o -std=c++11 -I/usr/include/gdal
  building 'osgeo._ogr' extension
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/ogr_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/ogr_wrap.o -std=c++11 -I/usr/include/gdal
  extensions/gdalconst_wrap.c: In function 'PyInit__gdalconst':
  extensions/gdalconst_wrap.c:3879:71: error: 'GDAL_OF_MULTIDIM_RASTER' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "OF_MULTIDIM_RASTER",SWIG_From_int((int)(GDAL_OF_MULTIDIM_RASTER)));
                                                                         ^
  extensions/gdalconst_wrap.c:3879:71: note: each undeclared identifier is reported only once for each function it appears in
  extensions/gdalconst_wrap.c:3903:71: error: 'GDAL_DIM_TYPE_HORIZONTAL_X' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "DIM_TYPE_HORIZONTAL_X",SWIG_FromCharPtr(GDAL_DIM_TYPE_HORIZONTAL_X));
                                                                         ^
  extensions/gdalconst_wrap.c:3904:71: error: 'GDAL_DIM_TYPE_HORIZONTAL_Y' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "DIM_TYPE_HORIZONTAL_Y",SWIG_FromCharPtr(GDAL_DIM_TYPE_HORIZONTAL_Y));
                                                                         ^
  extensions/gdalconst_wrap.c:3905:67: error: 'GDAL_DIM_TYPE_VERTICAL' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "DIM_TYPE_VERTICAL",SWIG_FromCharPtr(GDAL_DIM_TYPE_VERTICAL));
                                                                     ^
  extensions/gdalconst_wrap.c:3906:67: error: 'GDAL_DIM_TYPE_TEMPORAL' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "DIM_TYPE_TEMPORAL",SWIG_FromCharPtr(GDAL_DIM_TYPE_TEMPORAL));
                                                                     ^
  extensions/gdalconst_wrap.c:3907:69: error: 'GDAL_DIM_TYPE_PARAMETRIC' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "DIM_TYPE_PARAMETRIC",SWIG_FromCharPtr(GDAL_DIM_TYPE_PARAMETRIC));
                                                                       ^
  extensions/gdalconst_wrap.c:3935:66: error: 'GRTT_THEMATIC' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "GRTT_THEMATIC",SWIG_From_int((int)(GRTT_THEMATIC)));
                                                                    ^
  extensions/gdalconst_wrap.c:3936:67: error: 'GRTT_ATHEMATIC' undeclared (first use in this function)
     SWIG_Python_SetConstant(d, "GRTT_ATHEMATIC",SWIG_From_int((int)(GRTT_ATHEMATIC)));
                                                                     ^
  building 'osgeo._gnm' extension
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gnm_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/gnm_wrap.o -std=c++11 -I/usr/include/gdal
  extensions/gdal_wrap.cpp:3209:9: error: 'GDALExtendedDataTypeHS' does not name a type
   typedef GDALExtendedDataTypeHS GDALExtendedDataTypeHS;
           ^
  extensions/gdal_wrap.cpp:3210:9: error: 'GDALEDTComponentHS' does not name a type
   typedef GDALEDTComponentHS GDALEDTComponentHS;
           ^
  extensions/gdal_wrap.cpp:3211:9: error: 'GDALGroupHS' does not name a type
   typedef GDALGroupHS GDALGroupHS;
           ^
  extensions/gdal_wrap.cpp:3212:9: error: 'GDALMDArrayHS' does not name a type
   typedef GDALMDArrayHS GDALMDArrayHS;
           ^
  extensions/gdal_wrap.cpp:3213:9: error: 'GDALAttributeHS' does not name a type
   typedef GDALAttributeHS GDALAttributeHS;
           ^
  extensions/gdal_wrap.cpp:3214:9: error: 'GDALDimensionHS' does not name a type
   typedef GDALDimensionHS GDALDimensionHS;
           ^
  extensions/gdal_wrap.cpp:4117:1: error: 'VSIDIR' does not name a type
   VSIDIR* wrapper_VSIOpenDir( const char * utf8_path,
   ^
  extensions/ogr_wrap.cpp: In function 'int ValidateOGRFieldSubType(OGRFieldSubType)':
  extensions/ogr_wrap.cpp:4897:18: error: 'OFSTJSON' was not declared in this scope
               case OFSTJSON:
                    ^
  extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* CreateGeometryFromEsriJson(const char*)':
  extensions/ogr_wrap.cpp:5075:96: error: 'OGR_G_CreateGeometryFromEsriJson' was not declared in this scope
       OGRGeometryShadow* geom = (OGRGeometryShadow*)OGR_G_CreateGeometryFromEsriJson(input_string);
                                                                                                  ^
  extensions/gdal_wrap.cpp:4234:38: error: 'VSIDIR' was not declared in this scope
   DirEntry* wrapper_VSIGetNextDirEntry(VSIDIR* dir)
                                        ^
  extensions/gdal_wrap.cpp:4234:46: error: 'dir' was not declared in this scope
   DirEntry* wrapper_VSIGetNextDirEntry(VSIDIR* dir)
                                                ^
  extensions/gdal_wrap.cpp:4235:1: error: expected ',' or ';' before '{' token
   {
   ^
  extensions/ogr_wrap.cpp: In function 'void OGRGeometryShadow_SwapXY(OGRGeometryShadow*)':
  extensions/ogr_wrap.cpp:5323:22: error: 'OGR_G_SwapXY' was not declared in this scope
       OGR_G_SwapXY(self);
                        ^
  extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeometryShadow_MakeValid(OGRGeometryShadow*)':
  extensions/ogr_wrap.cpp:5350:53: error: 'OGR_G_MakeValid' was not declared in this scope
       return (OGRGeometryShadow*) OGR_G_MakeValid(self);
                                                       ^
  extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeometryShadow_RemoveLowerDimensionSubGeoms(OGRGeometryShadow*)':
  extensions/ogr_wrap.cpp:5353:72: error: 'OGR_G_RemoveLowerDimensionSubGeoms' was not declared in this scope
       return (OGRGeometryShadow*) OGR_G_RemoveLowerDimensionSubGeoms(self);
                                                                          ^
  extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeometryShadow_Transform__SWIG_1(OGRGeometryShadow*, OGRGeomTransformerShadow*)':
  extensions/ogr_wrap.cpp:5505:79: error: 'OGR_GeomTransformer_Transform' was not declared in this scope
       return (OGRGeometryShadow*)OGR_GeomTransformer_Transform(transformer, self);
                                                                                 ^
  extensions/ogr_wrap.cpp: In function 'OGRGeomTransformerShadow* new_OGRGeomTransformerShadow(OSRCoordinateTransformationShadow*, char**)':
  extensions/ogr_wrap.cpp:5508:50: error: 'OGR_GeomTransformer_Create' was not declared in this scope
       return OGR_GeomTransformer_Create(ct, options);
                                                    ^
  extensions/ogr_wrap.cpp: In function 'void delete_OGRGeomTransformerShadow(OGRGeomTransformerShadow*)':
  extensions/ogr_wrap.cpp:5511:39: error: 'OGR_GeomTransformer_Destroy' was not declared in this scope
       OGR_GeomTransformer_Destroy( self );
                                         ^
  extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeomTransformerShadow_Transform(OGRGeomTransformerShadow*, OGRGeometryShadow*)':
  extensions/ogr_wrap.cpp:5514:76: error: 'OGR_GeomTransformer_Transform' was not declared in this scope
       return (OGRGeometryShadow*)OGR_GeomTransformer_Transform(self, src_geom);
                                                                              ^
  extensions/osr_wrap.cpp: In function 'const char* OSRSpatialReferenceShadow_GetName(OSRSpatialReferenceShadow*)':
  extensions/osr_wrap.cpp:3688:29: error: 'OSRGetName' was not declared in this scope
       return OSRGetName( self );
                               ^
  extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_IsSame(OSRSpatialReferenceShadow*, OSRSpatialReferenceShadow*, char**)':
  extensions/osr_wrap.cpp:3760:44: error: 'OSRIsSameEx' was not declared in this scope
       return OSRIsSameEx( self, rhs, options );
                                              ^
  extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_IsDerivedGeographic(OSRSpatialReferenceShadow*)':
  extensions/osr_wrap.cpp:3772:39: error: 'OSRIsDerivedGeographic' was not declared in this scope
       return OSRIsDerivedGeographic(self);
                                         ^
  extensions/osr_wrap.cpp: In function 'OSRAreaOfUse* OSRSpatialReferenceShadow_GetAreaOfUse(OSRSpatialReferenceShadow*)':
  extensions/osr_wrap.cpp:3967:26: error: 'OSRGetAreaOfUse' was not declared in this scope
                       &name) )
                            ^
  extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_GetAxesCount(OSRSpatialReferenceShadow*)':
  extensions/osr_wrap.cpp:3979:32: error: 'OSRGetAxesCount' was not declared in this scope
       return OSRGetAxesCount(self);
                                  ^
  extensions/osr_wrap.cpp: At global scope:
  extensions/osr_wrap.cpp:3986:12: error: 'OSRAxisMappingStrategy' does not name a type
   SWIGINTERN OSRAxisMappingStrategy OSRSpatialReferenceShadow_GetAxisMappingStrategy(OSRSpatialReferenceShadow *self){
              ^
  extensions/osr_wrap.cpp:3989:98: error: 'OSRAxisMappingStrategy' has not been declared
   SWIGINTERN void OSRSpatialReferenceShadow_SetAxisMappingStrategy(OSRSpatialReferenceShadow *self,OSRAxisMappingStrategy strategy){
                                                                                                    ^
  extensions/osr_wrap.cpp: In function 'void OSRSpatialReferenceShadow_SetAxisMappingStrategy(OSRSpatialReferenceShadow*, int)':
  extensions/osr_wrap.cpp:3990:45: error: 'OSRSetAxisMappingStrategy' was not declared in this scope
       OSRSetAxisMappingStrategy(self, strategy);
                                               ^
  extensions/osr_wrap.cpp: In function 'void OSRSpatialReferenceShadow_GetDataAxisToSRSAxisMapping(OSRSpatialReferenceShadow*, int*, const int**)':
  extensions/osr_wrap.cpp:3993:57: error: 'OSRGetDataAxisToSRSAxisMapping' was not declared in this scope
         *pList = OSRGetDataAxisToSRSAxisMapping(self, nLen);
                                                           ^
  extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_SetDataAxisToSRSAxisMapping(OSRSpatialReferenceShadow*, int, int*)':
  extensions/osr_wrap.cpp:4027:61: error: 'OSRSetDataAxisToSRSAxisMapping' was not declared in this scope
       return OSRSetDataAxisToSRSAxisMapping(self, nList, pList);
                                                               ^
  extensions/osr_wrap.cpp: In function 'void OSRSpatialReferenceShadow_FindMatches(OSRSpatialReferenceShadow*, char**, OSRSpatialReferenceShadow***, int*, int**)':
  extensions/osr_wrap.cpp:4048:76: error: 'OSRFindMatches' was not declared in this scope
           *matches = OSRFindMatches(self, options, nvalues, confidence_values);
                                                                              ^
  extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_SetVerticalPerspective(OSRSpatialReferenceShadow*, double, double, double, double, double, double)':
  extensions/osr_wrap.cpp:4236:81: error: 'OSRSetVerticalPerspective' was not declared in this scope
           topoOriginLat, topoOriginLon, topoOriginHeight, viewPointHeight, fe, fn );
                                                                                   ^
  extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_AddGuessedTOWGS84(OSRSpatialReferenceShadow*)':
  extensions/osr_wrap.cpp:4278:39: error: 'OSRAddGuessedTOWGS84' was not declared in this scope
       return OSRAddGuessedTOWGS84( self );
                                         ^
  extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_ExportToWkt(OSRSpatialReferenceShadow*, char**, char**)':
  extensions/osr_wrap.cpp:4337:52: error: 'OSRExportToWktEx' was not declared in this scope
       return OSRExportToWktEx( self, argout, options );
                                                      ^
  extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_ExportToPROJJSON(OSRSpatialReferenceShadow*, char**, char**)':
  extensions/osr_wrap.cpp:4343:55: error: 'OSRExportToPROJJSON' was not declared in this scope
       return OSRExportToPROJJSON( self, argout, options );
                                                         ^
  extensions/osr_wrap.cpp: In function 'OSRSpatialReferenceShadow* OSRSpatialReferenceShadow_ConvertToOtherProjection(OSRSpatialReferenceShadow*, const char*, char**)':
  extensions/osr_wrap.cpp:4379:71: error: 'OSRConvertToOtherProjection' was not declared in this scope
       return OSRConvertToOtherProjection(self, other_projection, options);
                                                                         ^
  extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_PromoteTo3D(OSRSpatialReferenceShadow*, const char*)':
  extensions/osr_wrap.cpp:4382:37: error: 'OSRPromoteTo3D' was not declared in this scope
       return OSRPromoteTo3D(self, name);
                                       ^
  extensions/osr_wrap.cpp: At global scope:
  extensions/osr_wrap.cpp:4384:12: error: 'OGRCoordinateTransformationOptions' does not name a type
   SWIGINTERN OGRCoordinateTransformationOptions *new_OGRCoordinateTransformationOptions(){
              ^
  extensions/osr_wrap.cpp:4387:59: error: variable or field 'delete_OGRCoordinateTransformationOptions' declared void
   SWIGINTERN void delete_OGRCoordinateTransformationOptions(OGRCoordinateTransformationOptions *self){
                                                             ^
  extensions/osr_wrap.cpp:4387:59: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
  extensions/osr_wrap.cpp:4387:95: error: 'self' was not declared in this scope
   SWIGINTERN void delete_OGRCoordinateTransformationOptions(OGRCoordinateTransformationOptions *self){
                                                                                                 ^
  extensions/osr_wrap.cpp:4390:70: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                        ^
  extensions/osr_wrap.cpp:4390:106: error: 'self' was not declared in this scope
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                            ^
  extensions/osr_wrap.cpp:4390:111: error: expected primary-expression before 'double'
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                 ^
  extensions/osr_wrap.cpp:4390:135: error: expected primary-expression before 'double'
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                         ^
  extensions/osr_wrap.cpp:4390:159: error: expected primary-expression before 'double'
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                 ^
  extensions/osr_wrap.cpp:4390:183: error: expected primary-expression before 'double'
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                                         ^
  extensions/osr_wrap.cpp:4390:206: error: expression list treated as compound expression in initializer [-fpermissive]
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                                                                ^
  extensions/osr_wrap.cpp:4390:207: error: expected ',' or ';' before '{' token
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                                                                 ^
  extensions/osr_wrap.cpp:4395:65: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                   ^
  extensions/osr_wrap.cpp:4395:101: error: 'self' was not declared in this scope
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                       ^
  extensions/osr_wrap.cpp:4395:106: error: expected primary-expression before 'char'
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                            ^
  extensions/osr_wrap.cpp:4395:127: error: expression list treated as compound expression in initializer [-fpermissive]
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                                                 ^
  extensions/osr_wrap.cpp:4395:128: error: expected ',' or ';' before '{' token
   SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                                                  ^
  extensions/osr_wrap.cpp:4401:155: error: 'OGRCoordinateTransformationOptions' has not been declared
   SWIGINTERN OSRCoordinateTransformationShadow *new_OSRCoordinateTransformationShadow__SWIG_1(OSRSpatialReferenceShadow *src,OSRSpatialReferenceShadow *dst,OGRCoordinateTransformationOptions *options){
                                                                                                                                                             ^
  extensions/osr_wrap.cpp: In function 'OSRCoordinateTransformationShadow* new_OSRCoordinateTransformationShadow__SWIG_1(OSRSpatialReferenceShadow*, OSRSpatialReferenceShadow*, int*)':
  extensions/osr_wrap.cpp:4403:71: error: 'OCTNewCoordinateTransformationEx' was not declared in this scope
           options ? OCTNewCoordinateTransformationEx( src, dst, options ) : OCTNewCoordinateTransformation(src, dst);
                                                                         ^
  extensions/osr_wrap.cpp: In function 'void OSRCoordinateTransformationShadow_TransformPoint__SWIG_1(OSRCoordinateTransformationShadow*, double*)':
  extensions/osr_wrap.cpp:4416:79: error: 'OCTTransform4D' was not declared in this scope
       OCTTransform4D( self, 1, &inout[0], &inout[1], &inout[2], &inout[3], NULL );
                                                                                 ^
  extensions/osr_wrap.cpp: In function 'void OSRCoordinateTransformationShadow_TransformPoint__SWIG_3(OSRCoordinateTransformationShadow*, double*, double, double, double, double)':
  extensions/osr_wrap.cpp:4433:83: error: 'OCTTransform4D' was not declared in this scope
       OCTTransform4D( self, 1, &argout[0], &argout[1], &argout[2], &argout[3], NULL );
                                                                                     ^
  extensions/osr_wrap.cpp: In function 'void OSRCoordinateTransformationShadow_TransformPoints(OSRCoordinateTransformationShadow*, int, double*, double*, double*, double*)':
  extensions/osr_wrap.cpp:4534:52: error: 'OCTTransform4D' was not declared in this scope
       OCTTransform4D( self, nCount, x, y, z, t, NULL );
                                                      ^
  extensions/osr_wrap.cpp: At global scope:
  extensions/osr_wrap.cpp:4537:134: error: 'OGRCoordinateTransformationOptions' has not been declared
     OSRCoordinateTransformationShadow *CreateCoordinateTransformation( OSRSpatialReferenceShadow *src, OSRSpatialReferenceShadow *dst, OGRCoordinateTransformationOptions* options = NULL ) {
                                                                                                                                        ^
  extensions/osr_wrap.cpp: In function 'OSRCoordinateTransformationShadow* CreateCoordinateTransformation(OSRSpatialReferenceShadow*, OSRSpatialReferenceShadow*, int*)':
  extensions/osr_wrap.cpp:4539:71: error: 'OCTNewCoordinateTransformationEx' was not declared in this scope
           options ? OCTNewCoordinateTransformationEx( src, dst, options ) : OCTNewCoordinateTransformation(src, dst);
                                                                         ^
  extensions/osr_wrap.cpp: At global scope:
  extensions/osr_wrap.cpp:4556:12: error: 'OSRCRSInfo' does not name a type
   SWIGINTERN OSRCRSInfo *new_OSRCRSInfo(char const *auth_name,char const *code,char const *name,OSRCRSType type,bool deprecated,bool bbox_valid,double west_lon_degree,double south_lat_degree,double east_lon_degree,double north_lat_degree,char const *area_name,char const *projection_method){
              ^
  extensions/osr_wrap.cpp:4572:35: error: variable or field 'delete_OSRCRSInfo' declared void
   SWIGINTERN void delete_OSRCRSInfo(OSRCRSInfo *self){
                                     ^
  extensions/osr_wrap.cpp:4572:35: error: 'OSRCRSInfo' was not declared in this scope
  extensions/osr_wrap.cpp:4572:47: error: 'self' was not declared in this scope
   SWIGINTERN void delete_OSRCRSInfo(OSRCRSInfo *self){
                                                 ^
  extensions/osr_wrap.cpp:4582:39: error: 'OSRCRSInfo' was not declared in this scope
   const char* OSRCRSInfo_auth_name_get( OSRCRSInfo *crsInfo ) {
                                         ^
  extensions/osr_wrap.cpp:4582:51: error: 'crsInfo' was not declared in this scope
   const char* OSRCRSInfo_auth_name_get( OSRCRSInfo *crsInfo ) {
                                                     ^
  extensions/osr_wrap.cpp:4582:61: error: expected ',' or ';' before '{' token
   const char* OSRCRSInfo_auth_name_get( OSRCRSInfo *crsInfo ) {
                                                               ^
  extensions/osr_wrap.cpp:4586:34: error: 'OSRCRSInfo' was not declared in this scope
   const char* OSRCRSInfo_code_get( OSRCRSInfo *crsInfo ) {
                                    ^
  extensions/osr_wrap.cpp:4586:46: error: 'crsInfo' was not declared in this scope
   const char* OSRCRSInfo_code_get( OSRCRSInfo *crsInfo ) {
                                                ^
  extensions/osr_wrap.cpp:4586:56: error: expected ',' or ';' before '{' token
   const char* OSRCRSInfo_code_get( OSRCRSInfo *crsInfo ) {
                                                          ^
  extensions/osr_wrap.cpp:4590:34: error: 'OSRCRSInfo' was not declared in this scope
   const char* OSRCRSInfo_name_get( OSRCRSInfo *crsInfo ) {
                                    ^
  extensions/osr_wrap.cpp:4590:46: error: 'crsInfo' was not declared in this scope
   const char* OSRCRSInfo_name_get( OSRCRSInfo *crsInfo ) {
                                                ^
  extensions/osr_wrap.cpp:4590:56: error: expected ',' or ';' before '{' token
   const char* OSRCRSInfo_name_get( OSRCRSInfo *crsInfo ) {
                                                          ^
  extensions/osr_wrap.cpp:4594:1: error: 'OSRCRSType' does not name a type
   OSRCRSType OSRCRSInfo_type_get( OSRCRSInfo *crsInfo ) {
   ^
  extensions/osr_wrap.cpp:4598:33: error: 'OSRCRSInfo' was not declared in this scope
   bool OSRCRSInfo_deprecated_get( OSRCRSInfo *crsInfo ) {
                                   ^
  extensions/osr_wrap.cpp:4598:45: error: 'crsInfo' was not declared in this scope
   bool OSRCRSInfo_deprecated_get( OSRCRSInfo *crsInfo ) {
                                               ^
  extensions/osr_wrap.cpp:4598:55: error: expected ',' or ';' before '{' token
   bool OSRCRSInfo_deprecated_get( OSRCRSInfo *crsInfo ) {
                                                         ^
  extensions/osr_wrap.cpp:4602:33: error: 'OSRCRSInfo' was not declared in this scope
   bool OSRCRSInfo_bbox_valid_get( OSRCRSInfo *crsInfo ) {
                                   ^
  extensions/osr_wrap.cpp:4602:45: error: 'crsInfo' was not declared in this scope
   bool OSRCRSInfo_bbox_valid_get( OSRCRSInfo *crsInfo ) {
                                               ^
  extensions/osr_wrap.cpp:4602:55: error: expected ',' or ';' before '{' token
   bool OSRCRSInfo_bbox_valid_get( OSRCRSInfo *crsInfo ) {
                                                         ^
  extensions/osr_wrap.cpp:4606:40: error: 'OSRCRSInfo' was not declared in this scope
   double OSRCRSInfo_west_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                          ^
  extensions/osr_wrap.cpp:4606:52: error: 'crsInfo' was not declared in this scope
   double OSRCRSInfo_west_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                      ^
  extensions/osr_wrap.cpp:4606:62: error: expected ',' or ';' before '{' token
   double OSRCRSInfo_west_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                                ^
  extensions/osr_wrap.cpp:4610:41: error: 'OSRCRSInfo' was not declared in this scope
   double OSRCRSInfo_south_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                           ^
  extensions/osr_wrap.cpp:4610:53: error: 'crsInfo' was not declared in this scope
   double OSRCRSInfo_south_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                       ^
  extensions/osr_wrap.cpp:4610:63: error: expected ',' or ';' before '{' token
   double OSRCRSInfo_south_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                                 ^
  extensions/osr_wrap.cpp:4614:40: error: 'OSRCRSInfo' was not declared in this scope
   double OSRCRSInfo_east_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                          ^
  extensions/osr_wrap.cpp:4614:52: error: 'crsInfo' was not declared in this scope
   double OSRCRSInfo_east_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                      ^
  extensions/osr_wrap.cpp:4614:62: error: expected ',' or ';' before '{' token
   double OSRCRSInfo_east_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                                ^
  extensions/osr_wrap.cpp:4618:41: error: 'OSRCRSInfo' was not declared in this scope
   double OSRCRSInfo_north_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                           ^
  extensions/osr_wrap.cpp:4618:53: error: 'crsInfo' was not declared in this scope
   double OSRCRSInfo_north_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                       ^
  extensions/osr_wrap.cpp:4618:63: error: expected ',' or ';' before '{' token
   double OSRCRSInfo_north_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                                 ^
  extensions/osr_wrap.cpp:4622:39: error: 'OSRCRSInfo' was not declared in this scope
   const char* OSRCRSInfo_area_name_get( OSRCRSInfo *crsInfo ) {
                                         ^
  extensions/osr_wrap.cpp:4622:51: error: 'crsInfo' was not declared in this scope
   const char* OSRCRSInfo_area_name_get( OSRCRSInfo *crsInfo ) {
                                                     ^
  extensions/osr_wrap.cpp:4622:61: error: expected ',' or ';' before '{' token
   const char* OSRCRSInfo_area_name_get( OSRCRSInfo *crsInfo ) {
                                                               ^
  extensions/osr_wrap.cpp:4626:47: error: 'OSRCRSInfo' was not declared in this scope
   const char* OSRCRSInfo_projection_method_get( OSRCRSInfo *crsInfo ) {
                                                 ^
  extensions/osr_wrap.cpp:4626:59: error: 'crsInfo' was not declared in this scope
   const char* OSRCRSInfo_projection_method_get( OSRCRSInfo *crsInfo ) {
                                                             ^
  extensions/osr_wrap.cpp:4626:69: error: expected ',' or ';' before '{' token
   const char* OSRCRSInfo_projection_method_get( OSRCRSInfo *crsInfo ) {
                                                                       ^
  extensions/osr_wrap.cpp:4633:34: error: 'OSRCRSInfo' has not been declared
                                    OSRCRSInfo*** pList,
                                    ^
  extensions/osr_wrap.cpp: In function 'void GetCRSInfoListFromDatabase(const char*, int***, int*)':
  extensions/osr_wrap.cpp:4636:71: error: 'OSRGetCRSInfoListFromDatabase' was not declared in this scope
       *pList = OSRGetCRSInfoListFromDatabase(authName, NULL, pnListCount);
                                                                         ^
  extensions/osr_wrap.cpp: In function 'void SetPROJSearchPath(const char*)':
  extensions/osr_wrap.cpp:4643:36: error: 'OSRSetPROJSearchPaths' was not declared in this scope
       OSRSetPROJSearchPaths(apszPaths);
                                      ^
  extensions/osr_wrap.cpp: In function 'void SetPROJSearchPaths(char**)':
  extensions/osr_wrap.cpp:4649:32: error: 'OSRSetPROJSearchPaths' was not declared in this scope
       OSRSetPROJSearchPaths(paths);
                                  ^
  extensions/osr_wrap.cpp: In function 'char** GetPROJSearchPaths()':
  extensions/osr_wrap.cpp:4655:34: error: 'OSRGetPROJSearchPaths' was not declared in this scope
       return OSRGetPROJSearchPaths();
                                    ^
  extensions/osr_wrap.cpp: In function 'int GetPROJVersionMajor()':
  extensions/osr_wrap.cpp:4662:39: error: 'OSRGetPROJVersion' was not declared in this scope
       OSRGetPROJVersion(&num, NULL, NULL);
                                         ^
  extensions/osr_wrap.cpp: In function 'int GetPROJVersionMinor()':
  extensions/osr_wrap.cpp:4669:39: error: 'OSRGetPROJVersion' was not declared in this scope
       OSRGetPROJVersion(NULL, &num, NULL);
                                         ^
  extensions/osr_wrap.cpp: In function 'int GetPROJVersionMicro()':
  extensions/osr_wrap.cpp:4676:39: error: 'OSRGetPROJVersion' was not declared in this scope
       OSRGetPROJVersion(NULL, NULL, &num);
                                         ^
  extensions/gdal_wrap.cpp:3249:7: warning: 'char* get_aligned_buffer(char*, GDALDataType)' defined but not used [-Wunused-function]
   char* get_aligned_buffer(char* data, GDALDataType ntype)
         ^
  extensions/gdal_wrap.cpp:3268:13: warning: 'void update_buffer_size(void*, char*, char*, size_t)' defined but not used [-Wunused-function]
   static void update_buffer_size(void* obj, char* data, char* data_aligned, size_t buf_size)
               ^
  extensions/gdal_wrap.cpp:3323:5: warning: 'int GetUseExceptions()' defined but not used [-Wunused-function]
   int GetUseExceptions() {
       ^
  extensions/gdal_wrap.cpp:3329:6: warning: 'void UseExceptions()' defined but not used [-Wunused-function]
   void UseExceptions() {
        ^
  extensions/gdal_wrap.cpp:3346:6: warning: 'void DontUseExceptions()' defined but not used [-Wunused-function]
   void DontUseExceptions() {
        ^
  extensions/gdal_wrap.cpp:3394:13: warning: 'void ClearErrorState()' defined but not used [-Wunused-function]
   static void ClearErrorState()
               ^
  extensions/gdal_wrap.cpp:4128:15: warning: 'char** CSLFromPySequence(PyObject*, int*)' defined but not used [-Wunused-function]
   static char **CSLFromPySequence( PyObject *pySeq, int *pbErr )
                 ^
  building 'osgeo._gdal_array' extension
  cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gdal_array_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/gdal_array_wrap.o -std=c++11 -I/usr/include/gdal
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_SpatialReference_GetAxisMappingStrategy(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:7097:3: error: 'OSRAxisMappingStrategy' was not declared in this scope
     OSRAxisMappingStrategy result;
     ^
  extensions/osr_wrap.cpp:7109:5: error: 'result' was not declared in this scope
       result = (OSRAxisMappingStrategy)OSRSpatialReferenceShadow_GetAxisMappingStrategy(arg1);
       ^
  extensions/osr_wrap.cpp:7119:48: error: 'result' was not declared in this scope
     resultobj = SWIG_From_int(static_cast< int >(result));
                                                  ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_SpatialReference_SetAxisMappingStrategy(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:7130:3: error: 'OSRAxisMappingStrategy' was not declared in this scope
     OSRAxisMappingStrategy arg2 ;
     ^
  extensions/osr_wrap.cpp:7148:3: error: 'arg2' was not declared in this scope
     arg2 = static_cast< OSRAxisMappingStrategy >(val2);
     ^
  extensions/osr_wrap.cpp:7148:23: error: 'OSRAxisMappingStrategy' does not name a type
     arg2 = static_cast< OSRAxisMappingStrategy >(val2);
                         ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_new_CoordinateTransformationOptions(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:15183:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     OGRCoordinateTransformationOptions *result = 0 ;
     ^
  extensions/osr_wrap.cpp:15183:39: error: 'result' was not declared in this scope
     OGRCoordinateTransformationOptions *result = 0 ;
                                         ^
  extensions/osr_wrap.cpp:15190:51: error: expected primary-expression before ')' token
       result = (OGRCoordinateTransformationOptions *)new_OGRCoordinateTransformationOptions();
                                                     ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_delete_CoordinateTransformationOptions(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:15210:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
     ^
  extensions/osr_wrap.cpp:15210:39: error: 'arg1' was not declared in this scope
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                         ^
  extensions/osr_wrap.cpp:15210:83: error: expected primary-expression before ')' token
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                     ^
  extensions/osr_wrap.cpp:15220:28: error: 'OGRCoordinateTransformationOptions' does not name a type
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                              ^
  extensions/osr_wrap.cpp:15220:63: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                 ^
  extensions/osr_wrap.cpp:15220:63: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:15220:65: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                   ^
  extensions/osr_wrap.cpp:15220:73: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                           ^
  extensions/osr_wrap.cpp:15225:51: error: 'delete_OGRCoordinateTransformationOptions' was not declared in this scope
       delete_OGRCoordinateTransformationOptions(arg1);
                                                     ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CoordinateTransformationOptions_SetAreaOfInterest(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:15245:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
     ^
  extensions/osr_wrap.cpp:15245:39: error: 'arg1' was not declared in this scope
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                         ^
  extensions/osr_wrap.cpp:15245:83: error: expected primary-expression before ')' token
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                     ^
  extensions/osr_wrap.cpp:15272:28: error: 'OGRCoordinateTransformationOptions' does not name a type
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                              ^
  extensions/osr_wrap.cpp:15272:63: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                 ^
  extensions/osr_wrap.cpp:15272:63: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:15272:65: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                   ^
  extensions/osr_wrap.cpp:15272:73: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                           ^
  extensions/osr_wrap.cpp:15297:97: error: 'OGRCoordinateTransformationOptions_SetAreaOfInterest' cannot be used as a function
       result = (bool)OGRCoordinateTransformationOptions_SetAreaOfInterest(arg1,arg2,arg3,arg4,arg5);
                                                                                                   ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CoordinateTransformationOptions_SetOperation(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:15317:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
     ^
  extensions/osr_wrap.cpp:15317:39: error: 'arg1' was not declared in this scope
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                         ^
  extensions/osr_wrap.cpp:15317:83: error: expected primary-expression before ')' token
     OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                     ^
  extensions/osr_wrap.cpp:15333:28: error: 'OGRCoordinateTransformationOptions' does not name a type
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                              ^
  extensions/osr_wrap.cpp:15333:63: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                 ^
  extensions/osr_wrap.cpp:15333:63: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:15333:65: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                   ^
  extensions/osr_wrap.cpp:15333:73: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                           ^
  extensions/osr_wrap.cpp:15343:91: error: 'OGRCoordinateTransformationOptions_SetOperation' cannot be used as a function
       result = (bool)OGRCoordinateTransformationOptions_SetOperation(arg1,(char const *)arg2);
                                                                                             ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_new_CoordinateTransformation__SWIG_1(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:15419:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
     ^
  extensions/osr_wrap.cpp:15419:39: error: 'arg3' was not declared in this scope
     OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
                                         ^
  extensions/osr_wrap.cpp:15419:83: error: expected primary-expression before ')' token
     OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                     ^
  extensions/osr_wrap.cpp:15446:28: error: 'OGRCoordinateTransformationOptions' does not name a type
     arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                              ^
  extensions/osr_wrap.cpp:15446:63: error: expected '>' before '*' token
     arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                 ^
  extensions/osr_wrap.cpp:15446:63: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:15446:65: error: expected primary-expression before '>' token
     arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                   ^
  extensions/osr_wrap.cpp:15446:73: error: expected ')' before ';' token
     arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                           ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CreateCoordinateTransformation(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16077:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) NULL ;
     ^
  extensions/osr_wrap.cpp:16077:39: error: 'arg3' was not declared in this scope
     OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) NULL ;
                                         ^
  extensions/osr_wrap.cpp:16077:83: error: expected primary-expression before ')' token
     OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) NULL ;
                                                                                     ^
  extensions/osr_wrap.cpp:16105:30: error: 'OGRCoordinateTransformationOptions' does not name a type
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                ^
  extensions/osr_wrap.cpp:16105:65: error: expected '>' before '*' token
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                   ^
  extensions/osr_wrap.cpp:16105:65: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16105:67: error: expected primary-expression before '>' token
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                     ^
  extensions/osr_wrap.cpp:16105:75: error: expected ')' before ';' token
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                             ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_auth_name_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16131:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16131:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16131:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16142:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16142:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16142:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16142:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16142:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16147:51: error: 'OSRCRSInfo_auth_name_get' cannot be used as a function
       result = (char *)OSRCRSInfo_auth_name_get(arg1);
                                                     ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_code_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16167:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16167:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16167:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16178:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16178:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16178:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16178:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16178:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16183:46: error: 'OSRCRSInfo_code_get' cannot be used as a function
       result = (char *)OSRCRSInfo_code_get(arg1);
                                                ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_name_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16203:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16203:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16203:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16214:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16214:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16214:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16214:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16214:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16219:46: error: 'OSRCRSInfo_name_get' cannot be used as a function
       result = (char *)OSRCRSInfo_name_get(arg1);
                                                ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_type_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16239:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16239:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16239:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16243:3: error: 'OSRCRSType' was not declared in this scope
     OSRCRSType result;
     ^
  extensions/osr_wrap.cpp:16250:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16250:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16250:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16250:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16250:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16255:5: error: 'result' was not declared in this scope
       result = (OSRCRSType)OSRCRSInfo_type_get(arg1);
       ^
  extensions/osr_wrap.cpp:16265:48: error: 'result' was not declared in this scope
     resultobj = SWIG_From_int(static_cast< int >(result));
                                                  ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_deprecated_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16275:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16275:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16275:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16286:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16286:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16286:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16286:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16286:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16291:50: error: 'OSRCRSInfo_deprecated_get' cannot be used as a function
       result = (bool)OSRCRSInfo_deprecated_get(arg1);
                                                    ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_bbox_valid_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16311:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16311:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16311:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16322:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16322:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16322:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16322:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16322:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16327:50: error: 'OSRCRSInfo_bbox_valid_get' cannot be used as a function
       result = (bool)OSRCRSInfo_bbox_valid_get(arg1);
                                                    ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_west_lon_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16347:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16347:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16347:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16358:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16358:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16358:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16358:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16358:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16363:57: error: 'OSRCRSInfo_west_lon_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_west_lon_degree_get(arg1);
                                                           ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_south_lat_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16383:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16383:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16383:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16394:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16394:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16394:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16394:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16394:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16399:58: error: 'OSRCRSInfo_south_lat_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_south_lat_degree_get(arg1);
                                                            ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_east_lon_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16419:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16419:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16419:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16430:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16430:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16430:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16430:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16430:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16435:57: error: 'OSRCRSInfo_east_lon_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_east_lon_degree_get(arg1);
                                                           ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_north_lat_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16455:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16455:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16455:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16466:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16466:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16466:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16466:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16466:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16471:58: error: 'OSRCRSInfo_north_lat_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_north_lat_degree_get(arg1);
                                                            ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_area_name_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16491:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16491:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16491:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16502:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16502:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16502:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16502:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16502:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16507:51: error: 'OSRCRSInfo_area_name_get' cannot be used as a function
       result = (char *)OSRCRSInfo_area_name_get(arg1);
                                                     ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_projection_method_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16527:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16527:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16527:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16538:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16538:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16538:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16538:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16538:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16543:59: error: 'OSRCRSInfo_projection_method_get' cannot be used as a function
       result = (char *)OSRCRSInfo_projection_method_get(arg1);
                                                             ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_new_CRSInfo(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16566:3: error: 'OSRCRSType' was not declared in this scope
     OSRCRSType arg4 ;
     ^
  extensions/osr_wrap.cpp:16616:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *result = 0 ;
     ^
  extensions/osr_wrap.cpp:16616:15: error: 'result' was not declared in this scope
     OSRCRSInfo *result = 0 ;
                 ^
  extensions/osr_wrap.cpp:16638:3: error: 'arg4' was not declared in this scope
     arg4 = static_cast< OSRCRSType >(val4);
     ^
  extensions/osr_wrap.cpp:16638:23: error: 'OSRCRSType' does not name a type
     arg4 = static_cast< OSRCRSType >(val4);
                         ^
  extensions/osr_wrap.cpp:16688:27: error: expected primary-expression before ')' token
       result = (OSRCRSInfo *)new_OSRCRSInfo((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(char const *)arg11,(char const *)arg12);
                             ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_delete_CRSInfo(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16718:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16718:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16718:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16728:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16728:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16728:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16728:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16728:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16733:27: error: 'delete_OSRCRSInfo' was not declared in this scope
       delete_OSRCRSInfo(arg1);
                             ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_auth_name_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16760:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16760:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16760:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16771:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16771:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16771:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16771:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16771:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16781:51: error: 'OSRCRSInfo_auth_name_get' cannot be used as a function
       result = (char *)OSRCRSInfo_auth_name_get(arg1);
                                                     ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_code_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16801:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16801:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16801:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16812:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16812:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16812:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16812:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16812:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16822:46: error: 'OSRCRSInfo_code_get' cannot be used as a function
       result = (char *)OSRCRSInfo_code_get(arg1);
                                                ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_name_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16842:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16842:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16842:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16853:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16853:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16853:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16853:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16853:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16863:46: error: 'OSRCRSInfo_name_get' cannot be used as a function
       result = (char *)OSRCRSInfo_name_get(arg1);
                                                ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_type_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16883:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16883:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16883:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16887:3: error: 'OSRCRSType' was not declared in this scope
     OSRCRSType result;
     ^
  extensions/osr_wrap.cpp:16894:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16894:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16894:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16894:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16894:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16904:5: error: 'result' was not declared in this scope
       result = (OSRCRSType)OSRCRSInfo_type_get(arg1);
       ^
  extensions/osr_wrap.cpp:16914:48: error: 'result' was not declared in this scope
     resultobj = SWIG_From_int(static_cast< int >(result));
                                                  ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_deprecated_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16924:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16924:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16924:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16935:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16935:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16935:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16935:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16935:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16945:50: error: 'OSRCRSInfo_deprecated_get' cannot be used as a function
       result = (bool)OSRCRSInfo_deprecated_get(arg1);
                                                    ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_bbox_valid_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:16965:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:16965:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:16965:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:16976:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:16976:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:16976:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:16976:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:16976:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:16986:50: error: 'OSRCRSInfo_bbox_valid_get' cannot be used as a function
       result = (bool)OSRCRSInfo_bbox_valid_get(arg1);
                                                    ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_west_lon_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:17006:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:17006:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:17006:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:17017:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:17017:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:17017:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:17017:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:17017:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:17027:57: error: 'OSRCRSInfo_west_lon_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_west_lon_degree_get(arg1);
                                                           ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_south_lat_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:17047:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:17047:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:17047:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:17058:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:17058:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:17058:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:17058:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:17058:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:17068:58: error: 'OSRCRSInfo_south_lat_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_south_lat_degree_get(arg1);
                                                            ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_east_lon_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:17088:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:17088:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:17088:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:17099:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:17099:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:17099:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:17099:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:17099:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:17109:57: error: 'OSRCRSInfo_east_lon_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_east_lon_degree_get(arg1);
                                                           ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_north_lat_degree_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:17129:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:17129:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:17129:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:17140:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:17140:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:17140:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:17140:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:17140:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:17150:58: error: 'OSRCRSInfo_north_lat_degree_get' cannot be used as a function
       result = (double)OSRCRSInfo_north_lat_degree_get(arg1);
                                                            ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_area_name_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:17170:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:17170:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:17170:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:17181:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:17181:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:17181:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:17181:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:17181:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:17191:51: error: 'OSRCRSInfo_area_name_get' cannot be used as a function
       result = (char *)OSRCRSInfo_area_name_get(arg1);
                                                     ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_projection_method_get(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:17211:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
     ^
  extensions/osr_wrap.cpp:17211:15: error: 'arg1' was not declared in this scope
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                 ^
  extensions/osr_wrap.cpp:17211:35: error: expected primary-expression before ')' token
     OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                     ^
  extensions/osr_wrap.cpp:17222:28: error: 'OSRCRSInfo' does not name a type
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                              ^
  extensions/osr_wrap.cpp:17222:39: error: expected '>' before '*' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                         ^
  extensions/osr_wrap.cpp:17222:39: error: expected '(' before '*' token
  extensions/osr_wrap.cpp:17222:41: error: expected primary-expression before '>' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
  extensions/osr_wrap.cpp:17222:49: error: expected ')' before ';' token
     arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                   ^
  extensions/osr_wrap.cpp:17232:59: error: 'OSRCRSInfo_projection_method_get' cannot be used as a function
       result = (char *)OSRCRSInfo_projection_method_get(arg1);
                                                             ^
  extensions/osr_wrap.cpp: In function 'PyObject* _wrap_GetCRSInfoListFromDatabase(PyObject*, PyObject*)':
  extensions/osr_wrap.cpp:17253:3: error: 'OSRCRSInfo' was not declared in this scope
     OSRCRSInfo ***arg2 = (OSRCRSInfo ***) 0 ;
     ^
  extensions/osr_wrap.cpp:17253:17: error: 'arg2' was not declared in this scope
     OSRCRSInfo ***arg2 = (OSRCRSInfo ***) 0 ;
                   ^
  extensions/osr_wrap.cpp:17253:39: error: expected primary-expression before ')' token
     OSRCRSInfo ***arg2 = (OSRCRSInfo ***) 0 ;
                                         ^
  extensions/osr_wrap.cpp:17258:16: error: 'list2' was not declared in this scope
     OSRCRSInfo **list2 = 0 ;
                  ^
  extensions/osr_wrap.cpp:17292:19: error: 'o' was not declared in this scope
         OSRCRSInfo *o = new_OSRCRSInfo( (*arg2)[i]->pszAuthName,
                     ^
  extensions/osr_wrap.cpp:17303:41: error: 'new_OSRCRSInfo' was not declared in this scope
           (*arg2)[i]->pszProjectionMethod );
                                           ^
  extensions/osr_wrap.cpp:17314:36: error: 'OSRDestroyCRSInfoList' was not declared in this scope
       OSRDestroyCRSInfoList( *(arg2) );
                                      ^
  extensions/osr_wrap.cpp:17322:36: error: 'OSRDestroyCRSInfoList' was not declared in this scope
       OSRDestroyCRSInfoList( *(arg2) );
                                      ^
  extensions/ogr_wrap.cpp: In function 'PyObject* _wrap_CreateGeometryFromWkb(PyObject*, PyObject*, PyObject*)':
  extensions/ogr_wrap.cpp:21022:17: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
         int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
                   ^
  In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                   from extensions/ogr_wrap.cpp:175:
  /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
   PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                   ^
  extensions/ogr_wrap.cpp:21022:17: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
         int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
                   ^
  In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                   from extensions/ogr_wrap.cpp:175:
  /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
   PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                   ^
  extensions/ogr_wrap.cpp:21022:63: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
         int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
                                                                 ^
  In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                   from extensions/ogr_wrap.cpp:175:
  /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
   PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                   ^
  extensions/osr_wrap.cpp: In function 'PyObject* PyInit__osr()':
  extensions/osr_wrap.cpp:18684:92: error: 'OSR_CRS_TYPE_GEOGRAPHIC_2D' was not declared in this scope
     SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_GEOGRAPHIC_2D",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_GEOGRAPHIC_2D)));
                                                                                              ^
  extensions/osr_wrap.cpp:18685:92: error: 'OSR_CRS_TYPE_GEOGRAPHIC_3D' was not declared in this scope
     SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_GEOGRAPHIC_3D",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_GEOGRAPHIC_3D)));
                                                                                              ^
  extensions/osr_wrap.cpp:18686:89: error: 'OSR_CRS_TYPE_GEOCENTRIC' was not declared in this scope
     SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_GEOCENTRIC",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_GEOCENTRIC)));
                                                                                           ^
  extensions/osr_wrap.cpp:18687:88: error: 'OSR_CRS_TYPE_PROJECTED' was not declared in this scope
     SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_PROJECTED",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_PROJECTED)));
                                                                                          ^
  extensions/osr_wrap.cpp:18688:87: error: 'OSR_CRS_TYPE_VERTICAL' was not declared in this scope
     SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_VERTICAL",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_VERTICAL)));
                                                                                         ^
  extensions/osr_wrap.cpp:18689:87: error: 'OSR_CRS_TYPE_COMPOUND' was not declared in this scope
     SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_COMPOUND",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_COMPOUND)));
                                                                                         ^
  extensions/osr_wrap.cpp:18690:84: error: 'OSR_CRS_TYPE_OTHER' was not declared in this scope
     SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_OTHER",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_OTHER)));
                                                                                      ^
  extensions/ogr_wrap.cpp: In function 'PyObject* _wrap_new_Geometry(PyObject*, PyObject*, PyObject*)':
  extensions/ogr_wrap.cpp:21857:19: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
           int res = PyObject_AsReadBuffer(obj2, &safeBuf, &safeLen);
                     ^
  In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                   from extensions/ogr_wrap.cpp:175:
  /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
   PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                   ^
  extensions/ogr_wrap.cpp:21857:19: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
           int res = PyObject_AsReadBuffer(obj2, &safeBuf, &safeLen);
                     ^
  In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                   from extensions/ogr_wrap.cpp:175:
  /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
   PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                   ^
  extensions/ogr_wrap.cpp:21857:65: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
           int res = PyObject_AsReadBuffer(obj2, &safeBuf, &safeLen);
                                                                   ^
  In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                   from extensions/ogr_wrap.cpp:175:
  /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
   PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                   ^
  In file included from /usr/include/gdal/ogr_feature.h:35:0,
                   from /usr/include/gdal/ogrsf_frmts.h:35,
                   from /usr/include/gdal/gnm.h:35,
                   from /usr/include/gdal/gnm_api.h:35,
                   from extensions/gnm_wrap.cpp:3141:
  /usr/include/gdal/ogr_featurestyle.h:88:5: error: 'CPLString' does not name a type
       CPLString osLastRequestedStyleName;
       ^
  In file included from /usr/include/gdal/ogrsf_frmts.h:37:0,
                   from /usr/include/gdal/gnm.h:35,
                   from /usr/include/gdal/gnm_api.h:35,
                   from extensions/gnm_wrap.cpp:3141:
  /usr/include/gdal/gdal_priv.h:90:5: error: 'CPLStringList' does not name a type
       CPLStringList **papoMetadataLists;
       ^
  /usr/include/gdal/gdal_priv.h:130:5: error: 'CPLString' does not name a type
       CPLString           sDescription;
       ^
  /usr/include/gdal/gdal_priv.h:171:5: error: 'CPLString' does not name a type
       CPLString   osOvrFilename;
       ^
  /usr/include/gdal/gdal_priv.h:552:5: error: 'CPLStringList' does not name a type
       CPLStringList oDerivedMetadataList;
       ^
  /usr/include/gdal/gdal_priv.h:1277:14: error: 'CPLString' was not declared in this scope
       std::map<CPLString, GDALDriver*> oMapNameToDrivers;
                ^
  /usr/include/gdal/gdal_priv.h:1277:36: error: template argument 1 is invalid
       std::map<CPLString, GDALDriver*> oMapNameToDrivers;
                                      ^
  /usr/include/gdal/gdal_priv.h:1277:36: error: template argument 3 is invalid
  /usr/include/gdal/gdal_priv.h:1277:36: error: template argument 4 is invalid
  /usr/include/gdal/gdal_priv.h: In member function 'GDALDriver* GDALDriverManager::GetDriverByName_unlocked(const char*)':
  /usr/include/gdal/gdal_priv.h:1284:57: error: 'CPLString' was not declared in this scope
               { return oMapNameToDrivers[CPLString(pszName).toupper()]; }
                                                           ^
  In file included from /usr/include/gdal/ogrsf_frmts.h:37:0,
                   from /usr/include/gdal/gnm.h:35,
                   from /usr/include/gdal/gnm_api.h:35,
                   from extensions/gnm_wrap.cpp:3141:
  /usr/include/gdal/gdal_priv.h: At global scope:
  /usr/include/gdal/gdal_priv.h:1559:1: error: 'CPLString' does not name a type
   CPLString GDALFindAssociatedFile( const char *pszBasename, const char *pszExt,
   ^
  In file included from /usr/include/gdal/gnm_api.h:35:0,
                   from extensions/gnm_wrap.cpp:3141:
  /usr/include/gdal/gnm.h:170:5: error: 'CPLString' does not name a type
       CPLString m_soName;
       ^
  /usr/include/gdal/gnm.h:171:5: error: 'CPLString' does not name a type
       CPLString m_soSRS;
       ^
  /usr/include/gdal/gnm.h:223:13: error: 'CPLString' does not name a type
       virtual CPLString GetAlgorithmName(GNMDirection eAlgorithm, bool bShortName);
               ^
  /usr/include/gdal/gnm.h:465:23: error: 'CPLString' was not declared in this scope
       std::map<GNMGFID, CPLString> m_moFeatureFIDMap;
                         ^
  /usr/include/gdal/gnm.h:465:32: error: template argument 2 is invalid
       std::map<GNMGFID, CPLString> m_moFeatureFIDMap;
                                  ^
  /usr/include/gdal/gnm.h:465:32: error: template argument 4 is invalid
  /usr/include/gdal/gnm.h:609:5: error: 'CPLString' does not name a type
       CPLString m_soLayerName;
       ^
  /usr/include/gdal/gnm.h:666:35: error: 'CPLString' does not name a type
       virtual bool CanConnect(const CPLString &soSrcLayerName,
                                     ^
  /usr/include/gdal/gnm.h:667:35: error: 'CPLString' does not name a type
                               const CPLString &soTgtLayerName,
                                     ^
  /usr/include/gdal/gnm.h:668:35: error: 'CPLString' does not name a type
                               const CPLString &soConnLayerName = "");
                                     ^
  /usr/include/gdal/gnm.h:670:13: error: 'CPLString' does not name a type
       virtual CPLString GetSourceLayerName() const;
               ^
  /usr/include/gdal/gnm.h:672:13: error: 'CPLString' does not name a type
       virtual CPLString GetTargetLayerName() const;
               ^
  /usr/include/gdal/gnm.h:674:13: error: 'CPLString' does not name a type
       virtual CPLString GetConnectorLayerName() const;
               ^
  /usr/include/gdal/gnm.h:683:5: error: 'CPLString' does not name a type
       CPLString m_soSrcLayerName;
       ^
  /usr/include/gdal/gnm.h:684:5: error: 'CPLString' does not name a type
       CPLString m_soTgtLayerName;
       ^
  /usr/include/gdal/gnm.h:685:5: error: 'CPLString' does not name a type
       CPLString m_soConnLayerName;
       ^
  /usr/include/gdal/gnm.h:689:5: error: 'CPLString' does not name a type
       CPLString m_soRuleString;
       ^
  /usr/include/gdal/gnm.h:668:64: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
                               const CPLString &soConnLayerName = "");
                                                                  ^
  /usr/include/gdal/gnm.h:722:39: error: 'CPLString' does not name a type
                                   const CPLString &soLayerName, int nPathNo,
                                         ^
  extensions/gnm_wrap.cpp: In function 'GNMNetworkShadow* CastToNetwork(GDALMajorObjectShadow*)':
  extensions/gnm_wrap.cpp:3469:72: error: 'GNMCastToNetwork' was not declared in this scope
         return (GNMNetworkShadow*)GNMCastToNetwork((GDALMajorObjectH)base);
                                                                          ^
  extensions/gnm_wrap.cpp: In function 'GNMGenericNetworkShadow* CastToGenericNetwork(GDALMajorObjectShadow*)':
  extensions/gnm_wrap.cpp:3474:86: error: 'GNMCastToGenericNetwork' was not declared in this scope
         return (GNMGenericNetworkShadow*)GNMCastToGenericNetwork((GDALMajorObjectH)base);
                                                                                        ^
  extensions/gdal_array_wrap.cpp:3584:25: error: 'virtual const char* NUMPYDataset::_GetProjectionRef()' marked 'override', but does not override
       virtual const char *_GetProjectionRef(void) override;
                           ^
  extensions/gdal_array_wrap.cpp:3585:32: error: 'const OGRSpatialReference* NUMPYDataset::GetSpatialRef() const' marked 'override', but does not override
       const OGRSpatialReference* GetSpatialRef() const override {
                                  ^
  extensions/gdal_array_wrap.cpp:3588:20: error: 'virtual CPLErr NUMPYDataset::_SetProjection(const char*)' marked 'override', but does not override
       virtual CPLErr _SetProjection( const char * ) override;
                      ^
  extensions/gdal_array_wrap.cpp:3589:12: error: 'CPLErr NUMPYDataset::SetSpatialRef(const OGRSpatialReference*)' marked 'override', but does not override
       CPLErr SetSpatialRef(const OGRSpatialReference* poSRS) override {
              ^
  extensions/gdal_array_wrap.cpp:3597:25: error: 'virtual const char* NUMPYDataset::_GetGCPProjection()' marked 'override', but does not override
       virtual const char *_GetGCPProjection() override;
                           ^
  extensions/gdal_array_wrap.cpp:3598:32: error: 'const OGRSpatialReference* NUMPYDataset::GetGCPSpatialRef() const' marked 'override', but does not override
       const OGRSpatialReference* GetGCPSpatialRef() const override {
                                  ^
  extensions/gdal_array_wrap.cpp:3602:20: error: 'virtual CPLErr NUMPYDataset::_SetGCPs(int, const GDAL_GCP*, const char*)' marked 'override', but does not override
       virtual CPLErr _SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
                      ^
  extensions/gdal_array_wrap.cpp:3605:12: error: 'CPLErr NUMPYDataset::SetGCPs(int, const GDAL_GCP*, const OGRSpatialReference*)' marked 'override', but does not override
       CPLErr SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
              ^
  extensions/gdal_array_wrap.cpp: In member function 'const OGRSpatialReference* NUMPYDataset::GetSpatialRef() const':
  extensions/gdal_array_wrap.cpp:3586:53: error: 'GetSpatialRefFromOldGetProjectionRef' was not declared in this scope
           return GetSpatialRefFromOldGetProjectionRef();
                                                       ^
  extensions/gdal_array_wrap.cpp: In member function 'CPLErr NUMPYDataset::SetSpatialRef(const OGRSpatialReference*)':
  extensions/gdal_array_wrap.cpp:3590:55: error: 'OldSetProjectionFromSetSpatialRef' was not declared in this scope
           return OldSetProjectionFromSetSpatialRef(poSRS);
                                                         ^
  extensions/gdal_array_wrap.cpp: In member function 'const OGRSpatialReference* NUMPYDataset::GetGCPSpatialRef() const':
  extensions/gdal_array_wrap.cpp:3599:56: error: 'GetGCPSpatialRefFromOldGetGCPProjection' was not declared in this scope
           return GetGCPSpatialRefFromOldGetGCPProjection();
                                                          ^
  extensions/gdal_array_wrap.cpp: In member function 'CPLErr NUMPYDataset::SetGCPs(int, const GDAL_GCP*, const OGRSpatialReference*)':
  extensions/gdal_array_wrap.cpp:3607:62: error: 'OldSetGCPsFromNew' was not declared in this scope
           return OldSetGCPsFromNew(nGCPCount, pasGCPList, poSRS);
                                                                ^
  extensions/gdal_array_wrap.cpp: At global scope:
  extensions/gdal_array_wrap.cpp:3995:10: error: 'unique_ptr' in namespace 'std' does not name a template type
       std::unique_ptr<GDALDataset> poMEMDS{};
            ^
  extensions/gdal_array_wrap.cpp:4003:10: error: 'shared_ptr' in namespace 'std' does not name a template type
       std::shared_ptr<GDALGroup> GetRootGroup() const override { return poMEMDS->GetRootGroup(); }
            ^
  extensions/gdal_array_wrap.cpp: In static member function 'static GDALDataset* NUMPYMultiDimensionalDataset::Open(PyArrayObject*)':
  extensions/gdal_array_wrap.cpp:4039:24: error: 'FromHandle' is not a member of 'GDALDriver'
       auto poMemDriver = GDALDriver::FromHandle(GDALGetDriverByName("MEM"));
                          ^
  extensions/gdal_array_wrap.cpp:4051:17: error: 'shared_ptr' is not a member of 'std'
       std::vector<std::shared_ptr<GDALDimension>> apoDims;
                   ^
  extensions/gdal_array_wrap.cpp:4051:17: error: 'shared_ptr' is not a member of 'std'
  extensions/gdal_array_wrap.cpp:4051:33: error: 'GDALDimension' was not declared in this scope
       std::vector<std::shared_ptr<GDALDimension>> apoDims;
                                   ^
  extensions/gdal_array_wrap.cpp:4051:33: error: template argument 1 is invalid
  extensions/gdal_array_wrap.cpp:4051:33: error: template argument 2 is invalid
  extensions/gdal_array_wrap.cpp:4051:46: error: expected unqualified-id before '>' token
       std::vector<std::shared_ptr<GDALDimension>> apoDims;
                                                ^
  extensions/gdal_array_wrap.cpp:4061:9: error: 'apoDims' was not declared in this scope
           apoDims.push_back(poDim);
           ^
  extensions/gdal_array_wrap.cpp:4076:39: error: 'apoDims' was not declared in this scope
                                         apoDims,
                                         ^
  extensions/gdal_array_wrap.cpp:4077:39: error: 'GDALExtendedDataType' has not been declared
                                         GDALExtendedDataType::Create(eType),
                                         ^
  extensions/gdal_array_wrap.cpp:4081:16: error: type '<type error>' argument given to 'delete', expected pointer
           delete poMEMDS;
                  ^
  extensions/gdal_array_wrap.cpp:4086:22: error: 'FromHandle' is not a member of 'GDALDriver'
       poDS->poDriver = GDALDriver::FromHandle(GDALGetDriverByName("NUMPY"));
                        ^
  extensions/gdal_array_wrap.cpp:4090:11: error: 'class NUMPYMultiDimensionalDataset' has no member named 'poMEMDS'
       poDS->poMEMDS.reset(poMEMDS);
             ^
  extensions/gdal_array_wrap.cpp: At global scope:
  extensions/gdal_array_wrap.cpp:4473:34: error: 'GDALExtendedDataTypeHS' was not declared in this scope
   static bool CheckNumericDataType(GDALExtendedDataTypeHS* dt)
                                    ^
  extensions/gdal_array_wrap.cpp:4473:58: error: 'dt' was not declared in this scope
   static bool CheckNumericDataType(GDALExtendedDataTypeHS* dt)
                                                            ^
  extensions/gdal_array_wrap.cpp:4474:1: error: expected ',' or ';' before '{' token
   {
   ^
  extensions/gdal_array_wrap.cpp:3523:13: warning: 'void _StoreLastException()' defined but not used [-Wunused-function]
   static void _StoreLastException()
               ^
  In file included from /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:21:0,
                   from /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from extensions/gdal_array_wrap.cpp:3548:
  /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: 'int _import_array()' defined but not used [-Wunused-function]
   _import_array(void)
   ^
  extensions/gdal_array_wrap.cpp:4473:13: warning: 'CheckNumericDataType' defined but not used [-Wunused-variable]
   static bool CheckNumericDataType(GDALExtendedDataTypeHS* dt)
               ^
  error: command 'cc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for gdal
DEPRECATION: Could not build wheels for gdal which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
    ERROR: Command errored out with exit status 1:
     command: /home/linuxbrew/.linuxbrew/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-slie5dz0/gdal/setup.py'"'"'; __file__='"'"'/tmp/pip-install-slie5dz0/gdal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9k0lla7y/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/include/python3.8/gdal
         cwd: /tmp/pip-install-slie5dz0/gdal/
    Complete output (1592 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    copying gdal.py -> build/lib.linux-x86_64-3.8
    copying ogr.py -> build/lib.linux-x86_64-3.8
    copying osr.py -> build/lib.linux-x86_64-3.8
    copying gdalconst.py -> build/lib.linux-x86_64-3.8
    copying gdalnumeric.py -> build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/osr.py -> build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/ogr.py -> build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/gdal.py -> build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/__init__.py -> build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/gdalconst.py -> build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/gnm.py -> build/lib.linux-x86_64-3.8/osgeo
    copying osgeo/gdal_array.py -> build/lib.linux-x86_64-3.8/osgeo
    /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/setuptools/lib2to3_ex.py:39: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
      warnings.warn(
    Fixing build/lib.linux-x86_64-3.8/gdal.py build/lib.linux-x86_64-3.8/ogr.py build/lib.linux-x86_64-3.8/osr.py build/lib.linux-x86_64-3.8/gdalconst.py build/lib.linux-x86_64-3.8/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py
    Skipping optional fixer: ws_comma
    Fixing build/lib.linux-x86_64-3.8/gdal.py build/lib.linux-x86_64-3.8/ogr.py build/lib.linux-x86_64-3.8/osr.py build/lib.linux-x86_64-3.8/gdalconst.py build/lib.linux-x86_64-3.8/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py
    Skipping optional fixer: ws_comma
    running build_ext
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o -std=c++11
    building 'osgeo._gdal' extension
    building 'osgeo._gdalconst' extension
    building 'osgeo._osr' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8
    building 'osgeo._ogr' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/extensions
    creating build/temp.linux-x86_64-3.8/extensions
    creating build/temp.linux-x86_64-3.8/extensions
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/ogr_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/ogr_wrap.o -std=c++11 -I/usr/include/gdal
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gdalconst_wrap.c -o build/temp.linux-x86_64-3.8/extensions/gdalconst_wrap.o -I/usr/include/gdal
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/osr_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/osr_wrap.o -std=c++11 -I/usr/include/gdal
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/gdal_wrap.o -std=c++11 -I/usr/include/gdal
    extensions/gdalconst_wrap.c: In function 'PyInit__gdalconst':
    extensions/gdalconst_wrap.c:3879:71: error: 'GDAL_OF_MULTIDIM_RASTER' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "OF_MULTIDIM_RASTER",SWIG_From_int((int)(GDAL_OF_MULTIDIM_RASTER)));
                                                                           ^
    extensions/gdalconst_wrap.c:3879:71: note: each undeclared identifier is reported only once for each function it appears in
    extensions/gdalconst_wrap.c:3903:71: error: 'GDAL_DIM_TYPE_HORIZONTAL_X' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "DIM_TYPE_HORIZONTAL_X",SWIG_FromCharPtr(GDAL_DIM_TYPE_HORIZONTAL_X));
                                                                           ^
    extensions/gdalconst_wrap.c:3904:71: error: 'GDAL_DIM_TYPE_HORIZONTAL_Y' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "DIM_TYPE_HORIZONTAL_Y",SWIG_FromCharPtr(GDAL_DIM_TYPE_HORIZONTAL_Y));
                                                                           ^
    extensions/gdalconst_wrap.c:3905:67: error: 'GDAL_DIM_TYPE_VERTICAL' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "DIM_TYPE_VERTICAL",SWIG_FromCharPtr(GDAL_DIM_TYPE_VERTICAL));
                                                                       ^
    extensions/gdalconst_wrap.c:3906:67: error: 'GDAL_DIM_TYPE_TEMPORAL' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "DIM_TYPE_TEMPORAL",SWIG_FromCharPtr(GDAL_DIM_TYPE_TEMPORAL));
                                                                       ^
    extensions/gdalconst_wrap.c:3907:69: error: 'GDAL_DIM_TYPE_PARAMETRIC' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "DIM_TYPE_PARAMETRIC",SWIG_FromCharPtr(GDAL_DIM_TYPE_PARAMETRIC));
                                                                         ^
    extensions/gdalconst_wrap.c:3935:66: error: 'GRTT_THEMATIC' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "GRTT_THEMATIC",SWIG_From_int((int)(GRTT_THEMATIC)));
                                                                      ^
    extensions/gdalconst_wrap.c:3936:67: error: 'GRTT_ATHEMATIC' undeclared (first use in this function)
       SWIG_Python_SetConstant(d, "GRTT_ATHEMATIC",SWIG_From_int((int)(GRTT_ATHEMATIC)));
                                                                       ^
    building 'osgeo._gnm' extension
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gnm_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/gnm_wrap.o -std=c++11 -I/usr/include/gdal
    extensions/osr_wrap.cpp: In function 'const char* OSRSpatialReferenceShadow_GetName(OSRSpatialReferenceShadow*)':
    extensions/osr_wrap.cpp:3688:29: error: 'OSRGetName' was not declared in this scope
         return OSRGetName( self );
                                 ^
    extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_IsSame(OSRSpatialReferenceShadow*, OSRSpatialReferenceShadow*, char**)':
    extensions/osr_wrap.cpp:3760:44: error: 'OSRIsSameEx' was not declared in this scope
         return OSRIsSameEx( self, rhs, options );
                                                ^
    extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_IsDerivedGeographic(OSRSpatialReferenceShadow*)':
    extensions/osr_wrap.cpp:3772:39: error: 'OSRIsDerivedGeographic' was not declared in this scope
         return OSRIsDerivedGeographic(self);
                                           ^
    extensions/osr_wrap.cpp: In function 'OSRAreaOfUse* OSRSpatialReferenceShadow_GetAreaOfUse(OSRSpatialReferenceShadow*)':
    extensions/osr_wrap.cpp:3967:26: error: 'OSRGetAreaOfUse' was not declared in this scope
                         &name) )
                              ^
    extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_GetAxesCount(OSRSpatialReferenceShadow*)':
    extensions/osr_wrap.cpp:3979:32: error: 'OSRGetAxesCount' was not declared in this scope
         return OSRGetAxesCount(self);
                                    ^
    extensions/osr_wrap.cpp: At global scope:
    extensions/osr_wrap.cpp:3986:12: error: 'OSRAxisMappingStrategy' does not name a type
     SWIGINTERN OSRAxisMappingStrategy OSRSpatialReferenceShadow_GetAxisMappingStrategy(OSRSpatialReferenceShadow *self){
                ^
    extensions/osr_wrap.cpp:3989:98: error: 'OSRAxisMappingStrategy' has not been declared
     SWIGINTERN void OSRSpatialReferenceShadow_SetAxisMappingStrategy(OSRSpatialReferenceShadow *self,OSRAxisMappingStrategy strategy){
                                                                                                      ^
    extensions/osr_wrap.cpp: In function 'void OSRSpatialReferenceShadow_SetAxisMappingStrategy(OSRSpatialReferenceShadow*, int)':
    extensions/osr_wrap.cpp:3990:45: error: 'OSRSetAxisMappingStrategy' was not declared in this scope
         OSRSetAxisMappingStrategy(self, strategy);
                                                 ^
    extensions/osr_wrap.cpp: In function 'void OSRSpatialReferenceShadow_GetDataAxisToSRSAxisMapping(OSRSpatialReferenceShadow*, int*, const int**)':
    extensions/osr_wrap.cpp:3993:57: error: 'OSRGetDataAxisToSRSAxisMapping' was not declared in this scope
           *pList = OSRGetDataAxisToSRSAxisMapping(self, nLen);
                                                             ^
    extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_SetDataAxisToSRSAxisMapping(OSRSpatialReferenceShadow*, int, int*)':
    extensions/osr_wrap.cpp:4027:61: error: 'OSRSetDataAxisToSRSAxisMapping' was not declared in this scope
         return OSRSetDataAxisToSRSAxisMapping(self, nList, pList);
                                                                 ^
    extensions/osr_wrap.cpp: In function 'void OSRSpatialReferenceShadow_FindMatches(OSRSpatialReferenceShadow*, char**, OSRSpatialReferenceShadow***, int*, int**)':
    extensions/osr_wrap.cpp:4048:76: error: 'OSRFindMatches' was not declared in this scope
             *matches = OSRFindMatches(self, options, nvalues, confidence_values);
                                                                                ^
    extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_SetVerticalPerspective(OSRSpatialReferenceShadow*, double, double, double, double, double, double)':
    extensions/osr_wrap.cpp:4236:81: error: 'OSRSetVerticalPerspective' was not declared in this scope
             topoOriginLat, topoOriginLon, topoOriginHeight, viewPointHeight, fe, fn );
                                                                                     ^
    extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_AddGuessedTOWGS84(OSRSpatialReferenceShadow*)':
    extensions/osr_wrap.cpp:4278:39: error: 'OSRAddGuessedTOWGS84' was not declared in this scope
         return OSRAddGuessedTOWGS84( self );
                                           ^
    extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_ExportToWkt(OSRSpatialReferenceShadow*, char**, char**)':
    extensions/osr_wrap.cpp:4337:52: error: 'OSRExportToWktEx' was not declared in this scope
         return OSRExportToWktEx( self, argout, options );
                                                        ^
    extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_ExportToPROJJSON(OSRSpatialReferenceShadow*, char**, char**)':
    extensions/osr_wrap.cpp:4343:55: error: 'OSRExportToPROJJSON' was not declared in this scope
         return OSRExportToPROJJSON( self, argout, options );
                                                           ^
    extensions/osr_wrap.cpp: In function 'OSRSpatialReferenceShadow* OSRSpatialReferenceShadow_ConvertToOtherProjection(OSRSpatialReferenceShadow*, const char*, char**)':
    extensions/osr_wrap.cpp:4379:71: error: 'OSRConvertToOtherProjection' was not declared in this scope
         return OSRConvertToOtherProjection(self, other_projection, options);
                                                                           ^
    extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_PromoteTo3D(OSRSpatialReferenceShadow*, const char*)':
    extensions/osr_wrap.cpp:4382:37: error: 'OSRPromoteTo3D' was not declared in this scope
         return OSRPromoteTo3D(self, name);
                                         ^
    extensions/osr_wrap.cpp: At global scope:
    extensions/osr_wrap.cpp:4384:12: error: 'OGRCoordinateTransformationOptions' does not name a type
     SWIGINTERN OGRCoordinateTransformationOptions *new_OGRCoordinateTransformationOptions(){
                ^
    extensions/osr_wrap.cpp:4387:59: error: variable or field 'delete_OGRCoordinateTransformationOptions' declared void
     SWIGINTERN void delete_OGRCoordinateTransformationOptions(OGRCoordinateTransformationOptions *self){
                                                               ^
    extensions/osr_wrap.cpp:4387:59: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
    extensions/osr_wrap.cpp:4387:95: error: 'self' was not declared in this scope
     SWIGINTERN void delete_OGRCoordinateTransformationOptions(OGRCoordinateTransformationOptions *self){
                                                                                                   ^
    extensions/osr_wrap.cpp:4390:70: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                          ^
    extensions/osr_wrap.cpp:4390:106: error: 'self' was not declared in this scope
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                              ^
    extensions/osr_wrap.cpp:4390:111: error: expected primary-expression before 'double'
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                   ^
    extensions/osr_wrap.cpp:4390:135: error: expected primary-expression before 'double'
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                           ^
    extensions/osr_wrap.cpp:4390:159: error: expected primary-expression before 'double'
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                   ^
    extensions/osr_wrap.cpp:4390:183: error: expected primary-expression before 'double'
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                                           ^
    extensions/osr_wrap.cpp:4390:206: error: expression list treated as compound expression in initializer [-fpermissive]
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                                                                  ^
    extensions/osr_wrap.cpp:4390:207: error: expected ',' or ';' before '{' token
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
                                                                                                                                                                                                                   ^
    extensions/osr_wrap.cpp:4395:65: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                     ^
    extensions/osr_wrap.cpp:4395:101: error: 'self' was not declared in this scope
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                         ^
    extensions/osr_wrap.cpp:4395:106: error: expected primary-expression before 'char'
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                              ^
    extensions/osr_wrap.cpp:4395:127: error: expression list treated as compound expression in initializer [-fpermissive]
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                                                   ^
    extensions/osr_wrap.cpp:4395:128: error: expected ',' or ';' before '{' token
     SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation(OGRCoordinateTransformationOptions *self,char const *operation){
                                                                                                                                    ^
    extensions/osr_wrap.cpp:4401:155: error: 'OGRCoordinateTransformationOptions' has not been declared
     SWIGINTERN OSRCoordinateTransformationShadow *new_OSRCoordinateTransformationShadow__SWIG_1(OSRSpatialReferenceShadow *src,OSRSpatialReferenceShadow *dst,OGRCoordinateTransformationOptions *options){
                                                                                                                                                               ^
    extensions/osr_wrap.cpp: In function 'OSRCoordinateTransformationShadow* new_OSRCoordinateTransformationShadow__SWIG_1(OSRSpatialReferenceShadow*, OSRSpatialReferenceShadow*, int*)':
    extensions/osr_wrap.cpp:4403:71: error: 'OCTNewCoordinateTransformationEx' was not declared in this scope
             options ? OCTNewCoordinateTransformationEx( src, dst, options ) : OCTNewCoordinateTransformation(src, dst);
                                                                           ^
    extensions/osr_wrap.cpp: In function 'void OSRCoordinateTransformationShadow_TransformPoint__SWIG_1(OSRCoordinateTransformationShadow*, double*)':
    extensions/osr_wrap.cpp:4416:79: error: 'OCTTransform4D' was not declared in this scope
         OCTTransform4D( self, 1, &inout[0], &inout[1], &inout[2], &inout[3], NULL );
                                                                                   ^
    extensions/osr_wrap.cpp: In function 'void OSRCoordinateTransformationShadow_TransformPoint__SWIG_3(OSRCoordinateTransformationShadow*, double*, double, double, double, double)':
    extensions/osr_wrap.cpp:4433:83: error: 'OCTTransform4D' was not declared in this scope
         OCTTransform4D( self, 1, &argout[0], &argout[1], &argout[2], &argout[3], NULL );
                                                                                       ^
    extensions/osr_wrap.cpp: In function 'void OSRCoordinateTransformationShadow_TransformPoints(OSRCoordinateTransformationShadow*, int, double*, double*, double*, double*)':
    extensions/osr_wrap.cpp:4534:52: error: 'OCTTransform4D' was not declared in this scope
         OCTTransform4D( self, nCount, x, y, z, t, NULL );
                                                        ^
    extensions/osr_wrap.cpp: At global scope:
    extensions/osr_wrap.cpp:4537:134: error: 'OGRCoordinateTransformationOptions' has not been declared
       OSRCoordinateTransformationShadow *CreateCoordinateTransformation( OSRSpatialReferenceShadow *src, OSRSpatialReferenceShadow *dst, OGRCoordinateTransformationOptions* options = NULL ) {
                                                                                                                                          ^
    extensions/osr_wrap.cpp: In function 'OSRCoordinateTransformationShadow* CreateCoordinateTransformation(OSRSpatialReferenceShadow*, OSRSpatialReferenceShadow*, int*)':
    extensions/osr_wrap.cpp:4539:71: error: 'OCTNewCoordinateTransformationEx' was not declared in this scope
             options ? OCTNewCoordinateTransformationEx( src, dst, options ) : OCTNewCoordinateTransformation(src, dst);
                                                                           ^
    extensions/osr_wrap.cpp: At global scope:
    extensions/osr_wrap.cpp:4556:12: error: 'OSRCRSInfo' does not name a type
     SWIGINTERN OSRCRSInfo *new_OSRCRSInfo(char const *auth_name,char const *code,char const *name,OSRCRSType type,bool deprecated,bool bbox_valid,double west_lon_degree,double south_lat_degree,double east_lon_degree,double north_lat_degree,char const *area_name,char const *projection_method){
                ^
    extensions/osr_wrap.cpp:4572:35: error: variable or field 'delete_OSRCRSInfo' declared void
     SWIGINTERN void delete_OSRCRSInfo(OSRCRSInfo *self){
                                       ^
    extensions/osr_wrap.cpp:4572:35: error: 'OSRCRSInfo' was not declared in this scope
    extensions/osr_wrap.cpp:4572:47: error: 'self' was not declared in this scope
     SWIGINTERN void delete_OSRCRSInfo(OSRCRSInfo *self){
                                                   ^
    extensions/osr_wrap.cpp:4582:39: error: 'OSRCRSInfo' was not declared in this scope
     const char* OSRCRSInfo_auth_name_get( OSRCRSInfo *crsInfo ) {
                                           ^
    extensions/osr_wrap.cpp:4582:51: error: 'crsInfo' was not declared in this scope
     const char* OSRCRSInfo_auth_name_get( OSRCRSInfo *crsInfo ) {
                                                       ^
    extensions/osr_wrap.cpp:4582:61: error: expected ',' or ';' before '{' token
     const char* OSRCRSInfo_auth_name_get( OSRCRSInfo *crsInfo ) {
                                                                 ^
    extensions/osr_wrap.cpp:4586:34: error: 'OSRCRSInfo' was not declared in this scope
     const char* OSRCRSInfo_code_get( OSRCRSInfo *crsInfo ) {
                                      ^
    extensions/osr_wrap.cpp:4586:46: error: 'crsInfo' was not declared in this scope
     const char* OSRCRSInfo_code_get( OSRCRSInfo *crsInfo ) {
                                                  ^
    extensions/osr_wrap.cpp:4586:56: error: expected ',' or ';' before '{' token
     const char* OSRCRSInfo_code_get( OSRCRSInfo *crsInfo ) {
                                                            ^
    extensions/osr_wrap.cpp:4590:34: error: 'OSRCRSInfo' was not declared in this scope
     const char* OSRCRSInfo_name_get( OSRCRSInfo *crsInfo ) {
                                      ^
    extensions/osr_wrap.cpp:4590:46: error: 'crsInfo' was not declared in this scope
     const char* OSRCRSInfo_name_get( OSRCRSInfo *crsInfo ) {
                                                  ^
    extensions/osr_wrap.cpp:4590:56: error: expected ',' or ';' before '{' token
     const char* OSRCRSInfo_name_get( OSRCRSInfo *crsInfo ) {
                                                            ^
    extensions/osr_wrap.cpp:4594:1: error: 'OSRCRSType' does not name a type
     OSRCRSType OSRCRSInfo_type_get( OSRCRSInfo *crsInfo ) {
     ^
    extensions/osr_wrap.cpp:4598:33: error: 'OSRCRSInfo' was not declared in this scope
     bool OSRCRSInfo_deprecated_get( OSRCRSInfo *crsInfo ) {
                                     ^
    extensions/osr_wrap.cpp:4598:45: error: 'crsInfo' was not declared in this scope
     bool OSRCRSInfo_deprecated_get( OSRCRSInfo *crsInfo ) {
                                                 ^
    extensions/osr_wrap.cpp:4598:55: error: expected ',' or ';' before '{' token
     bool OSRCRSInfo_deprecated_get( OSRCRSInfo *crsInfo ) {
                                                           ^
    extensions/osr_wrap.cpp:4602:33: error: 'OSRCRSInfo' was not declared in this scope
     bool OSRCRSInfo_bbox_valid_get( OSRCRSInfo *crsInfo ) {
                                     ^
    extensions/osr_wrap.cpp:4602:45: error: 'crsInfo' was not declared in this scope
     bool OSRCRSInfo_bbox_valid_get( OSRCRSInfo *crsInfo ) {
                                                 ^
    extensions/osr_wrap.cpp:4602:55: error: expected ',' or ';' before '{' token
     bool OSRCRSInfo_bbox_valid_get( OSRCRSInfo *crsInfo ) {
                                                           ^
    extensions/osr_wrap.cpp:4606:40: error: 'OSRCRSInfo' was not declared in this scope
     double OSRCRSInfo_west_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                            ^
    extensions/osr_wrap.cpp:4606:52: error: 'crsInfo' was not declared in this scope
     double OSRCRSInfo_west_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                        ^
    extensions/osr_wrap.cpp:4606:62: error: expected ',' or ';' before '{' token
     double OSRCRSInfo_west_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                                  ^
    extensions/osr_wrap.cpp:4610:41: error: 'OSRCRSInfo' was not declared in this scope
     double OSRCRSInfo_south_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                             ^
    extensions/osr_wrap.cpp:4610:53: error: 'crsInfo' was not declared in this scope
     double OSRCRSInfo_south_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                         ^
    extensions/osr_wrap.cpp:4610:63: error: expected ',' or ';' before '{' token
     double OSRCRSInfo_south_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                                   ^
    extensions/osr_wrap.cpp:4614:40: error: 'OSRCRSInfo' was not declared in this scope
     double OSRCRSInfo_east_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                            ^
    extensions/osr_wrap.cpp:4614:52: error: 'crsInfo' was not declared in this scope
     double OSRCRSInfo_east_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                        ^
    extensions/osr_wrap.cpp:4614:62: error: expected ',' or ';' before '{' token
     double OSRCRSInfo_east_lon_degree_get( OSRCRSInfo *crsInfo ) {
                                                                  ^
    extensions/osr_wrap.cpp:4618:41: error: 'OSRCRSInfo' was not declared in this scope
     double OSRCRSInfo_north_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                             ^
    extensions/osr_wrap.cpp:4618:53: error: 'crsInfo' was not declared in this scope
     double OSRCRSInfo_north_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                         ^
    extensions/osr_wrap.cpp:4618:63: error: expected ',' or ';' before '{' token
     double OSRCRSInfo_north_lat_degree_get( OSRCRSInfo *crsInfo ) {
                                                                   ^
    extensions/osr_wrap.cpp:4622:39: error: 'OSRCRSInfo' was not declared in this scope
     const char* OSRCRSInfo_area_name_get( OSRCRSInfo *crsInfo ) {
                                           ^
    extensions/osr_wrap.cpp:4622:51: error: 'crsInfo' was not declared in this scope
     const char* OSRCRSInfo_area_name_get( OSRCRSInfo *crsInfo ) {
                                                       ^
    extensions/osr_wrap.cpp:4622:61: error: expected ',' or ';' before '{' token
     const char* OSRCRSInfo_area_name_get( OSRCRSInfo *crsInfo ) {
                                                                 ^
    extensions/osr_wrap.cpp:4626:47: error: 'OSRCRSInfo' was not declared in this scope
     const char* OSRCRSInfo_projection_method_get( OSRCRSInfo *crsInfo ) {
                                                   ^
    extensions/osr_wrap.cpp:4626:59: error: 'crsInfo' was not declared in this scope
     const char* OSRCRSInfo_projection_method_get( OSRCRSInfo *crsInfo ) {
                                                               ^
    extensions/osr_wrap.cpp:4626:69: error: expected ',' or ';' before '{' token
     const char* OSRCRSInfo_projection_method_get( OSRCRSInfo *crsInfo ) {
                                                                         ^
    extensions/osr_wrap.cpp:4633:34: error: 'OSRCRSInfo' has not been declared
                                      OSRCRSInfo*** pList,
                                      ^
    extensions/osr_wrap.cpp: In function 'void GetCRSInfoListFromDatabase(const char*, int***, int*)':
    extensions/osr_wrap.cpp:4636:71: error: 'OSRGetCRSInfoListFromDatabase' was not declared in this scope
         *pList = OSRGetCRSInfoListFromDatabase(authName, NULL, pnListCount);
                                                                           ^
    extensions/osr_wrap.cpp: In function 'void SetPROJSearchPath(const char*)':
    extensions/osr_wrap.cpp:4643:36: error: 'OSRSetPROJSearchPaths' was not declared in this scope
         OSRSetPROJSearchPaths(apszPaths);
                                        ^
    extensions/osr_wrap.cpp: In function 'void SetPROJSearchPaths(char**)':
    extensions/osr_wrap.cpp:4649:32: error: 'OSRSetPROJSearchPaths' was not declared in this scope
         OSRSetPROJSearchPaths(paths);
                                    ^
    extensions/osr_wrap.cpp: In function 'char** GetPROJSearchPaths()':
    extensions/osr_wrap.cpp:4655:34: error: 'OSRGetPROJSearchPaths' was not declared in this scope
         return OSRGetPROJSearchPaths();
                                      ^
    extensions/osr_wrap.cpp: In function 'int GetPROJVersionMajor()':
    extensions/osr_wrap.cpp:4662:39: error: 'OSRGetPROJVersion' was not declared in this scope
         OSRGetPROJVersion(&num, NULL, NULL);
                                           ^
    extensions/osr_wrap.cpp: In function 'int GetPROJVersionMinor()':
    extensions/osr_wrap.cpp:4669:39: error: 'OSRGetPROJVersion' was not declared in this scope
         OSRGetPROJVersion(NULL, &num, NULL);
                                           ^
    extensions/osr_wrap.cpp: In function 'int GetPROJVersionMicro()':
    extensions/osr_wrap.cpp:4676:39: error: 'OSRGetPROJVersion' was not declared in this scope
         OSRGetPROJVersion(NULL, NULL, &num);
                                           ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_SpatialReference_GetAxisMappingStrategy(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:7097:3: error: 'OSRAxisMappingStrategy' was not declared in this scope
       OSRAxisMappingStrategy result;
       ^
    extensions/osr_wrap.cpp:7109:5: error: 'result' was not declared in this scope
         result = (OSRAxisMappingStrategy)OSRSpatialReferenceShadow_GetAxisMappingStrategy(arg1);
         ^
    extensions/osr_wrap.cpp:7119:48: error: 'result' was not declared in this scope
       resultobj = SWIG_From_int(static_cast< int >(result));
                                                    ^
    extensions/ogr_wrap.cpp: In function 'int ValidateOGRFieldSubType(OGRFieldSubType)':
    extensions/ogr_wrap.cpp:4897:18: error: 'OFSTJSON' was not declared in this scope
                 case OFSTJSON:
                      ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_SpatialReference_SetAxisMappingStrategy(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:7130:3: error: 'OSRAxisMappingStrategy' was not declared in this scope
       OSRAxisMappingStrategy arg2 ;
       ^
    extensions/osr_wrap.cpp:7148:3: error: 'arg2' was not declared in this scope
       arg2 = static_cast< OSRAxisMappingStrategy >(val2);
       ^
    extensions/osr_wrap.cpp:7148:23: error: 'OSRAxisMappingStrategy' does not name a type
       arg2 = static_cast< OSRAxisMappingStrategy >(val2);
                           ^
    extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* CreateGeometryFromEsriJson(const char*)':
    extensions/ogr_wrap.cpp:5075:96: error: 'OGR_G_CreateGeometryFromEsriJson' was not declared in this scope
         OGRGeometryShadow* geom = (OGRGeometryShadow*)OGR_G_CreateGeometryFromEsriJson(input_string);
                                                                                                    ^
    extensions/ogr_wrap.cpp: In function 'void OGRGeometryShadow_SwapXY(OGRGeometryShadow*)':
    extensions/ogr_wrap.cpp:5323:22: error: 'OGR_G_SwapXY' was not declared in this scope
         OGR_G_SwapXY(self);
                          ^
    extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeometryShadow_MakeValid(OGRGeometryShadow*)':
    extensions/ogr_wrap.cpp:5350:53: error: 'OGR_G_MakeValid' was not declared in this scope
         return (OGRGeometryShadow*) OGR_G_MakeValid(self);
                                                         ^
    extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeometryShadow_RemoveLowerDimensionSubGeoms(OGRGeometryShadow*)':
    extensions/ogr_wrap.cpp:5353:72: error: 'OGR_G_RemoveLowerDimensionSubGeoms' was not declared in this scope
         return (OGRGeometryShadow*) OGR_G_RemoveLowerDimensionSubGeoms(self);
                                                                            ^
    extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeometryShadow_Transform__SWIG_1(OGRGeometryShadow*, OGRGeomTransformerShadow*)':
    extensions/ogr_wrap.cpp:5505:79: error: 'OGR_GeomTransformer_Transform' was not declared in this scope
         return (OGRGeometryShadow*)OGR_GeomTransformer_Transform(transformer, self);
                                                                                   ^
    extensions/ogr_wrap.cpp: In function 'OGRGeomTransformerShadow* new_OGRGeomTransformerShadow(OSRCoordinateTransformationShadow*, char**)':
    extensions/ogr_wrap.cpp:5508:50: error: 'OGR_GeomTransformer_Create' was not declared in this scope
         return OGR_GeomTransformer_Create(ct, options);
                                                      ^
    extensions/ogr_wrap.cpp: In function 'void delete_OGRGeomTransformerShadow(OGRGeomTransformerShadow*)':
    extensions/ogr_wrap.cpp:5511:39: error: 'OGR_GeomTransformer_Destroy' was not declared in this scope
         OGR_GeomTransformer_Destroy( self );
                                           ^
    extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow* OGRGeomTransformerShadow_Transform(OGRGeomTransformerShadow*, OGRGeometryShadow*)':
    extensions/ogr_wrap.cpp:5514:76: error: 'OGR_GeomTransformer_Transform' was not declared in this scope
         return (OGRGeometryShadow*)OGR_GeomTransformer_Transform(self, src_geom);
                                                                                ^
    extensions/gdal_wrap.cpp:3209:9: error: 'GDALExtendedDataTypeHS' does not name a type
     typedef GDALExtendedDataTypeHS GDALExtendedDataTypeHS;
             ^
    extensions/gdal_wrap.cpp:3210:9: error: 'GDALEDTComponentHS' does not name a type
     typedef GDALEDTComponentHS GDALEDTComponentHS;
             ^
    extensions/gdal_wrap.cpp:3211:9: error: 'GDALGroupHS' does not name a type
     typedef GDALGroupHS GDALGroupHS;
             ^
    extensions/gdal_wrap.cpp:3212:9: error: 'GDALMDArrayHS' does not name a type
     typedef GDALMDArrayHS GDALMDArrayHS;
             ^
    extensions/gdal_wrap.cpp:3213:9: error: 'GDALAttributeHS' does not name a type
     typedef GDALAttributeHS GDALAttributeHS;
             ^
    extensions/gdal_wrap.cpp:3214:9: error: 'GDALDimensionHS' does not name a type
     typedef GDALDimensionHS GDALDimensionHS;
             ^
    extensions/gdal_wrap.cpp:4117:1: error: 'VSIDIR' does not name a type
     VSIDIR* wrapper_VSIOpenDir( const char * utf8_path,
     ^
    extensions/gdal_wrap.cpp:4234:38: error: 'VSIDIR' was not declared in this scope
     DirEntry* wrapper_VSIGetNextDirEntry(VSIDIR* dir)
                                          ^
    extensions/gdal_wrap.cpp:4234:46: error: 'dir' was not declared in this scope
     DirEntry* wrapper_VSIGetNextDirEntry(VSIDIR* dir)
                                                  ^
    extensions/gdal_wrap.cpp:4235:1: error: expected ',' or ';' before '{' token
     {
     ^
    extensions/gdal_wrap.cpp:3249:7: warning: 'char* get_aligned_buffer(char*, GDALDataType)' defined but not used [-Wunused-function]
     char* get_aligned_buffer(char* data, GDALDataType ntype)
           ^
    extensions/gdal_wrap.cpp:3268:13: warning: 'void update_buffer_size(void*, char*, char*, size_t)' defined but not used [-Wunused-function]
     static void update_buffer_size(void* obj, char* data, char* data_aligned, size_t buf_size)
                 ^
    extensions/gdal_wrap.cpp:3323:5: warning: 'int GetUseExceptions()' defined but not used [-Wunused-function]
     int GetUseExceptions() {
         ^
    extensions/gdal_wrap.cpp:3329:6: warning: 'void UseExceptions()' defined but not used [-Wunused-function]
     void UseExceptions() {
          ^
    extensions/gdal_wrap.cpp:3346:6: warning: 'void DontUseExceptions()' defined but not used [-Wunused-function]
     void DontUseExceptions() {
          ^
    extensions/gdal_wrap.cpp:3394:13: warning: 'void ClearErrorState()' defined but not used [-Wunused-function]
     static void ClearErrorState()
                 ^
    extensions/gdal_wrap.cpp:4128:15: warning: 'char** CSLFromPySequence(PyObject*, int*)' defined but not used [-Wunused-function]
     static char **CSLFromPySequence( PyObject *pySeq, int *pbErr )
                   ^
    building 'osgeo._gdal_array' extension
    cc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/linuxbrew/.linuxbrew/include -I/home/linuxbrew/.linuxbrew/opt/openssl@1.1/include -I/home/linuxbrew/.linuxbrew/opt/sqlite/include -I/home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8 -I/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include -I/usr/include -c extensions/gdal_array_wrap.cpp -o build/temp.linux-x86_64-3.8/extensions/gdal_array_wrap.o -std=c++11 -I/usr/include/gdal
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_new_CoordinateTransformationOptions(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:15183:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
       OGRCoordinateTransformationOptions *result = 0 ;
       ^
    extensions/osr_wrap.cpp:15183:39: error: 'result' was not declared in this scope
       OGRCoordinateTransformationOptions *result = 0 ;
                                           ^
    extensions/osr_wrap.cpp:15190:51: error: expected primary-expression before ')' token
         result = (OGRCoordinateTransformationOptions *)new_OGRCoordinateTransformationOptions();
                                                       ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_delete_CoordinateTransformationOptions(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:15210:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
       ^
    extensions/osr_wrap.cpp:15210:39: error: 'arg1' was not declared in this scope
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                           ^
    extensions/osr_wrap.cpp:15210:83: error: expected primary-expression before ')' token
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                       ^
    extensions/osr_wrap.cpp:15220:28: error: 'OGRCoordinateTransformationOptions' does not name a type
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                ^
    extensions/osr_wrap.cpp:15220:63: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                   ^
    extensions/osr_wrap.cpp:15220:63: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:15220:65: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                     ^
    extensions/osr_wrap.cpp:15220:73: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                             ^
    extensions/osr_wrap.cpp:15225:51: error: 'delete_OGRCoordinateTransformationOptions' was not declared in this scope
         delete_OGRCoordinateTransformationOptions(arg1);
                                                       ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CoordinateTransformationOptions_SetAreaOfInterest(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:15245:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
       ^
    extensions/osr_wrap.cpp:15245:39: error: 'arg1' was not declared in this scope
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                           ^
    extensions/osr_wrap.cpp:15245:83: error: expected primary-expression before ')' token
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                       ^
    extensions/osr_wrap.cpp:15272:28: error: 'OGRCoordinateTransformationOptions' does not name a type
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                ^
    extensions/osr_wrap.cpp:15272:63: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                   ^
    extensions/osr_wrap.cpp:15272:63: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:15272:65: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                     ^
    extensions/osr_wrap.cpp:15272:73: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                             ^
    extensions/osr_wrap.cpp:15297:97: error: 'OGRCoordinateTransformationOptions_SetAreaOfInterest' cannot be used as a function
         result = (bool)OGRCoordinateTransformationOptions_SetAreaOfInterest(arg1,arg2,arg3,arg4,arg5);
                                                                                                     ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CoordinateTransformationOptions_SetOperation(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:15317:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
       ^
    extensions/osr_wrap.cpp:15317:39: error: 'arg1' was not declared in this scope
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                           ^
    extensions/osr_wrap.cpp:15317:83: error: expected primary-expression before ')' token
       OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                       ^
    extensions/osr_wrap.cpp:15333:28: error: 'OGRCoordinateTransformationOptions' does not name a type
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                ^
    extensions/osr_wrap.cpp:15333:63: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                   ^
    extensions/osr_wrap.cpp:15333:63: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:15333:65: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                     ^
    extensions/osr_wrap.cpp:15333:73: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp1);
                                                                             ^
    extensions/osr_wrap.cpp:15343:91: error: 'OGRCoordinateTransformationOptions_SetOperation' cannot be used as a function
         result = (bool)OGRCoordinateTransformationOptions_SetOperation(arg1,(char const *)arg2);
                                                                                               ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_new_CoordinateTransformation__SWIG_1(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:15419:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
       OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
       ^
    extensions/osr_wrap.cpp:15419:39: error: 'arg3' was not declared in this scope
       OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
                                           ^
    extensions/osr_wrap.cpp:15419:83: error: expected primary-expression before ')' token
       OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
                                                                                       ^
    extensions/osr_wrap.cpp:15446:28: error: 'OGRCoordinateTransformationOptions' does not name a type
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                ^
    extensions/osr_wrap.cpp:15446:63: error: expected '>' before '*' token
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                   ^
    extensions/osr_wrap.cpp:15446:63: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:15446:65: error: expected primary-expression before '>' token
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                     ^
    extensions/osr_wrap.cpp:15446:73: error: expected ')' before ';' token
       arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                             ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CreateCoordinateTransformation(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16077:3: error: 'OGRCoordinateTransformationOptions' was not declared in this scope
       OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) NULL ;
       ^
    extensions/osr_wrap.cpp:16077:39: error: 'arg3' was not declared in this scope
       OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) NULL ;
                                           ^
    extensions/osr_wrap.cpp:16077:83: error: expected primary-expression before ')' token
       OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) NULL ;
                                                                                       ^
    extensions/osr_wrap.cpp:16105:30: error: 'OGRCoordinateTransformationOptions' does not name a type
         arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                  ^
    extensions/osr_wrap.cpp:16105:65: error: expected '>' before '*' token
         arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                     ^
    extensions/osr_wrap.cpp:16105:65: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16105:67: error: expected primary-expression before '>' token
         arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                       ^
    extensions/osr_wrap.cpp:16105:75: error: expected ')' before ';' token
         arg3 = reinterpret_cast< OGRCoordinateTransformationOptions * >(argp3);
                                                                               ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_auth_name_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16131:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16131:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16131:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16142:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16142:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16142:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16142:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16142:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16147:51: error: 'OSRCRSInfo_auth_name_get' cannot be used as a function
         result = (char *)OSRCRSInfo_auth_name_get(arg1);
                                                       ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_code_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16167:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16167:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16167:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16178:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16178:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16178:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16178:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16178:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16183:46: error: 'OSRCRSInfo_code_get' cannot be used as a function
         result = (char *)OSRCRSInfo_code_get(arg1);
                                                  ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_name_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16203:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16203:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16203:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16214:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16214:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16214:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16214:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16214:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16219:46: error: 'OSRCRSInfo_name_get' cannot be used as a function
         result = (char *)OSRCRSInfo_name_get(arg1);
                                                  ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_type_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16239:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16239:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16239:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16243:3: error: 'OSRCRSType' was not declared in this scope
       OSRCRSType result;
       ^
    extensions/osr_wrap.cpp:16250:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16250:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16250:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16250:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16250:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16255:5: error: 'result' was not declared in this scope
         result = (OSRCRSType)OSRCRSInfo_type_get(arg1);
         ^
    extensions/osr_wrap.cpp:16265:48: error: 'result' was not declared in this scope
       resultobj = SWIG_From_int(static_cast< int >(result));
                                                    ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_deprecated_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16275:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16275:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16275:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16286:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16286:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16286:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16286:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16286:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16291:50: error: 'OSRCRSInfo_deprecated_get' cannot be used as a function
         result = (bool)OSRCRSInfo_deprecated_get(arg1);
                                                      ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_bbox_valid_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16311:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16311:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16311:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16322:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16322:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16322:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16322:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16322:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16327:50: error: 'OSRCRSInfo_bbox_valid_get' cannot be used as a function
         result = (bool)OSRCRSInfo_bbox_valid_get(arg1);
                                                      ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_west_lon_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16347:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16347:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16347:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16358:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16358:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16358:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16358:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16358:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16363:57: error: 'OSRCRSInfo_west_lon_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_west_lon_degree_get(arg1);
                                                             ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_south_lat_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16383:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16383:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16383:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16394:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16394:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16394:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16394:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16394:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16399:58: error: 'OSRCRSInfo_south_lat_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_south_lat_degree_get(arg1);
                                                              ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_east_lon_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16419:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16419:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16419:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16430:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16430:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16430:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16430:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16430:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16435:57: error: 'OSRCRSInfo_east_lon_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_east_lon_degree_get(arg1);
                                                             ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_north_lat_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16455:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16455:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16455:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16466:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16466:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16466:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16466:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16466:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16471:58: error: 'OSRCRSInfo_north_lat_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_north_lat_degree_get(arg1);
                                                              ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_area_name_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16491:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16491:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16491:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16502:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16502:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16502:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16502:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16502:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16507:51: error: 'OSRCRSInfo_area_name_get' cannot be used as a function
         result = (char *)OSRCRSInfo_area_name_get(arg1);
                                                       ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_CRSInfo_projection_method_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16527:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16527:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16527:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16538:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16538:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16538:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16538:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16538:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16543:59: error: 'OSRCRSInfo_projection_method_get' cannot be used as a function
         result = (char *)OSRCRSInfo_projection_method_get(arg1);
                                                               ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_new_CRSInfo(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16566:3: error: 'OSRCRSType' was not declared in this scope
       OSRCRSType arg4 ;
       ^
    extensions/osr_wrap.cpp:16616:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *result = 0 ;
       ^
    extensions/osr_wrap.cpp:16616:15: error: 'result' was not declared in this scope
       OSRCRSInfo *result = 0 ;
                   ^
    extensions/osr_wrap.cpp:16638:3: error: 'arg4' was not declared in this scope
       arg4 = static_cast< OSRCRSType >(val4);
       ^
    extensions/osr_wrap.cpp:16638:23: error: 'OSRCRSType' does not name a type
       arg4 = static_cast< OSRCRSType >(val4);
                           ^
    extensions/osr_wrap.cpp:16688:27: error: expected primary-expression before ')' token
         result = (OSRCRSInfo *)new_OSRCRSInfo((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(char const *)arg11,(char const *)arg12);
                               ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_delete_CRSInfo(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16718:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16718:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16718:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16728:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16728:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16728:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16728:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16728:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16733:27: error: 'delete_OSRCRSInfo' was not declared in this scope
         delete_OSRCRSInfo(arg1);
                               ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_auth_name_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16760:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16760:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16760:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16771:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16771:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16771:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16771:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16771:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16781:51: error: 'OSRCRSInfo_auth_name_get' cannot be used as a function
         result = (char *)OSRCRSInfo_auth_name_get(arg1);
                                                       ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_code_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16801:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16801:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16801:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16812:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16812:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16812:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16812:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16812:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16822:46: error: 'OSRCRSInfo_code_get' cannot be used as a function
         result = (char *)OSRCRSInfo_code_get(arg1);
                                                  ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_name_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16842:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16842:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16842:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16853:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16853:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16853:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16853:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16853:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16863:46: error: 'OSRCRSInfo_name_get' cannot be used as a function
         result = (char *)OSRCRSInfo_name_get(arg1);
                                                  ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_type_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16883:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16883:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16883:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16887:3: error: 'OSRCRSType' was not declared in this scope
       OSRCRSType result;
       ^
    extensions/osr_wrap.cpp:16894:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16894:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16894:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16894:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16894:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16904:5: error: 'result' was not declared in this scope
         result = (OSRCRSType)OSRCRSInfo_type_get(arg1);
         ^
    extensions/osr_wrap.cpp:16914:48: error: 'result' was not declared in this scope
       resultobj = SWIG_From_int(static_cast< int >(result));
                                                    ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_deprecated_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16924:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16924:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16924:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16935:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16935:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16935:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16935:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16935:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16945:50: error: 'OSRCRSInfo_deprecated_get' cannot be used as a function
         result = (bool)OSRCRSInfo_deprecated_get(arg1);
                                                      ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_bbox_valid_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:16965:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:16965:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:16965:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:16976:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:16976:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:16976:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:16976:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:16976:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:16986:50: error: 'OSRCRSInfo_bbox_valid_get' cannot be used as a function
         result = (bool)OSRCRSInfo_bbox_valid_get(arg1);
                                                      ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_west_lon_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:17006:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:17006:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:17006:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:17017:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:17017:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:17017:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:17017:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:17017:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:17027:57: error: 'OSRCRSInfo_west_lon_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_west_lon_degree_get(arg1);
                                                             ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_south_lat_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:17047:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:17047:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:17047:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:17058:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:17058:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:17058:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:17058:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:17058:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:17068:58: error: 'OSRCRSInfo_south_lat_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_south_lat_degree_get(arg1);
                                                              ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_east_lon_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:17088:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:17088:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:17088:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:17099:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:17099:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:17099:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:17099:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:17099:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:17109:57: error: 'OSRCRSInfo_east_lon_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_east_lon_degree_get(arg1);
                                                             ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_north_lat_degree_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:17129:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:17129:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:17129:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:17140:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:17140:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:17140:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:17140:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:17140:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:17150:58: error: 'OSRCRSInfo_north_lat_degree_get' cannot be used as a function
         result = (double)OSRCRSInfo_north_lat_degree_get(arg1);
                                                              ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_area_name_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:17170:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:17170:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:17170:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:17181:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:17181:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:17181:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:17181:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:17181:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:17191:51: error: 'OSRCRSInfo_area_name_get' cannot be used as a function
         result = (char *)OSRCRSInfo_area_name_get(arg1);
                                                       ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_OSRCRSInfo_projection_method_get(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:17211:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
       ^
    extensions/osr_wrap.cpp:17211:15: error: 'arg1' was not declared in this scope
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                   ^
    extensions/osr_wrap.cpp:17211:35: error: expected primary-expression before ')' token
       OSRCRSInfo *arg1 = (OSRCRSInfo *) 0 ;
                                       ^
    extensions/osr_wrap.cpp:17222:28: error: 'OSRCRSInfo' does not name a type
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                ^
    extensions/osr_wrap.cpp:17222:39: error: expected '>' before '*' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                           ^
    extensions/osr_wrap.cpp:17222:39: error: expected '(' before '*' token
    extensions/osr_wrap.cpp:17222:41: error: expected primary-expression before '>' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                             ^
    extensions/osr_wrap.cpp:17222:49: error: expected ')' before ';' token
       arg1 = reinterpret_cast< OSRCRSInfo * >(argp1);
                                                     ^
    extensions/osr_wrap.cpp:17232:59: error: 'OSRCRSInfo_projection_method_get' cannot be used as a function
         result = (char *)OSRCRSInfo_projection_method_get(arg1);
                                                               ^
    extensions/osr_wrap.cpp: In function 'PyObject* _wrap_GetCRSInfoListFromDatabase(PyObject*, PyObject*)':
    extensions/osr_wrap.cpp:17253:3: error: 'OSRCRSInfo' was not declared in this scope
       OSRCRSInfo ***arg2 = (OSRCRSInfo ***) 0 ;
       ^
    extensions/osr_wrap.cpp:17253:17: error: 'arg2' was not declared in this scope
       OSRCRSInfo ***arg2 = (OSRCRSInfo ***) 0 ;
                     ^
    extensions/osr_wrap.cpp:17253:39: error: expected primary-expression before ')' token
       OSRCRSInfo ***arg2 = (OSRCRSInfo ***) 0 ;
                                           ^
    extensions/osr_wrap.cpp:17258:16: error: 'list2' was not declared in this scope
       OSRCRSInfo **list2 = 0 ;
                    ^
    extensions/osr_wrap.cpp:17292:19: error: 'o' was not declared in this scope
           OSRCRSInfo *o = new_OSRCRSInfo( (*arg2)[i]->pszAuthName,
                       ^
    extensions/osr_wrap.cpp:17303:41: error: 'new_OSRCRSInfo' was not declared in this scope
             (*arg2)[i]->pszProjectionMethod );
                                             ^
    extensions/osr_wrap.cpp:17314:36: error: 'OSRDestroyCRSInfoList' was not declared in this scope
         OSRDestroyCRSInfoList( *(arg2) );
                                        ^
    extensions/osr_wrap.cpp:17322:36: error: 'OSRDestroyCRSInfoList' was not declared in this scope
         OSRDestroyCRSInfoList( *(arg2) );
                                        ^
    extensions/ogr_wrap.cpp: In function 'PyObject* _wrap_CreateGeometryFromWkb(PyObject*, PyObject*, PyObject*)':
    extensions/ogr_wrap.cpp:21022:17: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
           int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
                     ^
    In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                     from extensions/ogr_wrap.cpp:175:
    /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
     PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     ^
    extensions/ogr_wrap.cpp:21022:17: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
           int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
                     ^
    In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                     from extensions/ogr_wrap.cpp:175:
    /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
     PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     ^
    extensions/ogr_wrap.cpp:21022:63: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
           int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
                                                                   ^
    In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                     from extensions/ogr_wrap.cpp:175:
    /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
     PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     ^
    extensions/osr_wrap.cpp: In function 'PyObject* PyInit__osr()':
    extensions/osr_wrap.cpp:18684:92: error: 'OSR_CRS_TYPE_GEOGRAPHIC_2D' was not declared in this scope
       SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_GEOGRAPHIC_2D",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_GEOGRAPHIC_2D)));
                                                                                                ^
    extensions/osr_wrap.cpp:18685:92: error: 'OSR_CRS_TYPE_GEOGRAPHIC_3D' was not declared in this scope
       SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_GEOGRAPHIC_3D",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_GEOGRAPHIC_3D)));
                                                                                                ^
    extensions/osr_wrap.cpp:18686:89: error: 'OSR_CRS_TYPE_GEOCENTRIC' was not declared in this scope
       SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_GEOCENTRIC",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_GEOCENTRIC)));
                                                                                             ^
    extensions/osr_wrap.cpp:18687:88: error: 'OSR_CRS_TYPE_PROJECTED' was not declared in this scope
       SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_PROJECTED",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_PROJECTED)));
                                                                                            ^
    extensions/osr_wrap.cpp:18688:87: error: 'OSR_CRS_TYPE_VERTICAL' was not declared in this scope
       SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_VERTICAL",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_VERTICAL)));
                                                                                           ^
    extensions/osr_wrap.cpp:18689:87: error: 'OSR_CRS_TYPE_COMPOUND' was not declared in this scope
       SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_COMPOUND",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_COMPOUND)));
                                                                                           ^
    extensions/osr_wrap.cpp:18690:84: error: 'OSR_CRS_TYPE_OTHER' was not declared in this scope
       SWIG_Python_SetConstant(d, "OSR_CRS_TYPE_OTHER",SWIG_From_int(static_cast< int >(OSR_CRS_TYPE_OTHER)));
                                                                                        ^
    extensions/ogr_wrap.cpp: In function 'PyObject* _wrap_new_Geometry(PyObject*, PyObject*, PyObject*)':
    extensions/ogr_wrap.cpp:21857:19: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
             int res = PyObject_AsReadBuffer(obj2, &safeBuf, &safeLen);
                       ^
    In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                     from extensions/ogr_wrap.cpp:175:
    /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
     PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     ^
    extensions/ogr_wrap.cpp:21857:19: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
             int res = PyObject_AsReadBuffer(obj2, &safeBuf, &safeLen);
                       ^
    In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                     from extensions/ogr_wrap.cpp:175:
    /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
     PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     ^
    extensions/ogr_wrap.cpp:21857:65: warning: 'int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)' is deprecated [-Wdeprecated-declarations]
             int res = PyObject_AsReadBuffer(obj2, &safeBuf, &safeLen);
                                                                     ^
    In file included from /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/Python.h:147:0,
                     from extensions/ogr_wrap.cpp:175:
    /home/linuxbrew/.linuxbrew/opt/python@3.8/include/python3.8/abstract.h:337:17: note: declared here
     PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     ^
    In file included from /usr/include/gdal/ogr_feature.h:35:0,
                     from /usr/include/gdal/ogrsf_frmts.h:35,
                     from /usr/include/gdal/gnm.h:35,
                     from /usr/include/gdal/gnm_api.h:35,
                     from extensions/gnm_wrap.cpp:3141:
    /usr/include/gdal/ogr_featurestyle.h:88:5: error: 'CPLString' does not name a type
         CPLString osLastRequestedStyleName;
         ^
    In file included from /usr/include/gdal/ogrsf_frmts.h:37:0,
                     from /usr/include/gdal/gnm.h:35,
                     from /usr/include/gdal/gnm_api.h:35,
                     from extensions/gnm_wrap.cpp:3141:
    /usr/include/gdal/gdal_priv.h:90:5: error: 'CPLStringList' does not name a type
         CPLStringList **papoMetadataLists;
         ^
    /usr/include/gdal/gdal_priv.h:130:5: error: 'CPLString' does not name a type
         CPLString           sDescription;
         ^
    /usr/include/gdal/gdal_priv.h:171:5: error: 'CPLString' does not name a type
         CPLString   osOvrFilename;
         ^
    /usr/include/gdal/gdal_priv.h:552:5: error: 'CPLStringList' does not name a type
         CPLStringList oDerivedMetadataList;
         ^
    /usr/include/gdal/gdal_priv.h:1277:14: error: 'CPLString' was not declared in this scope
         std::map<CPLString, GDALDriver*> oMapNameToDrivers;
                  ^
    /usr/include/gdal/gdal_priv.h:1277:36: error: template argument 1 is invalid
         std::map<CPLString, GDALDriver*> oMapNameToDrivers;
                                        ^
    /usr/include/gdal/gdal_priv.h:1277:36: error: template argument 3 is invalid
    /usr/include/gdal/gdal_priv.h:1277:36: error: template argument 4 is invalid
    /usr/include/gdal/gdal_priv.h: In member function 'GDALDriver* GDALDriverManager::GetDriverByName_unlocked(const char*)':
    /usr/include/gdal/gdal_priv.h:1284:57: error: 'CPLString' was not declared in this scope
                 { return oMapNameToDrivers[CPLString(pszName).toupper()]; }
                                                             ^
    In file included from /usr/include/gdal/ogrsf_frmts.h:37:0,
                     from /usr/include/gdal/gnm.h:35,
                     from /usr/include/gdal/gnm_api.h:35,
                     from extensions/gnm_wrap.cpp:3141:
    /usr/include/gdal/gdal_priv.h: At global scope:
    /usr/include/gdal/gdal_priv.h:1559:1: error: 'CPLString' does not name a type
     CPLString GDALFindAssociatedFile( const char *pszBasename, const char *pszExt,
     ^
    In file included from /usr/include/gdal/gnm_api.h:35:0,
                     from extensions/gnm_wrap.cpp:3141:
    /usr/include/gdal/gnm.h:170:5: error: 'CPLString' does not name a type
         CPLString m_soName;
         ^
    /usr/include/gdal/gnm.h:171:5: error: 'CPLString' does not name a type
         CPLString m_soSRS;
         ^
    /usr/include/gdal/gnm.h:223:13: error: 'CPLString' does not name a type
         virtual CPLString GetAlgorithmName(GNMDirection eAlgorithm, bool bShortName);
                 ^
    /usr/include/gdal/gnm.h:465:23: error: 'CPLString' was not declared in this scope
         std::map<GNMGFID, CPLString> m_moFeatureFIDMap;
                           ^
    /usr/include/gdal/gnm.h:465:32: error: template argument 2 is invalid
         std::map<GNMGFID, CPLString> m_moFeatureFIDMap;
                                    ^
    /usr/include/gdal/gnm.h:465:32: error: template argument 4 is invalid
    /usr/include/gdal/gnm.h:609:5: error: 'CPLString' does not name a type
         CPLString m_soLayerName;
         ^
    /usr/include/gdal/gnm.h:666:35: error: 'CPLString' does not name a type
         virtual bool CanConnect(const CPLString &soSrcLayerName,
                                       ^
    /usr/include/gdal/gnm.h:667:35: error: 'CPLString' does not name a type
                                 const CPLString &soTgtLayerName,
                                       ^
    /usr/include/gdal/gnm.h:668:35: error: 'CPLString' does not name a type
                                 const CPLString &soConnLayerName = "");
                                       ^
    /usr/include/gdal/gnm.h:670:13: error: 'CPLString' does not name a type
         virtual CPLString GetSourceLayerName() const;
                 ^
    /usr/include/gdal/gnm.h:672:13: error: 'CPLString' does not name a type
         virtual CPLString GetTargetLayerName() const;
                 ^
    /usr/include/gdal/gnm.h:674:13: error: 'CPLString' does not name a type
         virtual CPLString GetConnectorLayerName() const;
                 ^
    /usr/include/gdal/gnm.h:683:5: error: 'CPLString' does not name a type
         CPLString m_soSrcLayerName;
         ^
    /usr/include/gdal/gnm.h:684:5: error: 'CPLString' does not name a type
         CPLString m_soTgtLayerName;
         ^
    /usr/include/gdal/gnm.h:685:5: error: 'CPLString' does not name a type
         CPLString m_soConnLayerName;
         ^
    /usr/include/gdal/gnm.h:689:5: error: 'CPLString' does not name a type
         CPLString m_soRuleString;
         ^
    /usr/include/gdal/gnm.h:668:64: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
                                 const CPLString &soConnLayerName = "");
                                                                    ^
    /usr/include/gdal/gnm.h:722:39: error: 'CPLString' does not name a type
                                     const CPLString &soLayerName, int nPathNo,
                                           ^
    extensions/gnm_wrap.cpp: In function 'GNMNetworkShadow* CastToNetwork(GDALMajorObjectShadow*)':
    extensions/gnm_wrap.cpp:3469:72: error: 'GNMCastToNetwork' was not declared in this scope
           return (GNMNetworkShadow*)GNMCastToNetwork((GDALMajorObjectH)base);
                                                                            ^
    extensions/gnm_wrap.cpp: In function 'GNMGenericNetworkShadow* CastToGenericNetwork(GDALMajorObjectShadow*)':
    extensions/gnm_wrap.cpp:3474:86: error: 'GNMCastToGenericNetwork' was not declared in this scope
           return (GNMGenericNetworkShadow*)GNMCastToGenericNetwork((GDALMajorObjectH)base);
                                                                                          ^
    extensions/gdal_array_wrap.cpp:3584:25: error: 'virtual const char* NUMPYDataset::_GetProjectionRef()' marked 'override', but does not override
         virtual const char *_GetProjectionRef(void) override;
                             ^
    extensions/gdal_array_wrap.cpp:3585:32: error: 'const OGRSpatialReference* NUMPYDataset::GetSpatialRef() const' marked 'override', but does not override
         const OGRSpatialReference* GetSpatialRef() const override {
                                    ^
    extensions/gdal_array_wrap.cpp:3588:20: error: 'virtual CPLErr NUMPYDataset::_SetProjection(const char*)' marked 'override', but does not override
         virtual CPLErr _SetProjection( const char * ) override;
                        ^
    extensions/gdal_array_wrap.cpp:3589:12: error: 'CPLErr NUMPYDataset::SetSpatialRef(const OGRSpatialReference*)' marked 'override', but does not override
         CPLErr SetSpatialRef(const OGRSpatialReference* poSRS) override {
                ^
    extensions/gdal_array_wrap.cpp:3597:25: error: 'virtual const char* NUMPYDataset::_GetGCPProjection()' marked 'override', but does not override
         virtual const char *_GetGCPProjection() override;
                             ^
    extensions/gdal_array_wrap.cpp:3598:32: error: 'const OGRSpatialReference* NUMPYDataset::GetGCPSpatialRef() const' marked 'override', but does not override
         const OGRSpatialReference* GetGCPSpatialRef() const override {
                                    ^
    extensions/gdal_array_wrap.cpp:3602:20: error: 'virtual CPLErr NUMPYDataset::_SetGCPs(int, const GDAL_GCP*, const char*)' marked 'override', but does not override
         virtual CPLErr _SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
                        ^
    extensions/gdal_array_wrap.cpp:3605:12: error: 'CPLErr NUMPYDataset::SetGCPs(int, const GDAL_GCP*, const OGRSpatialReference*)' marked 'override', but does not override
         CPLErr SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
                ^
    extensions/gdal_array_wrap.cpp: In member function 'const OGRSpatialReference* NUMPYDataset::GetSpatialRef() const':
    extensions/gdal_array_wrap.cpp:3586:53: error: 'GetSpatialRefFromOldGetProjectionRef' was not declared in this scope
             return GetSpatialRefFromOldGetProjectionRef();
                                                         ^
    extensions/gdal_array_wrap.cpp: In member function 'CPLErr NUMPYDataset::SetSpatialRef(const OGRSpatialReference*)':
    extensions/gdal_array_wrap.cpp:3590:55: error: 'OldSetProjectionFromSetSpatialRef' was not declared in this scope
             return OldSetProjectionFromSetSpatialRef(poSRS);
                                                           ^
    extensions/gdal_array_wrap.cpp: In member function 'const OGRSpatialReference* NUMPYDataset::GetGCPSpatialRef() const':
    extensions/gdal_array_wrap.cpp:3599:56: error: 'GetGCPSpatialRefFromOldGetGCPProjection' was not declared in this scope
             return GetGCPSpatialRefFromOldGetGCPProjection();
                                                            ^
    extensions/gdal_array_wrap.cpp: In member function 'CPLErr NUMPYDataset::SetGCPs(int, const GDAL_GCP*, const OGRSpatialReference*)':
    extensions/gdal_array_wrap.cpp:3607:62: error: 'OldSetGCPsFromNew' was not declared in this scope
             return OldSetGCPsFromNew(nGCPCount, pasGCPList, poSRS);
                                                                  ^
    extensions/gdal_array_wrap.cpp: At global scope:
    extensions/gdal_array_wrap.cpp:3995:10: error: 'unique_ptr' in namespace 'std' does not name a template type
         std::unique_ptr<GDALDataset> poMEMDS{};
              ^
    extensions/gdal_array_wrap.cpp:4003:10: error: 'shared_ptr' in namespace 'std' does not name a template type
         std::shared_ptr<GDALGroup> GetRootGroup() const override { return poMEMDS->GetRootGroup(); }
              ^
    extensions/gdal_array_wrap.cpp: In static member function 'static GDALDataset* NUMPYMultiDimensionalDataset::Open(PyArrayObject*)':
    extensions/gdal_array_wrap.cpp:4039:24: error: 'FromHandle' is not a member of 'GDALDriver'
         auto poMemDriver = GDALDriver::FromHandle(GDALGetDriverByName("MEM"));
                            ^
    extensions/gdal_array_wrap.cpp:4051:17: error: 'shared_ptr' is not a member of 'std'
         std::vector<std::shared_ptr<GDALDimension>> apoDims;
                     ^
    extensions/gdal_array_wrap.cpp:4051:17: error: 'shared_ptr' is not a member of 'std'
    extensions/gdal_array_wrap.cpp:4051:33: error: 'GDALDimension' was not declared in this scope
         std::vector<std::shared_ptr<GDALDimension>> apoDims;
                                     ^
    extensions/gdal_array_wrap.cpp:4051:33: error: template argument 1 is invalid
    extensions/gdal_array_wrap.cpp:4051:33: error: template argument 2 is invalid
    extensions/gdal_array_wrap.cpp:4051:46: error: expected unqualified-id before '>' token
         std::vector<std::shared_ptr<GDALDimension>> apoDims;
                                                  ^
    extensions/gdal_array_wrap.cpp:4061:9: error: 'apoDims' was not declared in this scope
             apoDims.push_back(poDim);
             ^
    extensions/gdal_array_wrap.cpp:4076:39: error: 'apoDims' was not declared in this scope
                                           apoDims,
                                           ^
    extensions/gdal_array_wrap.cpp:4077:39: error: 'GDALExtendedDataType' has not been declared
                                           GDALExtendedDataType::Create(eType),
                                           ^
    extensions/gdal_array_wrap.cpp:4081:16: error: type '<type error>' argument given to 'delete', expected pointer
             delete poMEMDS;
                    ^
    extensions/gdal_array_wrap.cpp:4086:22: error: 'FromHandle' is not a member of 'GDALDriver'
         poDS->poDriver = GDALDriver::FromHandle(GDALGetDriverByName("NUMPY"));
                          ^
    extensions/gdal_array_wrap.cpp:4090:11: error: 'class NUMPYMultiDimensionalDataset' has no member named 'poMEMDS'
         poDS->poMEMDS.reset(poMEMDS);
               ^
    extensions/gdal_array_wrap.cpp: At global scope:
    extensions/gdal_array_wrap.cpp:4473:34: error: 'GDALExtendedDataTypeHS' was not declared in this scope
     static bool CheckNumericDataType(GDALExtendedDataTypeHS* dt)
                                      ^
    extensions/gdal_array_wrap.cpp:4473:58: error: 'dt' was not declared in this scope
     static bool CheckNumericDataType(GDALExtendedDataTypeHS* dt)
                                                              ^
    extensions/gdal_array_wrap.cpp:4474:1: error: expected ',' or ';' before '{' token
     {
     ^
    extensions/gdal_array_wrap.cpp:3523:13: warning: 'void _StoreLastException()' defined but not used [-Wunused-function]
     static void _StoreLastException()
                 ^
    In file included from /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:21:0,
                     from /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from extensions/gdal_array_wrap.cpp:3548:
    /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: 'int _import_array()' defined but not used [-Wunused-function]
     _import_array(void)
     ^
    extensions/gdal_array_wrap.cpp:4473:13: warning: 'CheckNumericDataType' defined but not used [-Wunused-variable]
     static bool CheckNumericDataType(GDALExtendedDataTypeHS* dt)
                 ^
    error: command 'cc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/linuxbrew/.linuxbrew/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-slie5dz0/gdal/setup.py'"'"'; __file__='"'"'/tmp/pip-install-slie5dz0/gdal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9k0lla7y/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/include/python3.8/gdal Check the logs for full command output.

Steps to reproduce the problem.

pip install gdal

Operating system

Lubuntu 18.04 64 bit

GDAL version and provenance

cached GDAL-3.1.2.tar.gz (593 kB) from pip

@rouault
Copy link
Member

rouault commented Aug 3, 2020

Likely a duplicate of #2166 . You need to have the GDAL development headers & library that match the version you install from pip

@rouault rouault closed this as completed Aug 3, 2020
@AndreasLuckert
Copy link
Author

AndreasLuckert commented Aug 3, 2020

I'd installed all these headers and libraries before as described here.

Checking my GDAL-version installed via previously employing sudo apt install libgdal-dev delivers:

andylu@andylu-ThinkPad-Edge-E130:~/Desktop/Python/Scripts$
gdal-config --version
2.2.3

Unfortunately, pip install gdal still leads to the same endless error-messages posted above in the question.

Next, I've tried pip install pygdal and got other errors:

Click here to open the error-log

``` andylu@andylu-ThinkPad-Edge-E130:~/Desktop/Python/Scripts$ pip install pygdal Collecting pygdal Downloading pygdal-3.1.2.6.tar.gz (473 kB) |████████████████████████████████| 473 kB 1.7 MB/s Requirement already satisfied: numpy>=1.0.0 in /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages (from pygdal) (1.19.1) Building wheels for collected packages: pygdal Building wheel for pygdal (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/linuxbrew/.linuxbrew/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-__bvmq5c/pygdal/setup.py'"'"'; __file__='"'"'/tmp/pip-install-__bvmq5c/pygdal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-fcnuu6k3 cwd: /tmp/pip-install-__bvmq5c/pygdal/ Complete output (48 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/osgeo copying osgeo/osr.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/ogr.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdal.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/__init__.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdalconst.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gnm.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdal_array.py -> build/lib.linux-x86_64-3.8/osgeo /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/setuptools/lib2to3_ex.py:39: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process. warnings.warn( Fixing build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py Skipping optional fixer: ws_comma Fixing build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py Skipping optional fixer: ws_comma running build_ext Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-__bvmq5c/pygdal/setup.py", line 236, in setup( File "/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup return distutils.core.setup(**attrs) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 223, in run self.run_command('build') File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-__bvmq5c/pygdal/setup.py", line 83, in run raise GDALConfigError('Version mismatch %s != %s' % ( __main__.GDALConfigError: Version mismatch 2.2.3 != 3.1.2 ---------------------------------------- ERROR: Failed building wheel for pygdal Running setup.py clean for pygdal Failed to build pygdal DEPRECATION: Could not build wheels for pygdal which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. Installing collected packages: pygdal Running setup.py install for pygdal ... error ERROR: Command errored out with exit status 1: command: /home/linuxbrew/.linuxbrew/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-__bvmq5c/pygdal/setup.py'"'"'; __file__='"'"'/tmp/pip-install-__bvmq5c/pygdal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vnj9juhe/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/include/python3.8/pygdal cwd: /tmp/pip-install-__bvmq5c/pygdal/ Complete output (50 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/osgeo copying osgeo/osr.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/ogr.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdal.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/__init__.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdalconst.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gnm.py -> build/lib.linux-x86_64-3.8/osgeo copying osgeo/gdal_array.py -> build/lib.linux-x86_64-3.8/osgeo /home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/setuptools/lib2to3_ex.py:39: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process. warnings.warn( Fixing build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py Skipping optional fixer: ws_comma Fixing build/lib.linux-x86_64-3.8/osgeo/osr.py build/lib.linux-x86_64-3.8/osgeo/gdalnumeric.py build/lib.linux-x86_64-3.8/osgeo/ogr.py build/lib.linux-x86_64-3.8/osgeo/gdal.py build/lib.linux-x86_64-3.8/osgeo/__init__.py build/lib.linux-x86_64-3.8/osgeo/gdalconst.py build/lib.linux-x86_64-3.8/osgeo/gnm.py build/lib.linux-x86_64-3.8/osgeo/gdal_array.py Skipping optional fixer: ws_comma running build_ext Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-__bvmq5c/pygdal/setup.py", line 236, in setup( File "/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup return distutils.core.setup(**attrs) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/linuxbrew/.linuxbrew/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/command/install.py", line 545, in run self.run_command('build') File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-__bvmq5c/pygdal/setup.py", line 83, in run raise GDALConfigError('Version mismatch %s != %s' % ( __main__.GDALConfigError: Version mismatch 2.2.3 != 3.1.2 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/linuxbrew/.linuxbrew/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-__bvmq5c/pygdal/setup.py'"'"'; __file__='"'"'/tmp/pip-install-__bvmq5c/pygdal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vnj9juhe/install-record.txt --single-version-externally-managed --compile --install-headers /home/linuxbrew/.linuxbrew/include/python3.8/pygdal Check the logs for full command output. ```

Maybe, I'll have to install GDAL 3.1.2 for fixing this?
__main__.GDALConfigError: Version mismatch 2.2.3 != 3.1.2

On the other hand, it states that I've installed the latest version:

andylu@andylu-ThinkPad-Edge-E130:~/Desktop/Python/Scripts$ sudo apt-get install -y gdal-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gdal-bin is already the newest version (2.2.3+dfsg-2).

Otherwise, I don't know what else to do or what you could mean by saying

You need to have the GDAL development headers & library that match the version you install from pip

@rouault
Copy link
Member

rouault commented Aug 3, 2020

Pin the version of the bindings that match your native lib: pip install gdal==2.2.3

@AndreasLuckert
Copy link
Author

Thanks, this worked indeed:

andylu@andylu-ThinkPad-Edge-E130:~$ pip install gdal==2.2.3
Collecting gdal==2.2.3
  Downloading GDAL-2.2.3.tar.gz (475 kB)
     |████████████████████████████████| 475 kB 1.8 MB/s 
Building wheels for collected packages: gdal
  Building wheel for gdal (setup.py) ... done
  Created wheel for gdal: filename=GDAL-2.2.3-cp38-cp38-linux_x86_64.whl size=2227987 sha256=0c21e35be8365cb856aac0b2e1d9d9494f1019cc425bf06e9d151bdd291c80a1
  Stored in directory: /home/andylu/.cache/pip/wheels/1c/d8/22/8ce120929fb3c2556f2f4da51643caff3346beff30233b9248
Successfully built gdal
Installing collected packages: gdal
Successfully installed gdal-2.2.3

@jratike80
Copy link
Collaborator

Testing if collapsible markdown works in comments. And it seems to work. Would you mind to have a try with your error message? I used https://gist.githubusercontent.com/joyrexus/16041f2426450e73f5df9391f7f7ae5f/raw/f774f242feff6bae4a5be7d6c71aa5df2e3fcb0e/README.md as an example.

CLICK ME FOR EXPANDING THE LOG

long long long log

@AndreasLuckert
Copy link
Author

Thanks for this tip, I've implemented it with the very long error message above.

@tom-flamelit
Copy link

I know this is an older thread. I'm curious why pip doesn't pick up the native version?

@sgillies
Copy link
Contributor

sgillies commented May 1, 2022 via email

@tom-flamelit
Copy link

Perhaps a more informative error would help resolve -- as it stands the current error presented here is difficult to find a resolution for. Would something like "Could not find GDAL version aligned to requested version installed via pip. Please see ____" or similar be possible in the traceback? If you think that is reasonable I am happy to spend some time on it.

@khaoulabaeza
Copy link

https://www.youtube.com/watch?v=8iCWUp7WaTk
this video can be helpful

@2898manu
Copy link

how can i install gdal through pycharm in my project directory please give any suggestion

@jcr0269
Copy link

jcr0269 commented Jun 29, 2023

I am using anaconda to do this. You first access you envirment by typing in "conda activate env-name". Then visit the site https://www.lfd.uci.edu/~gohlke/pythonlibs/, the index by date section will have the names of the libraries, find the one you need and click on it. Next it will pull up the versions available, they will be organized by python version, windows version and program version. Make sure you choose the correct one or it will throw and error. Once downloaded type in cd Downloads in anaconda and they type "python -m pip install {name of downloaded file}", finally go into your pycharm and confirm its good to go by typing "pip install {package}".

@alek-p
Copy link

alek-p commented Nov 30, 2023

try pip install pygdal=="$(gdal-config --version).*" and then pip install pygdal=="$(gdal-config --version).*" --use-pep517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants