[Gdal-dev] Re: undefined python objects
Christopher Fonnesbeck
chris at fonnesbeck.org
Sat Jan 31 10:36:21 EST 2004
On Jan 31, 2004, at 5:19 AM, Alessandro Amici wrote:
>
> the build of the gdal python module has always been fragile, and it
> has became
> a real hack since the libtool transition (my fault, admittedly). IMHO
> the
> only hope to get out of the current mess is to use the distutils
> infrastructure, that hopefully will take care of the OSX problem as
> well.
>
> so i refreshed what looked like an abandoned setup.py in the top
> directory.
> current gdal cvs builds and installs fine on linux with:
> $ python setup.py build
> $ python setup.py install
>
> it wuold be very helpfull if you could test it on OSX and report the
> results.
On my machine (running OSX 10.3), the latest GDAL CVS chokes on
compiling mrsid support:
/bin/sh ../../libtool --mode=compile g++ -Wall -O2 -I../../port
-I../../gcore -I../../ogr -Iinternal/include
-I../../frmts/gtiff/libgeotiff -D_REENTRANT -I../../port -c -o
../o/mrsiddataset.o mrsiddataset.cpp
g++ -Wall -O2 -I../../port -I../../gcore -I../../ogr
-Iinternal/include -I../../frmts/gtiff/libgeotiff -D_REENTRANT
-I../../port -c mrsiddataset.cpp -fno-common -DPIC -o
../o/.libs/mrsiddataset.o
mrsiddataset.cpp:51:26: lt_fileUtils.h: No such file or directory
mrsiddataset.cpp:52:23: lt_xTrans.h: No such file or directory
mrsiddataset.cpp:53:32: lt_imageBufferInfo.h: No such file or directory
mrsiddataset.cpp:54:22: lt_pixel.h: No such file or directory
mrsiddataset.cpp:55:27: lt_colorSpace.h: No such file or directory
mrsiddataset.cpp:56:28: MrSIDImageFile.h: No such file or directory
mrsiddataset.cpp:57:28: MrSIDNavigator.h: No such file or directory
mrsiddataset.cpp:58:28: MetadataReader.h: No such file or directory
mrsiddataset.cpp:59:29: MetadataElement.h: No such file or directory
mrsiddataset.cpp:64: error: `LizardTech' was not declared in this scope
mrsiddataset.cpp:66: warning: ISO C++ forbids declaration of
`LT_USE_NAMESPACE'
with no type
mrsiddataset.cpp:66: error: syntax error before `static'
mrsiddataset.cpp: In function `char* cvsid_aw()':
mrsiddataset.cpp:66: error: `cpl_cvsid' undeclared (first use this
function)
mrsiddataset.cpp:66: error: (Each undeclared identifier is reported
only once
for each function it appears in.)
mrsiddataset.cpp: At global scope:
mrsiddataset.cpp:84: error: syntax error before `*' token
mrsiddataset.cpp:85: error: syntax error before `*' token
mrsiddataset.cpp:86: error: syntax error before `*' token
mrsiddataset.cpp:87: error: syntax error before `*' token
mrsiddataset.cpp:88: error: syntax error before `*' token
mrsiddataset.cpp:90: error: syntax error before `::' token
mrsiddataset.cpp:92: error: syntax error before `*' token
mrsiddataset.cpp:105: error: parse error before `*' token
mrsiddataset.cpp:130: error: syntax error before `*' token
mrsiddataset.cpp:131: error: syntax error before `*' token
mrsiddataset.cpp: In constructor `
MrSIDRasterBand::MrSIDRasterBand(MrSIDDataset*, int)':
mrsiddataset.cpp:164: error: 'class MrSIDDataset' has no member named '
poMrSidNav'
mrsiddataset.cpp:165: error: 'class MrSIDDataset' has no member named '
poMrSidNav'
mrsiddataset.cpp:165: error: `IntRect' undeclared (first use this
function)
mrsiddataset.cpp:165: error: parse error before `::' token
mrsiddataset.cpp:167: error: `poImageBufInfo' undeclared (first use this
function)
mrsiddataset.cpp:167: error: parse error before `(' token
mrsiddataset.cpp: In member function `virtual CPLErr
MrSIDRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*,
int, int,
GDALDataType, int, int)':
mrsiddataset.cpp:216: error: `ImgRect' undeclared (first use this
function)
mrsiddataset.cpp:216: error: parse error before `(' token
mrsiddataset.cpp:217: error: `IntDimension' undeclared (first use this
function)
mrsiddataset.cpp:220: error: 'class MrSIDDataset' has no member named '
poMrSidNav'
mrsiddataset.cpp:220: error: `imageSupport' undeclared (first use this
function)
mrsiddataset.cpp:220: error: `targetDims' undeclared (first use this
function)
mrsiddataset.cpp:228: error: `poImageBuf' undeclared (first use this
function)
mrsiddataset.cpp:228: error: parse error before `(' token
mrsiddataset.cpp:231: error: 'class MrSIDDataset' has no member named '
poMrSidNav'
mrsiddataset.cpp:233: error: parse error before `oException'
mrsiddataset.cpp:236: error: `oException' undeclared (first use this
function)
mrsiddataset.cpp:214: warning: unused variable `int iSrcOffset'
mrsiddataset.cpp:214: warning: unused variable `int nNewYSize'
mrsiddataset.cpp:214: warning: unused variable `int nNewXSize'
mrsiddataset.cpp:213: warning: unused variable `int iLine'
mrsiddataset.cpp:212: warning: unused variable `int nBufDataSize'
mrsiddataset.cpp: At global scope:
mrsiddataset.cpp:240: warning: ISO C++ forbids declaration of
`nNewXSize' with
no type
mrsiddataset.cpp:241: warning: ISO C++ forbids declaration of
`nNewYSize' with
no type
mrsiddataset.cpp:242: warning: ISO C++ forbids declaration of
`iSrcOffset' with
no type
mrsiddataset.cpp:242: error: `nBand' was not declared in this scope
mrsiddataset.cpp:244: error: parse error before `for'
mrsiddataset.cpp:244: error: `nBufYSize' was not declared in this scope
mrsiddataset.cpp:244: error: parse error before `;' token
mrsiddataset.cpp:244: error: syntax error before `++' token
mrsiddataset.cpp:259: error: `nBufYSize' was not declared in this scope
mrsiddataset.cpp:262: error: `iLine' was not declared in this scope
mrsiddataset.cpp:265: error: parse error before `for'
mrsiddataset.cpp:265: error: `nBufXSize' was not declared in this scope
mrsiddataset.cpp:265: error: parse error before `;' token
mrsiddataset.cpp:265: error: syntax error before `++' token
mrsiddataset.cpp: In member function `virtual CPLErr
MrSIDRasterBand::IReadBlock(int, int, void*)':
mrsiddataset.cpp:292: error: parse error before `(' token
mrsiddataset.cpp:293: error: 'class MrSIDDataset' has no member named '
poMrSidNav'
mrsiddataset.cpp:295: error: parse error before `::' token
mrsiddataset.cpp:299: error: 'class MrSIDDataset' has no member named '
poMrSidNav'
mrsiddataset.cpp:301: error: parse error before `oException'
mrsiddataset.cpp:290: warning: unused variable `int j'
mrsiddataset.cpp:290: warning: unused variable `int i'
mrsiddataset.cpp: At global scope:
mrsiddataset.cpp:308: error: parse error before `for'
mrsiddataset.cpp:308: error: `nBlockSize' was not declared in this scope
mrsiddataset.cpp:308: error: parse error before `;' token
mrsiddataset.cpp:308: error: syntax error before `++' token
mrsiddataset.cpp: In member function `virtual GDALColorInterp
MrSIDRasterBand::GetColorInterpretation()':
mrsiddataset.cpp:343: error: 'class MrSIDDataset' has no member named '
poColorSpace'
mrsiddataset.cpp:345: error: `ColorSpace' undeclared (first use this
function)
mrsiddataset.cpp:345: error: parse error before `::' token
mrsiddataset.cpp:354: error: parse error before `::' token
mrsiddataset.cpp:365: error: parse error before `::' token
mrsiddataset.cpp:367: error: parse error before `::' token
mrsiddataset.cpp: In constructor `MrSIDDataset::MrSIDDataset()':
mrsiddataset.cpp:416: error: `poFilename' undeclared (first use this
function)
mrsiddataset.cpp:417: error: `poMrSidFile' undeclared (first use this
function)
mrsiddataset.cpp:418: error: `poMrSidNav' undeclared (first use this
function)
mrsiddataset.cpp:419: error: `poDefaultPixel' undeclared (first use this
function)
mrsiddataset.cpp:420: error: `poMrSidMetadata' undeclared (first use
this
function)
mrsiddataset.cpp:421: error: `poColorSpace' undeclared (first use this
function)
mrsiddataset.cpp:423: error: `eSampleType' undeclared (first use this
function)
mrsiddataset.cpp:423: error: `ImageBufferInfo' undeclared (first use
this
function)
mrsiddataset.cpp:423: error: parse error before `::' token
mrsiddataset.cpp: At global scope:
mrsiddataset.cpp:502: error: parse error before `*' token
mrsiddataset.cpp: In member function `char*
MrSIDDataset::SerializeMetadataElement(...)':
mrsiddataset.cpp:504: error: `IntDimension' undeclared (first use this
function)
mrsiddataset.cpp:504: error: parse error before `=' token
mrsiddataset.cpp:509: error: `oDim' undeclared (first use this function)
mrsiddataset.cpp:512: error: `poElem' undeclared (first use this
function)
mrsiddataset.cpp:514: error: `MetadataValue' undeclared (first use this
function)
mrsiddataset.cpp:514: error: parse error before `::' token
mrsiddataset.cpp:519: error: parse error before `::' token
mrsiddataset.cpp:524: error: parse error before `::' token
mrsiddataset.cpp:527: error: parse error before `::' token
mrsiddataset.cpp:530: error: parse error before `::' token
mrsiddataset.cpp:518: warning: unreachable code at beginning of switch
statement
mrsiddataset.cpp: In member function `int
MrSIDDataset::GetMetadataElement(const char*, void*)':
mrsiddataset.cpp:558: error: `MetadataElement' undeclared (first use
this
function)
mrsiddataset.cpp:559: error: parse error before `(' token
mrsiddataset.cpp:562: error: parse error before `::' token
mrsiddataset.cpp:567: error: parse error before `::' token
mrsiddataset.cpp:570: error: `iValue' undeclared (first use this
function)
mrsiddataset.cpp:573: error: parse error before `::' token
mrsiddataset.cpp: At global scope:
mrsiddataset.cpp:578: error: parse error before `break'
mrsiddataset.cpp:582: error: `pValue' was not declared in this scope
mrsiddataset.cpp:582: warning: ISO C++ forbids declaration of `memcpy'
with no
type
mrsiddataset.cpp:582: error: `int memcpy' redeclared as different kind
of
symbol
/usr/include/string.h:76: error: previous declaration of `void*
memcpy(void*,
const void*, long unsigned int)'
mrsiddataset.cpp:582: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:583: error: parse error before `}' token
mrsiddataset.cpp:588: error: `pValue' was not declared in this scope
mrsiddataset.cpp:588: warning: ISO C++ forbids declaration of `memcpy'
with no
type
mrsiddataset.cpp:588: error: redefinition of `int memcpy'
mrsiddataset.cpp:582: error: `int memcpy' previously defined here
mrsiddataset.cpp:588: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:589: error: parse error before `}' token
mrsiddataset.cpp:594: error: `pValue' was not declared in this scope
mrsiddataset.cpp:594: warning: ISO C++ forbids declaration of `memcpy'
with no
type
mrsiddataset.cpp:594: error: redefinition of `int memcpy'
mrsiddataset.cpp:588: error: `int memcpy' previously defined here
mrsiddataset.cpp:594: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:595: error: parse error before `}' token
mrsiddataset.cpp:600: error: `pValue' was not declared in this scope
mrsiddataset.cpp:600: warning: ISO C++ forbids declaration of `memcpy'
with no
type
mrsiddataset.cpp:600: error: redefinition of `int memcpy'
mrsiddataset.cpp:594: error: `int memcpy' previously defined here
mrsiddataset.cpp:600: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:601: error: parse error before `}' token
mrsiddataset.cpp:606: error: `pValue' was not declared in this scope
mrsiddataset.cpp:606: error: `fValue' was not declared in this scope
mrsiddataset.cpp:606: error: `fValue' was not declared in this scope
mrsiddataset.cpp:606: warning: ISO C++ forbids declaration of `memcpy'
with no
type
mrsiddataset.cpp:606: error: redefinition of `int memcpy'
mrsiddataset.cpp:600: error: `int memcpy' previously defined here
mrsiddataset.cpp:606: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:607: error: parse error before `}' token
mrsiddataset.cpp:612: error: `pValue' was not declared in this scope
mrsiddataset.cpp:612: error: `dfValue' was not declared in this scope
mrsiddataset.cpp:612: error: `dfValue' was not declared in this scope
mrsiddataset.cpp:612: warning: ISO C++ forbids declaration of `memcpy'
with no
type
mrsiddataset.cpp:612: error: redefinition of `int memcpy'
mrsiddataset.cpp:606: error: `int memcpy' previously defined here
mrsiddataset.cpp:612: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:613: error: parse error before `}' token
mrsiddataset.cpp: In member function `CPLErr
MrSIDDataset::OpenZoomLevel(int)':
mrsiddataset.cpp:1520: error: parse error before `(' token
mrsiddataset.cpp:1522: error: parse error before `oException'
mrsiddataset.cpp: At global scope:
mrsiddataset.cpp:1531: warning: ISO C++ forbids declaration of
`poDefaultPixel'
with no type
mrsiddataset.cpp:1531: error: `int poDefaultPixel' used prior to
declaration
mrsiddataset.cpp:1531: error: parse error before `(' token
mrsiddataset.cpp:1532: warning: ISO C++ forbids declaration of
`eSampleType'
with no type
mrsiddataset.cpp:1532: error: `int eSampleType' used prior to
declaration
mrsiddataset.cpp:1533: warning: ISO C++ forbids declaration of
`poColorSpace'
with no type
mrsiddataset.cpp:1533: error: `int poColorSpace' used prior to
declaration
mrsiddataset.cpp:1533: error: parse error before `(' token
mrsiddataset.cpp:1554: warning: ISO C++ forbids declaration of
`nRasterXSize'
with no type
mrsiddataset.cpp:1555: warning: ISO C++ forbids declaration of
`nRasterYSize'
with no type
mrsiddataset.cpp:1556: warning: ISO C++ forbids declaration of `nBands'
with no
type
mrsiddataset.cpp:1563: error: parse error before `if'
mrsiddataset.cpp:1573: warning: ISO C++ forbids declaration of
`adfGeoTransform
' with no type
mrsiddataset.cpp:1573: error: invalid initializer
mrsiddataset.cpp:1574: warning: ISO C++ forbids declaration of
`adfGeoTransform
' with no type
mrsiddataset.cpp:1574: error: conflicting types for `int
adfGeoTransform[3]'
mrsiddataset.cpp:1573: error: previous declaration as `int
adfGeoTransform[0]'
mrsiddataset.cpp:1575: warning: ISO C++ forbids declaration of
`bHasGeoTransfom
' with no type
mrsiddataset.cpp:1576: error: parse error before `}' token
mrsiddataset.cpp:1581: warning: ISO C++ forbids declaration of
`nRasterXSize'
with no type
mrsiddataset.cpp:1581: error: redefinition of `int nRasterXSize'
mrsiddataset.cpp:1554: error: `int nRasterXSize' previously defined here
mrsiddataset.cpp:1582: error: `nCurrentZoomLevel' was not declared in
this
scope
mrsiddataset.cpp:1583: warning: ISO C++ forbids declaration of
`nRasterYSize'
with no type
mrsiddataset.cpp:1583: error: redefinition of `int nRasterYSize'
mrsiddataset.cpp:1555: error: `int nRasterYSize' previously defined here
mrsiddataset.cpp:1584: error: `nCurrentZoomLevel' was not declared in
this
scope
mrsiddataset.cpp:1585: error: parse error before `}' token
mrsiddataset.cpp:1592: error: `iZoom' was not declared in this scope
mrsiddataset.cpp:1592: warning: ISO C++ forbids declaration of
`CPLDebug' with
no type
mrsiddataset.cpp:1592: error: `int CPLDebug' redeclared as different
kind of
symbol
../../port/cpl_error.h:124: error: previous declaration of `void
CPLDebug(const
char*, const char*, ...)'
mrsiddataset.cpp:1592: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:1599: error: parse error before `for'
mrsiddataset.cpp:1599: error: syntax error before `<=' token
mrsiddataset.cpp:1599: error: syntax error before `++' token
mrsiddataset.cpp: In static member function `static GDALDataset*
MrSIDDataset::Open(GDALOpenInfo*)':
mrsiddataset.cpp:1628: error: 'class MrSIDDataset' has no member named '
poFilename'
mrsiddataset.cpp:1628: error: parse error before `(' token
mrsiddataset.cpp:1629: error: 'class MrSIDDataset' has no member named '
poMrSidFile'
mrsiddataset.cpp:1629: error: parse error before `(' token
mrsiddataset.cpp:1631: error: parse error before `oException'
mrsiddataset.cpp: At global scope:
mrsiddataset.cpp:1638: error: syntax error before `::' token
mrsiddataset.cpp:1643: error: syntax error before `->' token
mrsiddataset.cpp:1651: error: `i' was not declared in this scope
mrsiddataset.cpp:1656: error: parse error before `do'
mrsiddataset.cpp:1663: error: syntax error before `->' token
mrsiddataset.cpp:1665: error: `pszElement' was not declared in this
scope
mrsiddataset.cpp:1665: warning: ISO C++ forbids declaration of
`VSIFree' with
no type
mrsiddataset.cpp:1665: error: `int VSIFree' redeclared as different
kind of
symbol
../../port/cpl_vsi.h:222: error: previous declaration of `void
VSIFree(void*)'
mrsiddataset.cpp:1666: warning: ISO C++ forbids declaration of
`VSIFree' with
no type
mrsiddataset.cpp:1666: error: redefinition of `int VSIFree'
mrsiddataset.cpp:1665: error: `int VSIFree' previously defined here
mrsiddataset.cpp:1666: warning: invalid conversion from `char*' to `int'
mrsiddataset.cpp:1667: error: syntax error before `++' token
mrsiddataset.cpp:1671: error: syntax error before `->' token
mrsiddataset.cpp:1676: error: syntax error before `->' token
mrsiddataset.cpp:1682: error: syntax error before `->' token
mrsiddataset.cpp:1685: error: `poDS' was not declared in this scope
mrsiddataset.cpp:1685: error: parse error before `;' token
mrsiddataset.cpp:1685: error: syntax error before `++' token
mrsiddataset.cpp:1689: error: syntax error before `->' token
mrsiddataset.cpp:1691: error: syntax error before `->' token
mrsiddataset.cpp:1699: error: syntax error before `->' token
mrsiddataset.cpp:1703: error: `poDS' was not declared in this scope
mrsiddataset.cpp:1703: error: `poDS' was not declared in this scope
mrsiddataset.cpp:1703: error: `poDS' was not declared in this scope
mrsiddataset.cpp:1704: error: `poDS' was not declared in this scope
mrsiddataset.cpp:1704: warning: ISO C++ forbids declaration of
`CPLDebug' with
no type
mrsiddataset.cpp:1704: error: redefinition of `int CPLDebug'
mrsiddataset.cpp:1592: error: `int CPLDebug' previously defined here
mrsiddataset.cpp:1704: warning: initializer list being treated as
compound
expression
mrsiddataset.cpp:1706: error: parse error before `return'
mrsiddataset.cpp: In function `void
__static_initialization_and_destruction_0(int, int)':
mrsiddataset.cpp:1574: warning: statement with no effect
make[2]: *** [../o/mrsiddataset.o] Error 1
make[1]: *** [mrsid-install-obj] Error 2
make: *** [frmts-target] Error 2
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia
More information about the Gdal-dev
mailing list