I'm trying to get a GeoDjango app running inside virtualenv and I've followed these instructions and while most of my Python modules install without issue (pycurl was a pain, but I got that sorted), gdal won't install. This is what I get instead:

$ pip install gdal
Downloading/unpacking gdal
  Running setup.py egg_info for package gdal

Installing collected packages: gdal
  Running setup.py install for gdal
    building 'osgeo._gdal' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/local/include/python2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-i686-2.7/extensions/gdal_wrap.o
    cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
    extensions/gdal_wrap.cpp:2999: error: ‘VSILFILE’ has not been declared
    extensions/gdal_wrap.cpp: In function ‘int wrapper_VSIFReadL(void**, int, int, int*)’:
    extensions/gdal_wrap.cpp:3034: error: cannot convert ‘int*’ to ‘FILE*’ for argument ‘4’ to ‘size_t VSIFReadL(void*, size_t, size_t, FILE*)’
    extensions/gdal_wrap.cpp: In function ‘int wrapper_VSIStatL(const char*, StatBuf*, int)’:
    extensions/gdal_wrap.cpp:3457: error: ‘VSIStatExL’ was not declared in this scope
    extensions/gdal_wrap.cpp: At global scope:
    extensions/gdal_wrap.cpp:3465: error: ‘VSILFILE’ has not been declared
    extensions/gdal_wrap.cpp: In function ‘int wrapper_VSIFWriteL(int, char*, int, int, int*)’:
    extensions/gdal_wrap.cpp:3472: error: cannot convert ‘int*’ to ‘FILE*’ for argument ‘4’ to ‘size_t VSIFWriteL(const void*, size_t, size_t, FILE*)’
    extensions/gdal_wrap.cpp: At global scope:
    extensions/gdal_wrap.cpp:3801: error: ‘GDALAsyncReaderH’ does not name a type
    extensions/gdal_wrap.cpp:3807: error: ‘GDALAsyncReaderH’ does not name a type
    extensions/gdal_wrap.cpp: In function ‘void DeleteAsyncReaderWrapper(void*)’:
    extensions/gdal_wrap.cpp:3826: error: ‘struct GDALAsyncReaderWrapper’ has no member named ‘hAsyncReader’
    extensions/gdal_wrap.cpp: At global scope:
    extensions/gdal_wrap.cpp:3836: error: ‘GDALAsyncReaderH’ was not declared in this scope
    extensions/gdal_wrap.cpp:3837: error: expected primary-expression before ‘void’
    extensions/gdal_wrap.cpp:3837: error: initializer expression list treated as compound expression
    extensions/gdal_wrap.cpp:3838: error: expected ‘,’ or ‘;’ before ‘{’ token
    extensions/gdal_wrap.cpp: In function ‘void DisableAsyncReaderWrapper(void*)’:
    extensions/gdal_wrap.cpp:3854: error: ‘struct GDALAsyncReaderWrapper’ has no member named ‘hAsyncReader’
    extensions/gdal_wrap.cpp: At global scope:
    extensions/gdal_wrap.cpp:3861: error: ‘GDALAsyncStatusType’ does not name a type
    extensions/gdal_wrap.cpp: In function ‘void GDALAsyncReaderShadow_GetBuffer(GDALAsyncReaderShadow*, void**)’:
    extensions/gdal_wrap.cpp:3874: error: ‘GDALAsyncReaderH’ was not declared in this scope
    extensions/gdal_wrap.cpp:3874: error: expected `;' before ‘hReader’
    extensions/gdal_wrap.cpp:3875: error: ‘hReader’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int GDALAsyncReaderShadow_LockBuffer(GDALAsyncReaderShadow*, double)’:
    extensions/gdal_wrap.cpp:3884: error: ‘GDALAsyncReaderH’ was not declared in this scope
    extensions/gdal_wrap.cpp:3884: error: expected `;' before ‘hReader’
    extensions/gdal_wrap.cpp:3885: error: ‘hReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:3889: error: ‘hReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:3889: error: ‘GDALARLockBuffer’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘void GDALAsyncReaderShadow_UnlockBuffer(GDALAsyncReaderShadow*)’:
    extensions/gdal_wrap.cpp:3892: error: ‘GDALAsyncReaderH’ was not declared in this scope
    extensions/gdal_wrap.cpp:3892: error: expected `;' before ‘hReader’
    extensions/gdal_wrap.cpp:3893: error: ‘hReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:3897: error: ‘hReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:3897: error: ‘GDALARUnlockBuffer’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘GDALAsyncReaderShadow* GDALDatasetShadow_BeginAsyncReader(GDALDatasetShadow*, int, int, int, int, int, char*, void*, int, int, GDALDataType, int, int*, int, int, int, char**)’:
    extensions/gdal_wrap.cpp:4024: warning: converting to ‘int’ from ‘double’
    extensions/gdal_wrap.cpp:4025: warning: converting to ‘int’ from ‘double’
    extensions/gdal_wrap.cpp:4064: error: ‘GDALAsyncReaderH’ was not declared in this scope
    extensions/gdal_wrap.cpp:4064: error: expected `;' before ‘hAsyncReader’
    extensions/gdal_wrap.cpp:4067: error: ‘hAsyncReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:4069: error: ‘GDALAsyncReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:4069: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:4069: error: expected ‘;’ before ‘CreateAsyncReaderWrapper’
    extensions/gdal_wrap.cpp:4069: error: ‘CreateAsyncReaderWrapper’ cannot be used as a function
    extensions/gdal_wrap.cpp: In function ‘void GDALDatasetShadow_EndAsyncReader(GDALDatasetShadow*, GDALAsyncReaderShadow*)’:
    extensions/gdal_wrap.cpp:4082: error: ‘GDALAsyncReaderH’ was not declared in this scope
    extensions/gdal_wrap.cpp:4082: error: expected `;' before ‘hReader’
    extensions/gdal_wrap.cpp:4083: error: ‘hReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:4087: error: ‘hReader’ was not declared in this scope
    extensions/gdal_wrap.cpp:4087: error: ‘GDALEndAsyncReader’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘CPLErr GDALRasterBandShadow_SetUnitType(GDALRasterBandShadow*, const char*)’:
    extensions/gdal_wrap.cpp:4273: error: ‘GDALSetRasterUnitType’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int ComputeProximity(GDALRasterBandShadow*, GDALRasterBandShadow*, char**, int (*)(double, const char*, void*), void*)’:
    extensions/gdal_wrap.cpp:4657: error: ‘GDALComputeProximity’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int RasterizeLayer(GDALDatasetShadow*, int, int*, OGRLayerShadow*, void*, void*, int, double*, char**, int (*)(double, const char*, void*), void*)’:
    extensions/gdal_wrap.cpp:4693: error: ‘GDALRasterizeLayers’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int Polygonize(GDALRasterBandShadow*, GDALRasterBandShadow*, OGRLayerShadow*, int, char**, int (*)(double, const char*, void*), void*)’:
    extensions/gdal_wrap.cpp:4713: error: ‘GDALPolygonize’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int FillNodata(GDALRasterBandShadow*, GDALRasterBandShadow*, double, int, char**, int (*)(double, const char*, void*), void*)’:
    extensions/gdal_wrap.cpp:4729: error: ‘GDALFillNodata’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int SieveFilter(GDALRasterBandShadow*, GDALRasterBandShadow*, GDALRasterBandShadow*, int, int, char**, int (*)(double, const char*, void*), void*)’:
    extensions/gdal_wrap.cpp:4745: error: ‘GDALSieveFilter’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int RegenerateOverviews(GDALRasterBandShadow*, int, GDALRasterBandShadow**, const char*, int (*)(double, const char*, void*), void*)’:
    extensions/gdal_wrap.cpp:4759: error: invalid conversion from ‘GDALRasterBandShadow*’ to ‘GDALRasterBand*’
    extensions/gdal_wrap.cpp:4759: error:   initializing argument 1 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’
    extensions/gdal_wrap.cpp:4759: error: invalid conversion from ‘GDALRasterBandShadow**’ to ‘GDALRasterBand**’
    extensions/gdal_wrap.cpp:4759: error:   initializing argument 3 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’
    extensions/gdal_wrap.cpp: In function ‘int RegenerateOverview(GDALRasterBandShadow*, GDALRasterBandShadow*, const char*, int (*)(double, const char*, void*), void*)’:
    extensions/gdal_wrap.cpp:4772: error: invalid conversion from ‘GDALRasterBandShadow*’ to ‘GDALRasterBand*’
    extensions/gdal_wrap.cpp:4772: error:   initializing argument 1 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’
    extensions/gdal_wrap.cpp:4772: error: invalid conversion from ‘GDALRasterBandShadow**’ to ‘GDALRasterBand**’
    extensions/gdal_wrap.cpp:4772: error:   initializing argument 3 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’
    extensions/gdal_wrap.cpp: In function ‘GDALTransformerInfoShadow* new_GDALTransformerInfoShadow(GDALDatasetShadow*, GDALDatasetShadow*, char**)’:
    extensions/gdal_wrap.cpp:4830: error: ‘GDALCreateGenImgProjTransformer2’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int GDALTransformerInfoShadow_TransformPoint__SWIG_0(GDALTransformerInfoShadow*, int, double*)’:
    extensions/gdal_wrap.cpp:4841: error: ‘GDALUseTransformer’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int GDALTransformerInfoShadow_TransformPoint__SWIG_1(GDALTransformerInfoShadow*, double*, int, double, double, double)’:
    extensions/gdal_wrap.cpp:4853: error: ‘GDALUseTransformer’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘int GDALTransformerInfoShadow_TransformPoints(GDALTransformerInfoShadow*, int, int, double*, double*, double*, int*)’:
    extensions/gdal_wrap.cpp:4935: error: ‘GDALUseTransformer’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘GIntBig wrapper_GDALGetCacheMax()’:
    extensions/gdal_wrap.cpp:4942: error: ‘GDALGetCacheMax64’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘GIntBig wrapper_GDALGetCacheUsed()’:
    extensions/gdal_wrap.cpp:4948: error: ‘GDALGetCacheUsed64’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘void wrapper_GDALSetCacheMax(GIntBig)’:
    extensions/gdal_wrap.cpp:4954: error: ‘GDALSetCacheMax64’ was not declared in this scope
    extensions/gdal_wrap.cpp:4954: error: return-statement with a value, in function returning 'void'
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFReadL(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:5147: error: ‘VSILFILE’ was not declared in this scope
    extensions/gdal_wrap.cpp:5147: error: ‘arg4’ was not declared in this scope
    extensions/gdal_wrap.cpp:5147: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:5147: error: expected `;' before numeric constant
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_StatBuf_size_get(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6427: error: ‘CPL_FRMT_GIB’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_StatBuf_mtime_get(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6457: error: ‘CPL_FRMT_GIB’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFOpenL(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6654: error: ‘VSILFILE’ was not declared in this scope
    extensions/gdal_wrap.cpp:6654: error: ‘result’ was not declared in this scope
    extensions/gdal_wrap.cpp:6675: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:6675: error: expected `;' before ‘VSIFOpenL’
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFCloseL(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6702: error: ‘VSILFILE’ was not declared in this scope
    extensions/gdal_wrap.cpp:6702: error: ‘arg1’ was not declared in this scope
    extensions/gdal_wrap.cpp:6702: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:6702: error: expected `;' before numeric constant
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFSeekL(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6732: error: ‘VSILFILE’ was not declared in this scope
    extensions/gdal_wrap.cpp:6732: error: ‘arg1’ was not declared in this scope
    extensions/gdal_wrap.cpp:6732: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:6732: error: expected `;' before numeric constant
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFTellL(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6782: error: ‘VSILFILE’ was not declared in this scope
    extensions/gdal_wrap.cpp:6782: error: ‘arg1’ was not declared in this scope
    extensions/gdal_wrap.cpp:6782: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:6782: error: expected `;' before numeric constant
    extensions/gdal_wrap.cpp:6806: error: ‘CPL_FRMT_GIB’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFTruncateL(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6821: error: ‘VSILFILE’ was not declared in this scope
    extensions/gdal_wrap.cpp:6821: error: ‘arg1’ was not declared in this scope
    extensions/gdal_wrap.cpp:6821: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:6821: error: expected `;' before numeric constant
    extensions/gdal_wrap.cpp:6845: error: ‘VSIFTruncateL’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFWriteL(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:6866: error: ‘VSILFILE’ was not declared in this scope
    extensions/gdal_wrap.cpp:6866: error: ‘arg5’ was not declared in this scope
    extensions/gdal_wrap.cpp:6866: error: expected primary-expression before ‘)’ token
    extensions/gdal_wrap.cpp:6866: error: expected `;' before numeric constant
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_AsyncReader_GetNextUpdatedRegion(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:10706: error: ‘GDALAsyncStatusType’ was not declared in this scope
    extensions/gdal_wrap.cpp:10706: error: expected `;' before ‘result’
    extensions/gdal_wrap.cpp:10727: error: ‘result’ was not declared in this scope
    extensions/gdal_wrap.cpp:10727: error: expected `;' before ‘GDALAsyncReaderShadow_GetNextUpdatedRegion’
    extensions/gdal_wrap.cpp:10735: error: ‘result’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_GetCacheMax(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:20006: error: ‘CPL_FRMT_GIB’ was not declared in this scope
    extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_GetCacheUsed(PyObject*, PyObject*)’:
    extensions/gdal_wrap.cpp:20038: error: ‘CPL_FRMT_GIB’ was not declared in this scope
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/local/bin/python2.7 -c "import setuptools;__file__='/home/danielquinn/webapps/spirithunter_python/spirithunter/trunk/api/django/settings/build/gdal/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /home/danielquinn/tmp/pip-ysh5p7-record/install-record.txt:
    running install

running build

running build_py

running build_ext

building 'osgeo._gdal' extension

gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/local/include/python2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-i686-2.7/extensions/gdal_wrap.o

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

extensions/gdal_wrap.cpp:2999: error: ‘VSILFILE’ has not been declared

extensions/gdal_wrap.cpp: In function ‘int wrapper_VSIFReadL(void**, int, int, int*)’:

extensions/gdal_wrap.cpp:3034: error: cannot convert ‘int*’ to ‘FILE*’ for argument ‘4’ to ‘size_t VSIFReadL(void*, size_t, size_t, FILE*)’

extensions/gdal_wrap.cpp: In function ‘int wrapper_VSIStatL(const char*, StatBuf*, int)’:

extensions/gdal_wrap.cpp:3457: error: ‘VSIStatExL’ was not declared in this scope

extensions/gdal_wrap.cpp: At global scope:

extensions/gdal_wrap.cpp:3465: error: ‘VSILFILE’ has not been declared

extensions/gdal_wrap.cpp: In function ‘int wrapper_VSIFWriteL(int, char*, int, int, int*)’:

extensions/gdal_wrap.cpp:3472: error: cannot convert ‘int*’ to ‘FILE*’ for argument ‘4’ to ‘size_t VSIFWriteL(const void*, size_t, size_t, FILE*)’

extensions/gdal_wrap.cpp: At global scope:

extensions/gdal_wrap.cpp:3801: error: ‘GDALAsyncReaderH’ does not name a type

extensions/gdal_wrap.cpp:3807: error: ‘GDALAsyncReaderH’ does not name a type

extensions/gdal_wrap.cpp: In function ‘void DeleteAsyncReaderWrapper(void*)’:

extensions/gdal_wrap.cpp:3826: error: ‘struct GDALAsyncReaderWrapper’ has no member named ‘hAsyncReader’

extensions/gdal_wrap.cpp: At global scope:

extensions/gdal_wrap.cpp:3836: error: ‘GDALAsyncReaderH’ was not declared in this scope

extensions/gdal_wrap.cpp:3837: error: expected primary-expression before ‘void’

extensions/gdal_wrap.cpp:3837: error: initializer expression list treated as compound expression

extensions/gdal_wrap.cpp:3838: error: expected ‘,’ or ‘;’ before ‘{’ token

extensions/gdal_wrap.cpp: In function ‘void DisableAsyncReaderWrapper(void*)’:

extensions/gdal_wrap.cpp:3854: error: ‘struct GDALAsyncReaderWrapper’ has no member named ‘hAsyncReader’

extensions/gdal_wrap.cpp: At global scope:

extensions/gdal_wrap.cpp:3861: error: ‘GDALAsyncStatusType’ does not name a type

extensions/gdal_wrap.cpp: In function ‘void GDALAsyncReaderShadow_GetBuffer(GDALAsyncReaderShadow*, void**)’:

extensions/gdal_wrap.cpp:3874: error: ‘GDALAsyncReaderH’ was not declared in this scope

extensions/gdal_wrap.cpp:3874: error: expected `;' before ‘hReader’

extensions/gdal_wrap.cpp:3875: error: ‘hReader’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int GDALAsyncReaderShadow_LockBuffer(GDALAsyncReaderShadow*, double)’:

extensions/gdal_wrap.cpp:3884: error: ‘GDALAsyncReaderH’ was not declared in this scope

extensions/gdal_wrap.cpp:3884: error: expected `;' before ‘hReader’

extensions/gdal_wrap.cpp:3885: error: ‘hReader’ was not declared in this scope

extensions/gdal_wrap.cpp:3889: error: ‘hReader’ was not declared in this scope

extensions/gdal_wrap.cpp:3889: error: ‘GDALARLockBuffer’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘void GDALAsyncReaderShadow_UnlockBuffer(GDALAsyncReaderShadow*)’:

extensions/gdal_wrap.cpp:3892: error: ‘GDALAsyncReaderH’ was not declared in this scope

extensions/gdal_wrap.cpp:3892: error: expected `;' before ‘hReader’

extensions/gdal_wrap.cpp:3893: error: ‘hReader’ was not declared in this scope

extensions/gdal_wrap.cpp:3897: error: ‘hReader’ was not declared in this scope

extensions/gdal_wrap.cpp:3897: error: ‘GDALARUnlockBuffer’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘GDALAsyncReaderShadow* GDALDatasetShadow_BeginAsyncReader(GDALDatasetShadow*, int, int, int, int, int, char*, void*, int, int, GDALDataType, int, int*, int, int, int, char**)’:

extensions/gdal_wrap.cpp:4024: warning: converting to ‘int’ from ‘double’

extensions/gdal_wrap.cpp:4025: warning: converting to ‘int’ from ‘double’

extensions/gdal_wrap.cpp:4064: error: ‘GDALAsyncReaderH’ was not declared in this scope

extensions/gdal_wrap.cpp:4064: error: expected `;' before ‘hAsyncReader’

extensions/gdal_wrap.cpp:4067: error: ‘hAsyncReader’ was not declared in this scope

extensions/gdal_wrap.cpp:4069: error: ‘GDALAsyncReader’ was not declared in this scope

extensions/gdal_wrap.cpp:4069: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:4069: error: expected ‘;’ before ‘CreateAsyncReaderWrapper’

extensions/gdal_wrap.cpp:4069: error: ‘CreateAsyncReaderWrapper’ cannot be used as a function

extensions/gdal_wrap.cpp: In function ‘void GDALDatasetShadow_EndAsyncReader(GDALDatasetShadow*, GDALAsyncReaderShadow*)’:

extensions/gdal_wrap.cpp:4082: error: ‘GDALAsyncReaderH’ was not declared in this scope

extensions/gdal_wrap.cpp:4082: error: expected `;' before ‘hReader’

extensions/gdal_wrap.cpp:4083: error: ‘hReader’ was not declared in this scope

extensions/gdal_wrap.cpp:4087: error: ‘hReader’ was not declared in this scope

extensions/gdal_wrap.cpp:4087: error: ‘GDALEndAsyncReader’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘CPLErr GDALRasterBandShadow_SetUnitType(GDALRasterBandShadow*, const char*)’:

extensions/gdal_wrap.cpp:4273: error: ‘GDALSetRasterUnitType’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int ComputeProximity(GDALRasterBandShadow*, GDALRasterBandShadow*, char**, int (*)(double, const char*, void*), void*)’:

extensions/gdal_wrap.cpp:4657: error: ‘GDALComputeProximity’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int RasterizeLayer(GDALDatasetShadow*, int, int*, OGRLayerShadow*, void*, void*, int, double*, char**, int (*)(double, const char*, void*), void*)’:

extensions/gdal_wrap.cpp:4693: error: ‘GDALRasterizeLayers’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int Polygonize(GDALRasterBandShadow*, GDALRasterBandShadow*, OGRLayerShadow*, int, char**, int (*)(double, const char*, void*), void*)’:

extensions/gdal_wrap.cpp:4713: error: ‘GDALPolygonize’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int FillNodata(GDALRasterBandShadow*, GDALRasterBandShadow*, double, int, char**, int (*)(double, const char*, void*), void*)’:

extensions/gdal_wrap.cpp:4729: error: ‘GDALFillNodata’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int SieveFilter(GDALRasterBandShadow*, GDALRasterBandShadow*, GDALRasterBandShadow*, int, int, char**, int (*)(double, const char*, void*), void*)’:

extensions/gdal_wrap.cpp:4745: error: ‘GDALSieveFilter’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int RegenerateOverviews(GDALRasterBandShadow*, int, GDALRasterBandShadow**, const char*, int (*)(double, const char*, void*), void*)’:

extensions/gdal_wrap.cpp:4759: error: invalid conversion from ‘GDALRasterBandShadow*’ to ‘GDALRasterBand*’

extensions/gdal_wrap.cpp:4759: error:   initializing argument 1 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’

extensions/gdal_wrap.cpp:4759: error: invalid conversion from ‘GDALRasterBandShadow**’ to ‘GDALRasterBand**’

extensions/gdal_wrap.cpp:4759: error:   initializing argument 3 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’

extensions/gdal_wrap.cpp: In function ‘int RegenerateOverview(GDALRasterBandShadow*, GDALRasterBandShadow*, const char*, int (*)(double, const char*, void*), void*)’:

extensions/gdal_wrap.cpp:4772: error: invalid conversion from ‘GDALRasterBandShadow*’ to ‘GDALRasterBand*’

extensions/gdal_wrap.cpp:4772: error:   initializing argument 1 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’

extensions/gdal_wrap.cpp:4772: error: invalid conversion from ‘GDALRasterBandShadow**’ to ‘GDALRasterBand**’

extensions/gdal_wrap.cpp:4772: error:   initializing argument 3 of ‘CPLErr GDALRegenerateOverviews(GDALRasterBand*, int, GDALRasterBand**, const char*, int (*)(double, const char*, void*), void*)’

extensions/gdal_wrap.cpp: In function ‘GDALTransformerInfoShadow* new_GDALTransformerInfoShadow(GDALDatasetShadow*, GDALDatasetShadow*, char**)’:

extensions/gdal_wrap.cpp:4830: error: ‘GDALCreateGenImgProjTransformer2’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int GDALTransformerInfoShadow_TransformPoint__SWIG_0(GDALTransformerInfoShadow*, int, double*)’:

extensions/gdal_wrap.cpp:4841: error: ‘GDALUseTransformer’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int GDALTransformerInfoShadow_TransformPoint__SWIG_1(GDALTransformerInfoShadow*, double*, int, double, double, double)’:

extensions/gdal_wrap.cpp:4853: error: ‘GDALUseTransformer’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘int GDALTransformerInfoShadow_TransformPoints(GDALTransformerInfoShadow*, int, int, double*, double*, double*, int*)’:

extensions/gdal_wrap.cpp:4935: error: ‘GDALUseTransformer’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘GIntBig wrapper_GDALGetCacheMax()’:

extensions/gdal_wrap.cpp:4942: error: ‘GDALGetCacheMax64’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘GIntBig wrapper_GDALGetCacheUsed()’:

extensions/gdal_wrap.cpp:4948: error: ‘GDALGetCacheUsed64’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘void wrapper_GDALSetCacheMax(GIntBig)’:

extensions/gdal_wrap.cpp:4954: error: ‘GDALSetCacheMax64’ was not declared in this scope

extensions/gdal_wrap.cpp:4954: error: return-statement with a value, in function returning 'void'

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFReadL(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:5147: error: ‘VSILFILE’ was not declared in this scope

extensions/gdal_wrap.cpp:5147: error: ‘arg4’ was not declared in this scope

extensions/gdal_wrap.cpp:5147: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:5147: error: expected `;' before numeric constant

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_StatBuf_size_get(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6427: error: ‘CPL_FRMT_GIB’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_StatBuf_mtime_get(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6457: error: ‘CPL_FRMT_GIB’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFOpenL(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6654: error: ‘VSILFILE’ was not declared in this scope

extensions/gdal_wrap.cpp:6654: error: ‘result’ was not declared in this scope

extensions/gdal_wrap.cpp:6675: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:6675: error: expected `;' before ‘VSIFOpenL’

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFCloseL(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6702: error: ‘VSILFILE’ was not declared in this scope

extensions/gdal_wrap.cpp:6702: error: ‘arg1’ was not declared in this scope

extensions/gdal_wrap.cpp:6702: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:6702: error: expected `;' before numeric constant

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFSeekL(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6732: error: ‘VSILFILE’ was not declared in this scope

extensions/gdal_wrap.cpp:6732: error: ‘arg1’ was not declared in this scope

extensions/gdal_wrap.cpp:6732: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:6732: error: expected `;' before numeric constant

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFTellL(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6782: error: ‘VSILFILE’ was not declared in this scope

extensions/gdal_wrap.cpp:6782: error: ‘arg1’ was not declared in this scope

extensions/gdal_wrap.cpp:6782: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:6782: error: expected `;' before numeric constant

extensions/gdal_wrap.cpp:6806: error: ‘CPL_FRMT_GIB’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFTruncateL(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6821: error: ‘VSILFILE’ was not declared in this scope

extensions/gdal_wrap.cpp:6821: error: ‘arg1’ was not declared in this scope

extensions/gdal_wrap.cpp:6821: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:6821: error: expected `;' before numeric constant

extensions/gdal_wrap.cpp:6845: error: ‘VSIFTruncateL’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VSIFWriteL(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:6866: error: ‘VSILFILE’ was not declared in this scope

extensions/gdal_wrap.cpp:6866: error: ‘arg5’ was not declared in this scope

extensions/gdal_wrap.cpp:6866: error: expected primary-expression before ‘)’ token

extensions/gdal_wrap.cpp:6866: error: expected `;' before numeric constant

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_AsyncReader_GetNextUpdatedRegion(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:10706: error: ‘GDALAsyncStatusType’ was not declared in this scope

extensions/gdal_wrap.cpp:10706: error: expected `;' before ‘result’

extensions/gdal_wrap.cpp:10727: error: ‘result’ was not declared in this scope

extensions/gdal_wrap.cpp:10727: error: expected `;' before ‘GDALAsyncReaderShadow_GetNextUpdatedRegion’

extensions/gdal_wrap.cpp:10735: error: ‘result’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_GetCacheMax(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:20006: error: ‘CPL_FRMT_GIB’ was not declared in this scope

extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_GetCacheUsed(PyObject*, PyObject*)’:

extensions/gdal_wrap.cpp:20038: error: ‘CPL_FRMT_GIB’ was not declared in this scope

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/local/bin/python2.7 -c "import setuptools;__file__='/home/username/webapps/spirithunter_python/spirithunter/trunk/api/django/settings/build/gdal/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /home/username/tmp/pip-ysh5p7-record/install-record.txt failed with error code 1 in /home/username/webapps/spirithunter_python/spirithunter/trunk/api/django/settings/build/gdal

Any help on this one would be a big help.

asked 19 May '12, 10:41

danielquinn's gravatar image

danielquinn
787
accept rate: 14%


Please take a look at the following post in our community site.

link

answered 19 May '12, 10:50

todork's gravatar image

todork
1.1k4
accept rate: 34%

You know, I'd seen that post, and thought I'd followed the instructions, which is why I posted here. But on taking a second look, I realised that I hadn't run make, only ./configure, so thanks for that.

(20 May '12, 01:47) danielquinn danielquinn's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×272
×5
×2

Asked: 19 May '12, 10:41

Seen: 1,319 times

Last updated: 20 May '12, 01:47

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited