=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for py35-gdal-2.2.4nb1
rm -f setup_vars.ini
echo 'GNM_ENABLED=yes' >> setup_vars.ini
python setup.py build
WARNING: "CXX=/bin/sh /data/scratch/geography/py-gdal/work/gdal-2.2.4/libtool --mode=compile --tag=CXX clang++ -std=gnu++11" was defined in the environment and contains more than one word. Unsetting it since that is incompatible of distutils
WARNING: "CC=/bin/sh /data/scratch/geography/py-gdal/work/gdal-2.2.4/libtool --mode=compile --tag=CC clang" was defined in the environment and contains more than one word. Unsetting it since that is incompatible of distutils
running build
running build_py
creating build
creating build/lib.netbsd-8.99.19-amd64-3.5
copying gdal.py -> build/lib.netbsd-8.99.19-amd64-3.5
copying ogr.py -> build/lib.netbsd-8.99.19-amd64-3.5
copying osr.py -> build/lib.netbsd-8.99.19-amd64-3.5
copying gdalconst.py -> build/lib.netbsd-8.99.19-amd64-3.5
copying gnm.py -> build/lib.netbsd-8.99.19-amd64-3.5
copying gdalnumeric.py -> build/lib.netbsd-8.99.19-amd64-3.5
creating build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/gdalconst.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/gdal_array.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/gdalnumeric.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/osr.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/gnm.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/ogr.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/__init__.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
copying osgeo/gdal.py -> build/lib.netbsd-8.99.19-amd64-3.5/osgeo
Fixing build/lib.netbsd-8.99.19-amd64-3.5/gdal.py build/lib.netbsd-8.99.19-amd64-3.5/ogr.py build/lib.netbsd-8.99.19-amd64-3.5/osr.py build/lib.netbsd-8.99.19-amd64-3.5/gdalconst.py build/lib.netbsd-8.99.19-amd64-3.5/gnm.py build/lib.netbsd-8.99.19-amd64-3.5/gdalnumeric.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdalconst.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdal_array.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdalnumeric.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/osr.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gnm.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/ogr.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/__init__.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdal.py
Skipping optional fixer: ws_comma
Fixing build/lib.netbsd-8.99.19-amd64-3.5/gdal.py build/lib.netbsd-8.99.19-amd64-3.5/ogr.py build/lib.netbsd-8.99.19-amd64-3.5/osr.py build/lib.netbsd-8.99.19-amd64-3.5/gdalconst.py build/lib.netbsd-8.99.19-amd64-3.5/gnm.py build/lib.netbsd-8.99.19-amd64-3.5/gdalnumeric.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdalconst.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdal_array.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdalnumeric.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/osr.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gnm.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/ogr.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/__init__.py build/lib.netbsd-8.99.19-amd64-3.5/osgeo/gdal.py
Skipping optional fixer: ws_comma
running build_ext
building 'osgeo._gdal' extension
creating build/temp.netbsd-8.99.19-amd64-3.5
creating build/temp.netbsd-8.99.19-amd64-3.5/extensions
clang -pthread -DNDEBUG -O2 -I/usr/include -I/usr/pkg/include -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/pkg/include/python3.5 -I/usr/pkg/lib/python3.5/site-packages/numpy/core/include -I/usr/pkg/include -c extensions/gdal_wrap.cpp -o build/temp.netbsd-8.99.19-amd64-3.5/extensions/gdal_wrap.o
extensions/gdal_wrap.cpp:2512:65: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
                                                                ^
extensions/gdal_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/gdal_wrap.cpp:2587:51: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
                                                  ^
