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

Charl P. Botha c . p . botha at ewi . tudelft . nl
25 Nov 2003 09:02:41 +0100


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

On Sun, 2003-11-23 at 21:55, Charl P. Botha wrote:
> I experienced (or rather my compiler did) the attached build error with 
> a current Insight CVS checkout.  Is anyone else seeing this?  My 
> compiler seems to be choking on the "using ::swap;" statement in the 
> GCC_XML "string" header files.  I would appreciate any ideas on fixing this.
> 
> Software: Debian Linux 2.2 (Woody), gcc version 2.95.4 20011002
> BTW, I couldn't find any gcc 2.95 builds on the dashboard to compare 
> results.

More info:
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 these changes cause build problems with a gcc 2.95
setup.  I've attached the build error again.  I'd appreciate any hints
on how to fix this, unless ITK doesn't support gcc < 3 anymore. :)

Thanks,
Charl

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


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

Building object file wrap_VXLNumericsPythonPython.o...
Building shared module /home/cpbotha/DoNotBackup/build/Insight-gcc/bin/_VXLNumericsPython.so...
/home/cpbotha/DoNotBackup/build/Insight-gcc/Wrapping/CSwig/Common: building default_target
Building wrap_ITKCommonBase.xml from  /home/cpbotha/DoNotBackup/build/Insight-gcc/Wrapping/CSwig/Common/wrap_ITKCommonBase.xml...
In file included from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkMacro.h:36,
                 from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkSmartPointer.h:20,
                 from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkLightObject.h:27,
                 from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkObject.h:23,
                 from /home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkCommand.h:20,
                 from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Common/wrap_ITKCommonBase.cxx:21:
/home/cpbotha/DoNotBackup/build/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/string:18: `swap'
   not declared
make[5]: *** [/home/cpbotha/DoNotBackup/build/Insight-gcc/Wrapping/CSwig/Common/wrap_ITKCommonBase.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

--=-3hHGqiAHB4lbarArWQyo--