[Insight-users] ITK current CVS build error (CableSwig/Python
wrapping)
Charl P. Botha
c . p . botha at ewi . tudelft . nl
25 Nov 2003 16:10:43 +0100
--=-8edP6OR25Zkujpioacvu
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Tue, 2003-11-25 at 15:19, Brad King wrote:
> On 25 Nov 2003, Charl P. Botha wrote:
> > I reverted my CVS checkout to 2003-11-05, the day before the header
> > wrappers were added to
> > Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95: Insight builds and
> > the Python wrappings work without a hitch. According to the CVS logs,
> > these wrappers were added:
> >
> > "...to make std:: and :: look the same even without the -fno-honor-std
> > flag. This will allow GCC versions higher than 3.0 to be patched with
> > the GCC-XML extension and still support GCC 2.95 simulation."
>
> It seems that the global swap method is not defined by the <string> header
> in GCC 2.95. I've committed a fix to GCC-XML. Thanks.
Thank you very much for fixing that Brad! However, now I'm seeing a
related build error (also attached), but this time with the sstream
header wrapper. Would it not be better to make all the header wrappers
conditional and dependent on the use of GCC >= 3, or is there something
I'm missing?
Thanks again,
Charl
--
charl p. botha http://cpbotha . net/ http://visualisation . tudelft . nl/
--=-8edP6OR25Zkujpioacvu
Content-Disposition: attachment; filename=itk-buildError20031125.txt
Content-Type: text/plain; name=itk-buildError20031125.txt; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
/home/cpbotha/DoNotBackup/build/Insight-gcc/Wrapping/CSwig/Common: building default_target
Building wrap_itkArray.xml from /home/cpbotha/DoNotBackup/build/Insight-gcc/Wrapping/CSwig/Common/wrap_itkArray.xml...
In file included from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkMacro.h:40,
from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:20,
from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:17:
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:7: `ios'
not declared
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:8: `streamoff'
not declared
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:9: `streampos'
not declared
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:10: `streamsize'
not declared
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:11: `streambuf'
not declared
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:12: `istream'
not declared
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:13: `ostream'
not declared
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:14: `iostream'
not declared
In file included from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkMacro.h:420,
from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:20,
from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:17:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:124: `ostream'
undeclared in namespace `std'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:124: `os'
was not declared in this scope
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:124: invalid
data member initialization
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:124: (use
`=' to initialize static data members)
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:124: variable
or field `Print' declared void
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:124: `Print'
declared as a `virtual' field
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:174: syntax
error before `&' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:189: parse
error before `{' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:196: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:199: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:202: destructors
must be member functions
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:202: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:205: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:205: non-member
function `const char* GetNameOfClass()' cannot have `const' method qualifier
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:207: parse
error before `}' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:215: parse
error before `{' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:226: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:231: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:234: destructors
must be member functions
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:234: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:237: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:237: non-member
function `const char* GetNameOfClass()' cannot have `const' method qualifier
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h: In
function `const char* GetNameOfClass()':
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:237: redefinition
of `const char* GetNameOfClass()'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:205: `const
char* GetNameOfClass()' previously defined here
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h: At
global scope:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:238: parse
error before `}' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:245: parse
error before `{' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:252: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:255: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:258: destructors
must be member functions
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:258: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:261: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:261: non-member
function `const char* GetNameOfClass()' cannot have `const' method qualifier
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h: In
function `const char* GetNameOfClass()':
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:261: redefinition
of `const char* GetNameOfClass()'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:237: `const
char* GetNameOfClass()' previously defined here
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h: At
global scope:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:262: parse
error before `}' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:269: parse
error before `{' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:277: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:281: parse
error before `const'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:285: destructors
must be member functions
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:285: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:288: virtual
outside class declaration
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:288: non-member
function `const char* GetNameOfClass()' cannot have `const' method qualifier
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h: In
function `const char* GetNameOfClass()':
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:288: redefinition
of `const char* GetNameOfClass()'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:261: `const
char* GetNameOfClass()' previously defined here
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h: At
global scope:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:290: parse
error before `}' token
In file included from /home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/std/complext.h:393,
from /usr/include/g++-3/complex:7,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/complex:4,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vcl/iso/vcl_complex.h:6,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vcl/vcl_complex_fwd.h:37,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_numeric_traits.h:30,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_c_vector.h:25,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_vector.h:19,
from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:21,
from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:17:
/usr/include/g++-3/std/fcomplex.h: In function `complex<float> operator+(const
complex<float>&, float)':
/usr/include/g++-3/std/fcomplex.h:60: no matching function for call to
`operator+(const complex<float>&, float&)'
/usr/include/g++-3/std/fcomplex.h: In function `complex<float> operator+(float,
const complex<float>&)':
/usr/include/g++-3/std/fcomplex.h:62: no matching function for call to
`operator+(float&, const complex<float>&)'
/usr/include/g++-3/std/fcomplex.h: In function `complex<float> operator-(const
complex<float>&, float)':
/usr/include/g++-3/std/fcomplex.h:64: no matching function for call to
`operator-(const complex<float>&, float&)'
/usr/include/g++-3/std/fcomplex.h: In function `complex<float> operator-(float,
const complex<float>&)':
/usr/include/g++-3/std/fcomplex.h:66: no matching function for call to
`operator-(float&, const complex<float>&)'
/usr/include/g++-3/std/fcomplex.h: In function `bool operator==(const
complex<float>&, float)':
/usr/include/g++-3/std/fcomplex.h:76: no matching function for call to
`operator==(const complex<float>&, float&)'
/usr/include/g++-3/std/fcomplex.h: In function `bool operator==(float, const
complex<float>&)':
/usr/include/g++-3/std/fcomplex.h:78: no matching function for call to
`operator==(float&, const complex<float>&)'
/usr/include/g++-3/std/fcomplex.h: In function `bool operator!=(const
complex<float>&, float)':
/usr/include/g++-3/std/fcomplex.h:80: no matching function for call to
`operator!=(const complex<float>&, float&)'
/usr/include/g++-3/std/fcomplex.h: In function `bool operator!=(float, const
complex<float>&)':
/usr/include/g++-3/std/fcomplex.h:82: no matching function for call to
`operator!=(float&, const complex<float>&)'
In file included from /home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/std/complext.h:394,
from /usr/include/g++-3/complex:7,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/complex:4,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vcl/iso/vcl_complex.h:6,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vcl/vcl_complex_fwd.h:37,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_numeric_traits.h:30,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_c_vector.h:25,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_vector.h:19,
from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:21,
from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:17:
/usr/include/g++-3/std/dcomplex.h: In function `complex<double> operator+(const
complex<double>&, double)':
/usr/include/g++-3/std/dcomplex.h:60: no matching function for call to
`operator+(const complex<double>&, double&)'
/usr/include/g++-3/std/dcomplex.h: In function `complex<double>
operator+(double, const complex<double>&)':
/usr/include/g++-3/std/dcomplex.h:62: no matching function for call to
`operator+(double&, const complex<double>&)'
/usr/include/g++-3/std/dcomplex.h: In function `complex<double> operator-(const
complex<double>&, double)':
/usr/include/g++-3/std/dcomplex.h:64: no matching function for call to
`operator-(const complex<double>&, double&)'
/usr/include/g++-3/std/dcomplex.h: In function `complex<double>
operator-(double, const complex<double>&)':
/usr/include/g++-3/std/dcomplex.h:66: no matching function for call to
`operator-(double&, const complex<double>&)'
/usr/include/g++-3/std/dcomplex.h: In function `bool operator==(const
complex<double>&, double)':
/usr/include/g++-3/std/dcomplex.h:76: no matching function for call to
`operator==(const complex<double>&, double&)'
/usr/include/g++-3/std/dcomplex.h: In function `bool operator==(double, const
complex<double>&)':
/usr/include/g++-3/std/dcomplex.h:78: no matching function for call to
`operator==(double&, const complex<double>&)'
/usr/include/g++-3/std/dcomplex.h: In function `bool operator!=(const
complex<double>&, double)':
/usr/include/g++-3/std/dcomplex.h:80: no matching function for call to
`operator!=(const complex<double>&, double&)'
/usr/include/g++-3/std/dcomplex.h: In function `bool operator!=(double, const
complex<double>&)':
/usr/include/g++-3/std/dcomplex.h:82: no matching function for call to
`operator!=(double&, const complex<double>&)'
In file included from /home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/std/complext.h:395,
from /usr/include/g++-3/complex:7,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/complex:4,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vcl/iso/vcl_complex.h:6,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vcl/vcl_complex_fwd.h:37,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_numeric_traits.h:30,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_c_vector.h:25,
from /home/cpbotha/DoNotBackup/build/Insight/Utilities/vxl/vnl/vnl_vector.h:19,
from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:21,
from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:17:
/usr/include/g++-3/std/ldcomplex.h: In function `complex<long double>
operator+(const complex<long double>&, long double)':
/usr/include/g++-3/std/ldcomplex.h:60: no matching function for call to
`operator+(const complex<long double>&, long double&)'
/usr/include/g++-3/std/ldcomplex.h: In function `complex<long double>
operator+(long double, const complex<long double>&)':
/usr/include/g++-3/std/ldcomplex.h:62: no matching function for call to
`operator+(long double&, const complex<long double>&)'
/usr/include/g++-3/std/ldcomplex.h: In function `complex<long double>
operator-(const complex<long double>&, long double)':
/usr/include/g++-3/std/ldcomplex.h:64: no matching function for call to
`operator-(const complex<long double>&, long double&)'
/usr/include/g++-3/std/ldcomplex.h: In function `complex<long double>
operator-(long double, const complex<long double>&)':
/usr/include/g++-3/std/ldcomplex.h:66: no matching function for call to
`operator-(long double&, const complex<long double>&)'
/usr/include/g++-3/std/ldcomplex.h: In function `bool operator==(const
complex<long double>&, long double)':
/usr/include/g++-3/std/ldcomplex.h:76: no matching function for call to
`operator==(const complex<long double>&, long double&)'
/usr/include/g++-3/std/ldcomplex.h: In function `bool operator==(long double,
const complex<long double>&)':
/usr/include/g++-3/std/ldcomplex.h:78: no matching function for call to
`operator==(long double&, const complex<long double>&)'
/usr/include/g++-3/std/ldcomplex.h: In function `bool operator!=(const
complex<long double>&, long double)':
/usr/include/g++-3/std/ldcomplex.h:80: no matching function for call to
`operator!=(const complex<long double>&, long double&)'
/usr/include/g++-3/std/ldcomplex.h: In function `bool operator!=(long double,
const complex<long double>&)':
/usr/include/g++-3/std/ldcomplex.h:82: no matching function for call to
`operator!=(long double&, const complex<long double>&)'
In file included from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:17:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h: At global
scope:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:88: parse error
before `&' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:89: `ostream&
itk::operator<<(...)' must have an argument of class or enumerated type
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:89: `ostream&
itk::operator<<(...)' must take exactly two arguments
In file included from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:111,
from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:17:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: syntax
error before `::' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: ISO C++
forbids declaration of `Array' with no type
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: declaration
of `int Array()' not in a namespace surrounding `::'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: `int
Array()' should have been declared inside `::'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx: In function
`int Array()':
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: `int
Array()' redeclared as different kind of symbol
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.h:44: previous
declaration of `template<class TValueType> class itk::Array'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: base
initializers not allowed for non-member functions
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: `TValueType'
undeclared (first use this function)
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: (Each
undeclared identifier is reported only once for each function it appears
in.)
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:32: template
argument 1 is invalid
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx: At global
scope:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:42: syntax
error before `::' token
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:42: ISO C++
forbids declaration of `Array' with no type
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:42: declaration
of `int Array(unsigned int)' not in a namespace surrounding `::'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:42: `int
Array(unsigned int)' should have been declared inside `::'
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx: In function
`int Array(unsigned int)':
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:42: base
initializers not allowed for non-member functions
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:42: `TValueType'
undeclared (first use this function)
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkArray.txx:42: template
argument 1 is invalid
/home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx: At
global scope:
/home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_itkArray.cxx:26: syntax
error before `::' token
make[5]: *** [/home/cpbotha/DoNotBackup/build/Insight-gcc/Wrapping/CSwig/Common/wrap_itkArray.xml] Error 33
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Common] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Wrapping_CSwig] Error 2
make: *** [default_target] Error 2
--=-8edP6OR25Zkujpioacvu--