extensions/gdal_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/gdal_wrap.cpp:3278:6: warning: no previous prototype for function 'NeverCallMePlease' [-Wmissing-prototypes]
void NeverCallMePlease() {
     ^
extensions/gdal_wrap.cpp:3359:14: warning: no previous prototype for function 'wrapper_VSIFReadL' [-Wmissing-prototypes]
unsigned int wrapper_VSIFReadL( void **buf, unsigned int nMembSize, unsigned int nMembCount, VSILFILE *fp)
             ^
extensions/gdal_wrap.cpp:3655:8: warning: no previous prototype for function 'Debug' [-Wmissing-prototypes]
  void Debug( const char *msg_class, const char *message ) {
       ^
extensions/gdal_wrap.cpp:3659:10: warning: no previous prototype for function 'SetErrorHandler' [-Wmissing-prototypes]
  CPLErr SetErrorHandler( char const * pszCallbackName = NULL )
         ^
extensions/gdal_wrap.cpp:3793:18: warning: no previous prototype for function 'PyCPLErrorHandler' [-Wmissing-prototypes]
void CPL_STDCALL PyCPLErrorHandler(CPLErr eErrClass, int err_no, const char* pszErrorMsg)
                 ^
extensions/gdal_wrap.cpp:3808:10: warning: no previous prototype for function 'PushErrorHandler' [-Wmissing-prototypes]
  CPLErr PushErrorHandler( CPLErrorHandler pfnErrorHandler = NULL, void* user_data = NULL )
         ^
extensions/gdal_wrap.cpp:3818:8: warning: no previous prototype for function 'PopErrorHandler' [-Wmissing-prototypes]
  void PopErrorHandler()
       ^
extensions/gdal_wrap.cpp:3829:8: warning: no previous prototype for function 'Error' [-Wmissing-prototypes]
  void Error( CPLErr msg_class = CE_Failure, int err_code = 0, const char* msg = "error" ) {
       ^
extensions/gdal_wrap.cpp:3893:22: warning: no previous prototype for function 'EscapeString' [-Wmissing-prototypes]
retStringAndCPLFree* EscapeString(int len, char *bin_string , int scheme=CPLES_SQL) {
                     ^
extensions/gdal_wrap.cpp:3930:8: warning: no previous prototype for function 'wrapper_VSIReadDirEx' [-Wmissing-prototypes]
char **wrapper_VSIReadDirEx( const char * utf8_path, int nMaxFiles = 0 )
       ^
extensions/gdal_wrap.cpp:3936:13: warning: no previous prototype for function 'wrapper_CPLGetConfigOption' [-Wmissing-prototypes]
const char *wrapper_CPLGetConfigOption( const char * pszKey, const char * pszDefault = NULL )
            ^
extensions/gdal_wrap.cpp:3942:6: warning: no previous prototype for function 'wrapper_VSIFileFromMemBuffer' [-Wmissing-prototypes]
void wrapper_VSIFileFromMemBuffer( const char* utf8_path, GIntBig nBytes, const GByte *pabyData)
     ^
extensions/gdal_wrap.cpp:3953:5: warning: no previous prototype for function 'wrapper_HasThreadSupport' [-Wmissing-prototypes]
int wrapper_HasThreadSupport()
    ^
extensions/gdal_wrap.cpp:3980:5: warning: no previous prototype for function 'wrapper_VSIStatL' [-Wmissing-prototypes]
int wrapper_VSIStatL( const char * utf8_path, StatBuf *psStatBufOut, int nFlags = 0 )
    ^
extensions/gdal_wrap.cpp:3993:13: warning: no previous prototype for function 'wrapper_VSIFOpenL' [-Wmissing-prototypes]
VSILFILE   *wrapper_VSIFOpenL( const char *utf8_path, const char *pszMode )
            ^
extensions/gdal_wrap.cpp:4001:13: warning: no previous prototype for function 'wrapper_VSIFOpenExL' [-Wmissing-prototypes]
VSILFILE   *wrapper_VSIFOpenExL( const char *utf8_path, const char *pszMode, int bSetError )
            ^
extensions/gdal_wrap.cpp:4009:5: warning: no previous prototype for function 'wrapper_VSIFWriteL' [-Wmissing-prototypes]
int wrapper_VSIFWriteL( int nLen, char *pBuf, int size, int memb, VSILFILE* fp)
    ^
extensions/gdal_wrap.cpp:4087:13: warning: no previous prototype for function 'GDALDriverShadow_ShortName_get' [-Wmissing-prototypes]
char const *GDALDriverShadow_ShortName_get( GDALDriverShadow *h ) {
            ^
extensions/gdal_wrap.cpp:4090:13: warning: no previous prototype for function 'GDALDriverShadow_LongName_get' [-Wmissing-prototypes]
char const *GDALDriverShadow_LongName_get( GDALDriverShadow *h ) {
            ^
extensions/gdal_wrap.cpp:4093:13: warning: no previous prototype for function 'GDALDriverShadow_HelpTopic_get' [-Wmissing-prototypes]
char const *GDALDriverShadow_HelpTopic_get( GDALDriverShadow *h ) {
            ^
extensions/gdal_wrap.cpp:4147:8: warning: no previous prototype for function 'GDAL_GCP_GCPX_get' [-Wmissing-prototypes]
double GDAL_GCP_GCPX_get( GDAL_GCP *gcp ) {
       ^
extensions/gdal_wrap.cpp:4150:6: warning: no previous prototype for function 'GDAL_GCP_GCPX_set' [-Wmissing-prototypes]
void GDAL_GCP_GCPX_set( GDAL_GCP *gcp, double dfGCPX ) {
     ^
extensions/gdal_wrap.cpp:4153:8: warning: no previous prototype for function 'GDAL_GCP_GCPY_get' [-Wmissing-prototypes]
double GDAL_GCP_GCPY_get( GDAL_GCP *gcp ) {
       ^
extensions/gdal_wrap.cpp:4156:6: warning: no previous prototype for function 'GDAL_GCP_GCPY_set' [-Wmissing-prototypes]
void GDAL_GCP_GCPY_set( GDAL_GCP *gcp, double dfGCPY ) {
     ^
extensions/gdal_wrap.cpp:4159:8: warning: no previous prototype for function 'GDAL_GCP_GCPZ_get' [-Wmissing-prototypes]
double GDAL_GCP_GCPZ_get( GDAL_GCP *gcp ) {
       ^
extensions/gdal_wrap.cpp:4162:6: warning: no previous prototype for function 'GDAL_GCP_GCPZ_set' [-Wmissing-prototypes]
void GDAL_GCP_GCPZ_set( GDAL_GCP *gcp, double dfGCPZ ) {
     ^
extensions/gdal_wrap.cpp:4165:8: warning: no previous prototype for function 'GDAL_GCP_GCPPixel_get' [-Wmissing-prototypes]
double GDAL_GCP_GCPPixel_get( GDAL_GCP *gcp ) {
       ^
extensions/gdal_wrap.cpp:4168:6: warning: no previous prototype for function 'GDAL_GCP_GCPPixel_set' [-Wmissing-prototypes]
void GDAL_GCP_GCPPixel_set( GDAL_GCP *gcp, double dfGCPPixel ) {
     ^
extensions/gdal_wrap.cpp:4171:8: warning: no previous prototype for function 'GDAL_GCP_GCPLine_get' [-Wmissing-prototypes]
double GDAL_GCP_GCPLine_get( GDAL_GCP *gcp ) {
       ^
extensions/gdal_wrap.cpp:4174:6: warning: no previous prototype for function 'GDAL_GCP_GCPLine_set' [-Wmissing-prototypes]
void GDAL_GCP_GCPLine_set( GDAL_GCP *gcp, double dfGCPLine ) {
     ^
extensions/gdal_wrap.cpp:4177:14: warning: no previous prototype for function 'GDAL_GCP_Info_get' [-Wmissing-prototypes]
const char * GDAL_GCP_Info_get( GDAL_GCP *gcp ) {
             ^
extensions/gdal_wrap.cpp:4180:6: warning: no previous prototype for function 'GDAL_GCP_Info_set' [-Wmissing-prototypes]
void GDAL_GCP_Info_set( GDAL_GCP *gcp, const char * pszInfo ) {
     ^
extensions/gdal_wrap.cpp:4185:14: warning: no previous prototype for function 'GDAL_GCP_Id_get' [-Wmissing-prototypes]
const char * GDAL_GCP_Id_get( GDAL_GCP *gcp ) {
             ^
extensions/gdal_wrap.cpp:4188:6: warning: no previous prototype for function 'GDAL_GCP_Id_set' [-Wmissing-prototypes]
void GDAL_GCP_Id_set( GDAL_GCP *gcp, const char * pszId ) {
     ^
extensions/gdal_wrap.cpp:4783:92: warning: unused parameter 'include_layer' [-Wunused-parameter]
SWIGINTERN OGRFeatureShadow *GDALDatasetShadow_GetNextFeature(GDALDatasetShadow *self,bool include_layer=true,bool include_pct=false,OGRLayerShadow **ppoBelongingLayer=NULL,double *pdfProgressPct=NULL,GDALProgressFunc callback=NULL,void *callback_data=NULL){
                                                                                           ^
extensions/gdal_wrap.cpp:4783:116: warning: unused parameter 'include_pct' [-Wunused-parameter]
SWIGINTERN OGRFeatureShadow *GDALDatasetShadow_GetNextFeature(GDALDatasetShadow *self,bool include_layer=true,bool include_pct=false,OGRLayerShadow **ppoBelongingLayer=NULL,double *pdfProgressPct=NULL,GDALProgressFunc callback=NULL,void *callback_data=NULL){
                                                                                                                   ^
extensions/gdal_wrap.cpp:4908:5: warning: no previous prototype for function 'GDALDatasetShadow_RasterXSize_get' [-Wmissing-prototypes]
int GDALDatasetShadow_RasterXSize_get( GDALDatasetShadow *h ) {
    ^
extensions/gdal_wrap.cpp:4911:5: warning: no previous prototype for function 'GDALDatasetShadow_RasterYSize_get' [-Wmissing-prototypes]
int GDALDatasetShadow_RasterYSize_get( GDALDatasetShadow *h ) {
    ^
extensions/gdal_wrap.cpp:4914:5: warning: no previous prototype for function 'GDALDatasetShadow_RasterCount_get' [-Wmissing-prototypes]
int GDALDatasetShadow_RasterCount_get( GDALDatasetShadow *h ) {
    ^
extensions/gdal_wrap.cpp:5349:14: warning: no previous prototype for function 'GDALRasterBandShadow_DataType_get' [-Wmissing-prototypes]
GDALDataType GDALRasterBandShadow_DataType_get( GDALRasterBandShadow *h ) {
             ^
extensions/gdal_wrap.cpp:5352:5: warning: no previous prototype for function 'GDALRasterBandShadow_XSize_get' [-Wmissing-prototypes]
int GDALRasterBandShadow_XSize_get( GDALRasterBandShadow *h ) {
    ^
extensions/gdal_wrap.cpp:5355:5: warning: no previous prototype for function 'GDALRasterBandShadow_YSize_get' [-Wmissing-prototypes]
int GDALRasterBandShadow_YSize_get( GDALRasterBandShadow *h ) {
    ^
extensions/gdal_wrap.cpp:5471:6: warning: no previous prototype for function 'ComputeMedianCutPCT' [-Wmissing-prototypes]
int  ComputeMedianCutPCT ( GDALRasterBandShadow *red,
     ^
extensions/gdal_wrap.cpp:5494:6: warning: no previous prototype for function 'DitherRGB2PCT' [-Wmissing-prototypes]
int  DitherRGB2PCT ( GDALRasterBandShadow *red,
     ^
extensions/gdal_wrap.cpp:5516:9: warning: no previous prototype for function 'ReprojectImage' [-Wmissing-prototypes]
CPLErr  ReprojectImage ( GDALDatasetShadow *src_ds,
        ^
extensions/gdal_wrap.cpp:5554:6: warning: no previous prototype for function 'ComputeProximity' [-Wmissing-prototypes]
int  ComputeProximity( GDALRasterBandShadow *srcBand,
     ^
extensions/gdal_wrap.cpp:5567:6: warning: no previous prototype for function 'RasterizeLayer' [-Wmissing-prototypes]
int  RasterizeLayer( GDALDatasetShadow *dataset,
     ^
extensions/gdal_wrap.cpp:5608:6: warning: no previous prototype for function 'Polygonize' [-Wmissing-prototypes]
int  Polygonize( GDALRasterBandShadow *srcBand,
     ^
extensions/gdal_wrap.cpp:5623:6: warning: no previous prototype for function 'FPolygonize' [-Wmissing-prototypes]
int  FPolygonize( GDALRasterBandShadow *srcBand,
     ^
extensions/gdal_wrap.cpp:5638:6: warning: no previous prototype for function 'FillNodata' [-Wmissing-prototypes]
int  FillNodata( GDALRasterBandShadow *targetBand,
     ^
extensions/gdal_wrap.cpp:5654:6: warning: no previous prototype for function 'SieveFilter' [-Wmissing-prototypes]
int  SieveFilter( GDALRasterBandShadow *srcBand,
     ^
extensions/gdal_wrap.cpp:5670:6: warning: no previous prototype for function 'RegenerateOverviews' [-Wmissing-prototypes]
int  RegenerateOverviews( GDALRasterBandShadow *srcBand,
     ^
extensions/gdal_wrap.cpp:5684:6: warning: no previous prototype for function 'RegenerateOverview' [-Wmissing-prototypes]
int  RegenerateOverview( GDALRasterBandShadow *srcBand,
     ^
extensions/gdal_wrap.cpp:5697:5: warning: no previous prototype for function 'ContourGenerate' [-Wmissing-prototypes]
int ContourGenerate( GDALRasterBandShadow *srcBand,
    ^
extensions/gdal_wrap.cpp:5731:20: warning: no previous prototype for function 'AutoCreateWarpedVRT' [-Wmissing-prototypes]
GDALDatasetShadow *AutoCreateWarpedVRT( GDALDatasetShadow *src_ds,
                   ^
extensions/gdal_wrap.cpp:5749:21: warning: no previous prototype for function 'CreatePansharpenedVRT' [-Wmissing-prototypes]
GDALDatasetShadow*  CreatePansharpenedVRT( const char* pszXML,
                    ^
extensions/gdal_wrap.cpp:5881:20: warning: no previous prototype for function 'ApplyVerticalShiftGrid' [-Wmissing-prototypes]
GDALDatasetShadow* ApplyVerticalShiftGrid( GDALDatasetShadow *src_ds,
                   ^
extensions/gdal_wrap.cpp:5897:9: warning: no previous prototype for function 'wrapper_GDALGetCacheMax' [-Wmissing-prototypes]
GIntBig wrapper_GDALGetCacheMax()
        ^
extensions/gdal_wrap.cpp:5903:9: warning: no previous prototype for function 'wrapper_GDALGetCacheUsed' [-Wmissing-prototypes]
GIntBig wrapper_GDALGetCacheUsed()
        ^
extensions/gdal_wrap.cpp:5909:6: warning: no previous prototype for function 'wrapper_GDALSetCacheMax' [-Wmissing-prototypes]
void wrapper_GDALSetCacheMax(GIntBig nBytes)
     ^
extensions/gdal_wrap.cpp:6007:22: warning: no previous prototype for function 'GetJPEG2000StructureAsString' [-Wmissing-prototypes]
retStringAndCPLFree *GetJPEG2000StructureAsString( const char* pszFilename, char** options = NULL )
                     ^
extensions/gdal_wrap.cpp:6018:5: warning: no previous prototype for function 'GetDriverCount' [-Wmissing-prototypes]
int GetDriverCount() {
    ^
extensions/gdal_wrap.cpp:6029:19: warning: no previous prototype for function 'GetDriver' [-Wmissing-prototypes]
GDALDriverShadow* GetDriver( int i ) {
                  ^
extensions/gdal_wrap.cpp:6034:20: warning: no previous prototype for function 'Open' [-Wmissing-prototypes]
GDALDatasetShadow* Open( char const* utf8_path, GDALAccess eAccess = GA_ReadOnly ) {
                   ^
extensions/gdal_wrap.cpp:6047:20: warning: no previous prototype for function 'OpenEx' [-Wmissing-prototypes]
GDALDatasetShadow* OpenEx( char const* utf8_path, unsigned int nOpenFlags = 0,
                   ^
extensions/gdal_wrap.cpp:6067:20: warning: no previous prototype for function 'OpenShared' [-Wmissing-prototypes]
GDALDatasetShadow* OpenShared( char const* utf8_path, GDALAccess eAccess = GA_ReadOnly ) {
                   ^
extensions/gdal_wrap.cpp:6080:19: warning: no previous prototype for function 'IdentifyDriver' [-Wmissing-prototypes]
GDALDriverShadow *IdentifyDriver( const char *utf8_path,
                  ^
extensions/gdal_wrap.cpp:6087:19: warning: no previous prototype for function 'IdentifyDriverEx' [-Wmissing-prototypes]
GDALDriverShadow *IdentifyDriverEx( const char* utf8_path,
                  ^
extensions/gdal_wrap.cpp:6099:10: warning: no previous prototype for function 'GeneralCmdLineProcessor' [-Wmissing-prototypes]
  char **GeneralCmdLineProcessor( char **papszArgv, int nOptions = 0 ) {
         ^
extensions/gdal_wrap.cpp:6130:20: warning: no previous prototype for function 'wrapper_GDALTranslate' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALTranslate( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6160:5: warning: no previous prototype for function 'wrapper_GDALWarpDestDS' [-Wmissing-prototypes]
int wrapper_GDALWarpDestDS( GDALDatasetShadow* dstDS,
    ^
extensions/gdal_wrap.cpp:6184:20: warning: no previous prototype for function 'wrapper_GDALWarpDestName' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALWarpDestName( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6214:5: warning: no previous prototype for function 'wrapper_GDALVectorTranslateDestDS' [-Wmissing-prototypes]
int wrapper_GDALVectorTranslateDestDS( GDALDatasetShadow* dstDS,
    ^
extensions/gdal_wrap.cpp:6238:20: warning: no previous prototype for function 'wrapper_GDALVectorTranslateDestName' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALVectorTranslateDestName( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6268:20: warning: no previous prototype for function 'wrapper_GDALDEMProcessing' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALDEMProcessing( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6300:5: warning: no previous prototype for function 'wrapper_GDALNearblackDestDS' [-Wmissing-prototypes]
int wrapper_GDALNearblackDestDS( GDALDatasetShadow* dstDS,
    ^
extensions/gdal_wrap.cpp:6324:20: warning: no previous prototype for function 'wrapper_GDALNearblackDestName' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALNearblackDestName( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6354:20: warning: no previous prototype for function 'wrapper_GDALGrid' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALGrid( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6384:5: warning: no previous prototype for function 'wrapper_GDALRasterizeDestDS' [-Wmissing-prototypes]
int wrapper_GDALRasterizeDestDS( GDALDatasetShadow* dstDS,
    ^
extensions/gdal_wrap.cpp:6408:20: warning: no previous prototype for function 'wrapper_GDALRasterizeDestName' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALRasterizeDestName( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6438:20: warning: no previous prototype for function 'wrapper_GDALBuildVRT_objects' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALBuildVRT_objects( const char* dest,
                   ^
extensions/gdal_wrap.cpp:6462:20: warning: no previous prototype for function 'wrapper_GDALBuildVRT_names' [-Wmissing-prototypes]
GDALDatasetShadow* wrapper_GDALBuildVRT_names( const char* dest,
                   ^
extensions/gdal_wrap.cpp:8408:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/gdal_wrap.cpp:8443:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/gdal_wrap.cpp:8954:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/gdal_wrap.cpp:9920:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/gdal_wrap.cpp:9906:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALMajorObjectShadow, 0);
        ^
extensions/gdal_wrap.cpp:9934:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/gdal_wrap.cpp:9931:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALMajorObjectShadow, 0);
        ^
extensions/gdal_wrap.cpp:9940:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/gdal_wrap.cpp:9934:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/gdal_wrap.cpp:19958:9: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
        sprintf(szTmp, CPL_FRMT_GUIB, integerarray[i]);
        ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/gdal_wrap.cpp:26138:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/gdal_wrap.cpp:26134:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
        ^
extensions/gdal_wrap.cpp:26142:15: warning: declaration shadows a local variable [-Wshadow]
        void *vptr = 0;
              ^
extensions/gdal_wrap.cpp:26133:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/gdal_wrap.cpp:26143:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_double, 0);
            ^
extensions/gdal_wrap.cpp:26134:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
        ^
extensions/gdal_wrap.cpp:26158:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/gdal_wrap.cpp:26154:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
        ^
extensions/gdal_wrap.cpp:26163:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_double(argv[2], NULL);
              ^
extensions/gdal_wrap.cpp:26154:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
        ^
extensions/gdal_wrap.cpp:26168:17: warning: declaration shadows a local variable [-Wshadow]
            int res = SWIG_AsVal_double(argv[3], NULL);
                ^
extensions/gdal_wrap.cpp:26154:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
        ^
extensions/gdal_wrap.cpp:26176:19: warning: declaration shadows a local variable [-Wshadow]
              int res = SWIG_AsVal_double(argv[4], NULL);
                  ^
extensions/gdal_wrap.cpp:26154:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
        ^
extensions/gdal_wrap.cpp:26992:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/gdal_wrap.cpp:27031:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/gdal_wrap.cpp:33147:1: warning: no previous prototype for function 'PyInit__gdal' [-Wmissing-prototypes]
SWIG_init(void) {
^
extensions/gdal_wrap.cpp:3076:24: note: expanded from macro 'SWIG_init'
#  define SWIG_init    PyInit__gdal
                       ^
101 warnings generated.
clang++ -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION build/temp.netbsd-8.99.19-amd64-3.5/extensions/gdal_wrap.o -L../../.libs -L../../ -L/usr/pkg/lib -L/usr/pkg/lib -lpython3.5 -lgdal -o build/lib.netbsd-8.99.19-amd64-3.5/osgeo/_gdal.so
building 'osgeo._gdalconst' extension
clang -pthread -DNDEBUG -O2 -I/usr/include -I/usr/pkg/include -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/pkg/include/python3.5 -I/usr/pkg/lib/python3.5/site-packages/numpy/core/include -I/usr/pkg/include -c extensions/gdalconst_wrap.c -o build/temp.netbsd-8.99.19-amd64-3.5/extensions/gdalconst_wrap.o
extensions/gdalconst_wrap.c:2488:65: warning: declaration shadows a variable in the global scope [-Wshadow]
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
                                                                ^
extensions/gdalconst_wrap.c:2229:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/gdalconst_wrap.c:2563:51: warning: declaration shadows a variable in the global scope [-Wshadow]
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
                                                  ^
extensions/gdalconst_wrap.c:2229:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/gdalconst_wrap.c:5423:1: warning: no previous prototype for function 'PyInit__gdalconst' [-Wmissing-prototypes]
SWIG_init(void) {
^
extensions/gdalconst_wrap.c:3005:24: note: expanded from macro 'SWIG_init'
#  define SWIG_init    PyInit__gdalconst
                       ^
3 warnings generated.
clang -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION build/temp.netbsd-8.99.19-amd64-3.5/extensions/gdalconst_wrap.o -L../../.libs -L../../ -L/usr/pkg/lib -L/usr/pkg/lib -lpython3.5 -lgdal -o build/lib.netbsd-8.99.19-amd64-3.5/osgeo/_gdalconst.so
building 'osgeo._osr' extension
clang -pthread -DNDEBUG -O2 -I/usr/include -I/usr/pkg/include -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/pkg/include/python3.5 -I/usr/pkg/lib/python3.5/site-packages/numpy/core/include -I/usr/pkg/include -c extensions/osr_wrap.cpp -o build/temp.netbsd-8.99.19-amd64-3.5/extensions/osr_wrap.o
extensions/osr_wrap.cpp:2512:65: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
                                                                ^
extensions/osr_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/osr_wrap.cpp:2587:51: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
                                                  ^
extensions/osr_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/osr_wrap.cpp:3266:6: warning: no previous prototype for function 'NeverCallMePlease' [-Wmissing-prototypes]
void NeverCallMePlease() {
     ^
extensions/osr_wrap.cpp:3354:10: warning: explicitly assigning value of variable of type 'PyObject *' (aka '_object *') to itself [-Wself-assign]
    self = self;
    ~~~~ ^ ~~~~
extensions/osr_wrap.cpp:3355:10: warning: explicitly assigning value of variable of type 'PyObject *' (aka '_object *') to itself [-Wself-assign]
    args = args;
    ~~~~ ^ ~~~~
extensions/osr_wrap.cpp:3410:8: warning: no previous prototype for function 'GetWellKnownGeogCSAsWKT' [-Wmissing-prototypes]
OGRErr GetWellKnownGeogCSAsWKT( const char *name, char **argout ) {
       ^
extensions/osr_wrap.cpp:3556:8: warning: no previous prototype for function 'GetUserInputAsWKT' [-Wmissing-prototypes]
OGRErr GetUserInputAsWKT( const char *name, char **argout ) {
       ^
extensions/osr_wrap.cpp:4261:38: warning: no previous prototype for function 'CreateCoordinateTransformation' [-Wmissing-prototypes]
  OSRCoordinateTransformationShadow *CreateCoordinateTransformation( OSRSpatialReferenceShadow *src, OSRSpatialReferenceShadow *dst ) {
                                     ^
extensions/osr_wrap.cpp:15626:13: warning: declaration shadows a local variable [-Wshadow]
      void *vptr = 0;
            ^
extensions/osr_wrap.cpp:15622:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/osr_wrap.cpp:15627:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0);
          ^
extensions/osr_wrap.cpp:15623:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0);
        ^
extensions/osr_wrap.cpp:15641:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_double(argv[1], NULL);
            ^
extensions/osr_wrap.cpp:15637:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0);
        ^
extensions/osr_wrap.cpp:15646:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_double(argv[2], NULL);
              ^
extensions/osr_wrap.cpp:15637:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0);
        ^
extensions/osr_wrap.cpp:15654:17: warning: declaration shadows a local variable [-Wshadow]
            int res = SWIG_AsVal_double(argv[3], NULL);
                ^
extensions/osr_wrap.cpp:15637:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0);
        ^
extensions/osr_wrap.cpp:16744:1: warning: no previous prototype for function 'PyInit__osr' [-Wmissing-prototypes]
SWIG_init(void) {
^
extensions/osr_wrap.cpp:3039:24: note: expanded from macro 'SWIG_init'
#  define SWIG_init    PyInit__osr
                       ^
extensions/osr_wrap.cpp:3309:14: warning: unused function 'GDALPythonObjectToCStr' [-Wunused-function]
static char* GDALPythonObjectToCStr(PyObject* pyObject, int* pbToFree)
             ^
extensions/osr_wrap.cpp:3339:13: warning: unused function 'GDALPythonFreeCStr' [-Wunused-function]
static void GDALPythonFreeCStr(void* ptr, int bToFree)
            ^
16 warnings generated.
clang++ -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION build/temp.netbsd-8.99.19-amd64-3.5/extensions/osr_wrap.o -L../../.libs -L../../ -L/usr/pkg/lib -L/usr/pkg/lib -lpython3.5 -lgdal -o build/lib.netbsd-8.99.19-amd64-3.5/osgeo/_osr.so
building 'osgeo._ogr' extension
clang -pthread -DNDEBUG -O2 -I/usr/include -I/usr/pkg/include -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/pkg/include/python3.5 -I/usr/pkg/lib/python3.5/site-packages/numpy/core/include -I/usr/pkg/include -c extensions/ogr_wrap.cpp -o build/temp.netbsd-8.99.19-amd64-3.5/extensions/ogr_wrap.o
extensions/ogr_wrap.cpp:2512:65: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
                                                                ^
extensions/ogr_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/ogr_wrap.cpp:2587:51: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
                                                  ^
extensions/ogr_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/ogr_wrap.cpp:3306:6: warning: no previous prototype for function 'NeverCallMePlease' [-Wmissing-prototypes]
void NeverCallMePlease() {
     ^
extensions/ogr_wrap.cpp:4759:80: warning: unused parameter 'self' [-Wunused-parameter]
SWIGINTERN char const *OGRFieldDefnShadow_GetFieldTypeName(OGRFieldDefnShadow *self,OGRFieldType type){
                                                                               ^
extensions/ogr_wrap.cpp:4830:22: warning: no previous prototype for function 'CreateGeometryFromWkb' [-Wmissing-prototypes]
  OGRGeometryShadow* CreateGeometryFromWkb( int len, char *bin_string,
                     ^
extensions/ogr_wrap.cpp:4846:22: warning: no previous prototype for function 'CreateGeometryFromWkt' [-Wmissing-prototypes]
  OGRGeometryShadow* CreateGeometryFromWkt( char **val,
                     ^
extensions/ogr_wrap.cpp:4861:22: warning: no previous prototype for function 'CreateGeometryFromGML' [-Wmissing-prototypes]
  OGRGeometryShadow *CreateGeometryFromGML( const char * input_string ) {
                     ^
extensions/ogr_wrap.cpp:4868:22: warning: no previous prototype for function 'CreateGeometryFromJson' [-Wmissing-prototypes]
  OGRGeometryShadow *CreateGeometryFromJson( const char * input_string ) {
                     ^
extensions/ogr_wrap.cpp:4875:22: warning: no previous prototype for function 'BuildPolygonFromEdges' [-Wmissing-prototypes]
  OGRGeometryShadow* BuildPolygonFromEdges( OGRGeometryShadow*  hLineCollection,
                     ^
extensions/ogr_wrap.cpp:4896:22: warning: no previous prototype for function 'ApproximateArcAngles' [-Wmissing-prototypes]
  OGRGeometryShadow* ApproximateArcAngles(
                     ^
extensions/ogr_wrap.cpp:4909:20: warning: no previous prototype for function 'ForceToPolygon' [-Wmissing-prototypes]
OGRGeometryShadow* ForceToPolygon( OGRGeometryShadow *geom_in ) {
                   ^
extensions/ogr_wrap.cpp:4916:20: warning: no previous prototype for function 'ForceToLineString' [-Wmissing-prototypes]
OGRGeometryShadow* ForceToLineString( OGRGeometryShadow *geom_in ) {
                   ^
extensions/ogr_wrap.cpp:4923:20: warning: no previous prototype for function 'ForceToMultiPolygon' [-Wmissing-prototypes]
OGRGeometryShadow* ForceToMultiPolygon( OGRGeometryShadow *geom_in ) {
                   ^
extensions/ogr_wrap.cpp:4930:20: warning: no previous prototype for function 'ForceToMultiPoint' [-Wmissing-prototypes]
OGRGeometryShadow* ForceToMultiPoint( OGRGeometryShadow *geom_in ) {
                   ^
extensions/ogr_wrap.cpp:4937:20: warning: no previous prototype for function 'ForceToMultiLineString' [-Wmissing-prototypes]
OGRGeometryShadow* ForceToMultiLineString( OGRGeometryShadow *geom_in ) {
                   ^
extensions/ogr_wrap.cpp:4944:20: warning: no previous prototype for function 'ForceTo' [-Wmissing-prototypes]
OGRGeometryShadow* ForceTo( OGRGeometryShadow *geom_in, OGRwkbGeometryType eTargetType, char** options = NULL ) {
                   ^
extensions/ogr_wrap.cpp:5284:13: warning: no previous prototype for function 'OGRDriverShadow_get_name' [-Wmissing-prototypes]
char const *OGRDriverShadow_get_name( OGRDriverShadow *h ) {
            ^
extensions/ogr_wrap.cpp:5288:13: warning: no previous prototype for function 'OGRDataSourceShadow_get_name' [-Wmissing-prototypes]
char const *OGRDataSourceShadow_get_name( OGRDataSourceShadow *h ) {
            ^
extensions/ogr_wrap.cpp:5292:13: warning: no previous prototype for function 'OGRDriverShadow_name_get' [-Wmissing-prototypes]
char const *OGRDriverShadow_name_get( OGRDriverShadow *h ) {
            ^
extensions/ogr_wrap.cpp:5296:13: warning: no previous prototype for function 'OGRDataSourceShadow_name_get' [-Wmissing-prototypes]
char const *OGRDataSourceShadow_name_get( OGRDataSourceShadow *h ) {
            ^
extensions/ogr_wrap.cpp:5301:20: warning: no previous prototype for function 'GT_SetModifier' [-Wmissing-prototypes]
OGRwkbGeometryType GT_SetModifier( OGRwkbGeometryType eType, int bSetZ, int bSetM = FALSE)
                   ^
extensions/ogr_wrap.cpp:5307:24: warning: no previous prototype for function 'GetOpenDS' [-Wmissing-prototypes]
  OGRDataSourceShadow* GetOpenDS(int ds_number) {
                       ^
extensions/ogr_wrap.cpp:5313:24: warning: no previous prototype for function 'Open' [-Wmissing-prototypes]
  OGRDataSourceShadow* Open( const char *utf8_path, int update =0 ) {
                       ^
extensions/ogr_wrap.cpp:5329:24: warning: no previous prototype for function 'OpenShared' [-Wmissing-prototypes]
  OGRDataSourceShadow* OpenShared( const char *utf8_path, int update =0 ) {
                       ^
extensions/ogr_wrap.cpp:5353:10: warning: no previous prototype for function 'GeneralCmdLineProcessor' [-Wmissing-prototypes]
  char **GeneralCmdLineProcessor( char **papszArgv, int nOptions = 0 ) {
         ^
extensions/ogr_wrap.cpp:7565:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/ogr_wrap.cpp:7551:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALMajorObjectShadow, 0);
        ^
extensions/ogr_wrap.cpp:7579:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:7576:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALMajorObjectShadow, 0);
        ^
extensions/ogr_wrap.cpp:7585:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/ogr_wrap.cpp:7579:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:10303:13: warning: declaration shadows a local variable [-Wshadow]
      void *vptr = 0;
            ^
extensions/ogr_wrap.cpp:10299:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/ogr_wrap.cpp:10304:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OGRGeometryShadow, 0);
          ^
extensions/ogr_wrap.cpp:10300:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10318:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:10314:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10322:15: warning: declaration shadows a local variable [-Wshadow]
        void *vptr = 0;
              ^
extensions/ogr_wrap.cpp:10313:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/ogr_wrap.cpp:10323:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OGRGeometryShadow, 0);
            ^
extensions/ogr_wrap.cpp:10314:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10444:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_double(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:10440:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10449:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_double(argv[2], NULL);
              ^
extensions/ogr_wrap.cpp:10440:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10454:17: warning: declaration shadows a local variable [-Wshadow]
            int res = SWIG_AsVal_double(argv[3], NULL);
                ^
extensions/ogr_wrap.cpp:10440:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10459:19: warning: declaration shadows a local variable [-Wshadow]
              int res = SWIG_AsVal_double(argv[4], NULL);
                  ^
extensions/ogr_wrap.cpp:10440:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10477:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:10473:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10482:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_double(argv[2], NULL);
              ^
extensions/ogr_wrap.cpp:10473:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10487:17: warning: declaration shadows a local variable [-Wshadow]
            int res = SWIG_AsVal_double(argv[3], NULL);
                ^
extensions/ogr_wrap.cpp:10473:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10492:19: warning: declaration shadows a local variable [-Wshadow]
              int res = SWIG_AsVal_double(argv[4], NULL);
                  ^
extensions/ogr_wrap.cpp:10473:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:10497:21: warning: declaration shadows a local variable [-Wshadow]
                int res = SWIG_AsVal_double(argv[5], NULL);
                    ^
extensions/ogr_wrap.cpp:10473:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRLayerShadow, 0);
        ^
extensions/ogr_wrap.cpp:11332:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/ogr_wrap.cpp:12292:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/ogr_wrap.cpp:14416:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:14412:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:14420:15: warning: declaration shadows a local variable [-Wshadow]
        void *vptr = 0;
              ^
extensions/ogr_wrap.cpp:14411:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/ogr_wrap.cpp:14421:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OGRGeometryShadow, 0);
            ^
extensions/ogr_wrap.cpp:14412:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:14435:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:14432:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:14438:15: warning: declaration shadows a local variable [-Wshadow]
        void *vptr = 0;
              ^
extensions/ogr_wrap.cpp:14431:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/ogr_wrap.cpp:14439:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OGRGeometryShadow, 0);
            ^
extensions/ogr_wrap.cpp:14435:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:14631:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:14627:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:14635:15: warning: declaration shadows a local variable [-Wshadow]
        void *vptr = 0;
              ^
extensions/ogr_wrap.cpp:14626:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/ogr_wrap.cpp:14636:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OGRGeometryShadow, 0);
            ^
extensions/ogr_wrap.cpp:14627:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:14650:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:14647:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:14653:15: warning: declaration shadows a local variable [-Wshadow]
        void *vptr = 0;
              ^
extensions/ogr_wrap.cpp:14646:11: note: previous declaration is here
    void *vptr = 0;
          ^
extensions/ogr_wrap.cpp:14654:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OGRGeometryShadow, 0);
            ^
extensions/ogr_wrap.cpp:14650:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:14800:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:14796:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:14814:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:14811:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15093:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:15089:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15107:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:15104:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15292:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:15288:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15306:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:15303:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15451:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:15447:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15465:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:15462:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15610:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:15606:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15624:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:15621:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15684:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/ogr_wrap.cpp:15744:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/ogr_wrap.cpp:15785:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:15781:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15799:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:15796:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15944:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:15940:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:15958:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:15955:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:16241:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:16237:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:16255:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:16252:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:16436:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:16432:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:16450:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:16447:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:16523:7: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
      sprintf(szTmp, CPL_FRMT_GIB, (*arg4)[i]);
      ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/ogr_wrap.cpp:16705:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:16701:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:16719:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:16716:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17020:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:17016:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17034:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:17031:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17179:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:17175:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17193:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:17190:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17338:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:17334:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17352:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:17349:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17497:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:17493:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17511:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:17508:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17682:5: warning: 'sprintf' is deprecated: Use snprintf() or CPLsnprintf() instead [-Wdeprecated-declarations]
    sprintf(szTmp, CPL_FRMT_GIB, result);
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1121:5: note: 'sprintf' has been explicitly marked deprecated here
    CPL_WARN_DEPRECATED("Use snprintf() or CPLsnprintf() instead");
    ^
/data/scratch/geography/py-gdal/work/.buildlink/include/cpl_port.h:1096:74: note: expanded from macro 'CPL_WARN_DEPRECATED'
    #define CPL_WARN_DEPRECATED(x)                       __attribute__ ((deprecated(x)))
                                                                         ^
extensions/ogr_wrap.cpp:17927:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:17923:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:17941:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:17938:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18084:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:18080:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18098:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18095:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18717:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:18713:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18722:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_double(argv[2], NULL);
              ^
extensions/ogr_wrap.cpp:18713:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18738:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:18734:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18742:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/ogr_wrap.cpp:18734:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18756:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18753:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18760:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_double(argv[2], NULL);
              ^
extensions/ogr_wrap.cpp:18756:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18775:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18772:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18778:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/ogr_wrap.cpp:18775:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18793:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18798:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_int(argv[2], NULL);
              ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18803:17: warning: declaration shadows a local variable [-Wshadow]
            int res = SWIG_AsVal_int(argv[3], NULL);
                ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18808:19: warning: declaration shadows a local variable [-Wshadow]
              int res = SWIG_AsVal_int(argv[4], NULL);
                  ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18813:21: warning: declaration shadows a local variable [-Wshadow]
                int res = SWIG_AsVal_int(argv[5], NULL);
                    ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18818:23: warning: declaration shadows a local variable [-Wshadow]
                  int res = SWIG_AsVal_int(argv[6], NULL);
                      ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18823:25: warning: declaration shadows a local variable [-Wshadow]
                    int res = SWIG_AsVal_float(argv[7], NULL);
                        ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18828:27: warning: declaration shadows a local variable [-Wshadow]
                      int res = SWIG_AsVal_int(argv[8], NULL);
                          ^
extensions/ogr_wrap.cpp:18789:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18849:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18846:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:18853:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_int(argv[2], NULL);
              ^
extensions/ogr_wrap.cpp:18849:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18858:17: warning: declaration shadows a local variable [-Wshadow]
            int res = SWIG_AsVal_int(argv[3], NULL);
                ^
extensions/ogr_wrap.cpp:18849:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18863:19: warning: declaration shadows a local variable [-Wshadow]
              int res = SWIG_AsVal_int(argv[4], NULL);
                  ^
extensions/ogr_wrap.cpp:18849:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18868:21: warning: declaration shadows a local variable [-Wshadow]
                int res = SWIG_AsVal_int(argv[5], NULL);
                    ^
extensions/ogr_wrap.cpp:18849:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18873:23: warning: declaration shadows a local variable [-Wshadow]
                  int res = SWIG_AsVal_int(argv[6], NULL);
                      ^
extensions/ogr_wrap.cpp:18849:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18878:25: warning: declaration shadows a local variable [-Wshadow]
                    int res = SWIG_AsVal_float(argv[7], NULL);
                        ^
extensions/ogr_wrap.cpp:18849:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:18883:27: warning: declaration shadows a local variable [-Wshadow]
                      int res = SWIG_AsVal_int(argv[8], NULL);
                          ^
extensions/ogr_wrap.cpp:18849:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:19431:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:19427:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:19435:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/ogr_wrap.cpp:19427:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:19449:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:19446:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:19452:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
            ^
extensions/ogr_wrap.cpp:19449:11: note: previous declaration is here
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:19891:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_int(argv[1], NULL);
            ^
extensions/ogr_wrap.cpp:19887:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:19905:11: warning: declaration shadows a local variable [-Wshadow]
      int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
          ^
extensions/ogr_wrap.cpp:19902:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
        ^
extensions/ogr_wrap.cpp:36602:1: warning: no previous prototype for function 'PyInit__ogr' [-Wmissing-prototypes]
SWIG_init(void) {
^
extensions/ogr_wrap.cpp:3054:24: note: expanded from macro 'SWIG_init'
#  define SWIG_init    PyInit__ogr
                       ^
123 warnings generated.
clang++ -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION build/temp.netbsd-8.99.19-amd64-3.5/extensions/ogr_wrap.o -L../../.libs -L../../ -L/usr/pkg/lib -L/usr/pkg/lib -lpython3.5 -lgdal -o build/lib.netbsd-8.99.19-amd64-3.5/osgeo/_ogr.so
building 'osgeo._gnm' extension
clang -pthread -DNDEBUG -O2 -I/usr/include -I/usr/pkg/include -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/pkg/include/python3.5 -I/usr/pkg/lib/python3.5/site-packages/numpy/core/include -I/usr/pkg/include -c extensions/gnm_wrap.cpp -o build/temp.netbsd-8.99.19-amd64-3.5/extensions/gnm_wrap.o
extensions/gnm_wrap.cpp:2512:65: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
                                                                ^
extensions/gnm_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/gnm_wrap.cpp:2587:51: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
                                                  ^
extensions/gnm_wrap.cpp:2253:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/gnm_wrap.cpp:3248:6: warning: no previous prototype for function 'NeverCallMePlease' [-Wmissing-prototypes]
void NeverCallMePlease() {
     ^
extensions/gnm_wrap.cpp:3332:21: warning: no previous prototype for function 'CastToNetwork' [-Wmissing-prototypes]
  GNMNetworkShadow* CastToNetwork(GDALMajorObjectShadow* base) {
                    ^
extensions/gnm_wrap.cpp:3337:28: warning: no previous prototype for function 'CastToGenericNetwork' [-Wmissing-prototypes]
  GNMGenericNetworkShadow* CastToGenericNetwork(GDALMajorObjectShadow* base) {
                           ^
extensions/gnm_wrap.cpp:6774:1: warning: no previous prototype for function 'PyInit__gnm' [-Wmissing-prototypes]
SWIG_init(void) {
^
extensions/gnm_wrap.cpp:3044:24: note: expanded from macro 'SWIG_init'
#  define SWIG_init    PyInit__gnm
                       ^
extensions/gnm_wrap.cpp:3291:14: warning: unused function 'GDALPythonObjectToCStr' [-Wunused-function]
static char* GDALPythonObjectToCStr(PyObject* pyObject, int* pbToFree)
             ^
extensions/gnm_wrap.cpp:3321:13: warning: unused function 'GDALPythonFreeCStr' [-Wunused-function]
static void GDALPythonFreeCStr(void* ptr, int bToFree)
            ^
8 warnings generated.
clang++ -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION build/temp.netbsd-8.99.19-amd64-3.5/extensions/gnm_wrap.o -L../../.libs -L../../ -L/usr/pkg/lib -L/usr/pkg/lib -lpython3.5 -lgdal -o build/lib.netbsd-8.99.19-amd64-3.5/osgeo/_gnm.so
building 'osgeo._gdal_array' extension
clang -pthread -DNDEBUG -O2 -I/usr/include -I/usr/pkg/include -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/pkg/include/python3.5 -I/usr/pkg/lib/python3.5/site-packages/numpy/core/include -I/usr/pkg/include -c extensions/gdal_array_wrap.cpp -o build/temp.netbsd-8.99.19-amd64-3.5/extensions/gdal_array_wrap.o
extensions/gdal_array_wrap.cpp:2511:65: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
                                                                ^
extensions/gdal_array_wrap.cpp:2252:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
extensions/gdal_array_wrap.cpp:2586:51: warning: declaration shadows a variable in the global namespace [-Wshadow]
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
                                                  ^
extensions/gdal_array_wrap.cpp:2252:18: note: previous declaration is here
static PyObject *swig_this = NULL;
                 ^
In file included from extensions/gdal_array_wrap.cpp:3464:
In file included from /data/scratch/geography/py-gdal/work/.buildlink/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /data/scratch/geography/py-gdal/work/.buildlink/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /data/scratch/geography/py-gdal/work/.buildlink/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/data/scratch/geography/py-gdal/work/.buildlink/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
extensions/gdal_array_wrap.cpp:3673:35: warning: declaration shadows a field of 'NUMPYDataset' [-Wshadow]
CPLErr NUMPYDataset::SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
                                  ^
extensions/gdal_array_wrap.cpp:3492:19: note: previous declaration is here
    int           nGCPCount;
                  ^
extensions/gdal_array_wrap.cpp:3673:62: warning: declaration shadows a field of 'NUMPYDataset' [-Wshadow]
CPLErr NUMPYDataset::SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
                                                             ^
extensions/gdal_array_wrap.cpp:3493:20: note: previous declaration is here
    GDAL_GCP      *pasGCPList;
                   ^
extensions/gdal_array_wrap.cpp:3674:43: warning: declaration shadows a field of 'NUMPYDataset' [-Wshadow]
                              const char *pszGCPProjection )
                                          ^
extensions/gdal_array_wrap.cpp:3494:20: note: previous declaration is here
    char          *pszGCPProjection;
                   ^
extensions/gdal_array_wrap.cpp:3901:5: warning: no previous prototype for function 'GDALTermProgress_nocb' [-Wmissing-prototypes]
int GDALTermProgress_nocb( double dfProgress, const char * pszMessage=NULL, void *pData=NULL ) {
    ^
extensions/gdal_array_wrap.cpp:4104:20: warning: no previous prototype for function 'OpenNumPyArray' [-Wmissing-prototypes]
GDALDatasetShadow* OpenNumPyArray(PyArrayObject *psArray)
                   ^
extensions/gdal_array_wrap.cpp:4110:22: warning: no previous prototype for function 'GetArrayFilename' [-Wmissing-prototypes]
retStringAndCPLFree* GetArrayFilename(PyArrayObject *psArray)
                     ^
extensions/gdal_array_wrap.cpp:4122:10: warning: no previous prototype for function 'BandRasterIONumPy' [-Wmissing-prototypes]
  CPLErr BandRasterIONumPy( GDALRasterBandShadow* band, int bWrite, double xoff, double yoff, double xsize, double ysize,
         ^
extensions/gdal_array_wrap.cpp:4180:10: warning: no previous prototype for function 'DatasetIONumPy' [-Wmissing-prototypes]
  CPLErr DatasetIONumPy( GDALDatasetShadow* ds, int bWrite, int xoff, int yoff, int xsize, int ysize,
         ^
extensions/gdal_array_wrap.cpp:4237:101: warning: unused parameter 'numpytypemap' [-Wunused-parameter]
    void VirtualMemGetArray(CPLVirtualMemShadow* virtualmem, CPLVirtualMemShadow** pvirtualmem, int numpytypemap)
                                                                                                    ^
extensions/gdal_array_wrap.cpp:4237:10: warning: no previous prototype for function 'VirtualMemGetArray' [-Wmissing-prototypes]
    void VirtualMemGetArray(CPLVirtualMemShadow* virtualmem, CPLVirtualMemShadow** pvirtualmem, int numpytypemap)
         ^
extensions/gdal_array_wrap.cpp:4246:10: warning: no previous prototype for function 'RATValuesIONumPyWrite' [-Wmissing-prototypes]
  CPLErr RATValuesIONumPyWrite( GDALRasterAttributeTableShadow* poRAT, int nField, int nStart,
         ^
extensions/gdal_array_wrap.cpp:4321:13: warning: no previous prototype for function 'RATValuesIONumPyRead' [-Wmissing-prototypes]
  PyObject *RATValuesIONumPyRead( GDALRasterAttributeTableShadow* poRAT, int nField, int nStart,
            ^
extensions/gdal_array_wrap.cpp:4719:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_size_t(argv[1], NULL);
            ^
extensions/gdal_array_wrap.cpp:4715:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CPLVirtualMemShadow, 0);
        ^
extensions/gdal_array_wrap.cpp:4734:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_size_t(argv[1], NULL);
            ^
extensions/gdal_array_wrap.cpp:4730:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CPLVirtualMemShadow, 0);
        ^
extensions/gdal_array_wrap.cpp:4739:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_size_t(argv[2], NULL);
              ^
extensions/gdal_array_wrap.cpp:4730:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CPLVirtualMemShadow, 0);
        ^
extensions/gdal_array_wrap.cpp:4755:13: warning: declaration shadows a local variable [-Wshadow]
        int res = SWIG_AsVal_size_t(argv[1], NULL);
            ^
extensions/gdal_array_wrap.cpp:4751:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CPLVirtualMemShadow, 0);
        ^
extensions/gdal_array_wrap.cpp:4760:15: warning: declaration shadows a local variable [-Wshadow]
          int res = SWIG_AsVal_size_t(argv[2], NULL);
              ^
extensions/gdal_array_wrap.cpp:4751:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CPLVirtualMemShadow, 0);
        ^
extensions/gdal_array_wrap.cpp:4765:17: warning: declaration shadows a local variable [-Wshadow]
            int res = SWIG_AsVal_int(argv[3], NULL);
                ^
extensions/gdal_array_wrap.cpp:4751:9: note: previous declaration is here
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CPLVirtualMemShadow, 0);
        ^
extensions/gdal_array_wrap.cpp:6227:1: warning: no previous prototype for function 'PyInit__gdal_array' [-Wmissing-prototypes]
SWIG_init(void) {
^
extensions/gdal_array_wrap.cpp:3043:24: note: expanded from macro 'SWIG_init'
#  define SWIG_init    PyInit__gdal_array
                       ^
extensions/gdal_array_wrap.cpp:3418:14: warning: unused function 'GDALPythonObjectToCStr' [-Wunused-function]
static char* GDALPythonObjectToCStr(PyObject* pyObject, int* pbToFree)
             ^
extensions/gdal_array_wrap.cpp:3448:13: warning: unused function 'GDALPythonFreeCStr' [-Wunused-function]
static void GDALPythonFreeCStr(void* ptr, int bToFree)
            ^
24 warnings generated.
clang++ -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -DGNM_ENABLED -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/python3.5 -I/data/scratch/geography/py-gdal/work/gdal-2.2.4/port -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include/include -DGDAL_COMPILATION build/temp.netbsd-8.99.19-amd64-3.5/extensions/gdal_array_wrap.o -L../../.libs -L../../ -L/usr/pkg/lib -L/usr/pkg/lib -lpython3.5 -lgdal -o build/lib.netbsd-8.99.19-amd64-3.5/osgeo/_gdal_array.so