[Insight-users] ITK current CVS build error (CableSwig/Python wrapping)

Charl P. Botha c . p . botha at ewi . tudelft . nl
25 Nov 2003 16:54:07 +0100


--=-3WF0Yl5CctPUF9m1OvRM
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2003-11-25 at 16:26, Brad King wrote:
> On 25 Nov 2003, Charl P. Botha wrote:
> 
> > 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?
> 
> This has been fixed as well.  You must have updated between my previous
> reply to you and when I committed the sstream fix.  I wrote a little
> program that went through every standard header and tried to run gccxml on
> a source file that #include'd only that header.  I think I've now fixed
> all such errors.

Almost... :)  I updated my checkout again, made clean, and started
over.  Now I'm seeing:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkExceptionObject.h:124: `ostream' undeclared in namespace `std'
(complete error log attached)

I tried commenting out the using ostream statements in the iostream,
fstream and iosfwd header wrappers, but to no avail.  Any other ideas?

Thanks again,
Charl

-- 
charl p. botha http://cpbotha . net/ http://visualisation . tudelft . nl/


--=-3WF0Yl5CctPUF9m1OvRM
Content-Disposition: attachment; filename=itk-buildError20031125-1649.txt
Content-Type: text/plain; name=itk-buildError20031125-1649.txt; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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: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

--=-3WF0Yl5CctPUF9m1OvRM--