[Insight-developers] GCC 2.96 wrapping failures

Hans Johnson hjohnson at mail.psychiatry.uiowa.edu
Sun, 25 Jan 2004 15:53:52 -0600


Brad or other CableSwig Experts,

CableSwig does not work under a redhat 7.3 gcc 2.96 installation of the 
compiler.

I've pasted the errors below,  any suggested would be greatly appreciated.

Thanks,
Hans


Building wrap_ITKCommonBase.xml from  
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight-build/Wrapping/CSwig/Common/wrap_ITKCommonBase.xml...
In file included from /usr/include/g++-3/stl_alloc.h:71,
                 from /usr/include/g++-3/alloc.h:21,
                 from /usr/include/g++-3/std/bastring.h:39,
                 from /usr/include/g++-3/string:6,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/string:4,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkMacro.h:36,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkSmartPointer.h:20,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkLightObject.h:27,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkObject.h:23,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkCommand.h:20,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Wrapping/CSwig/Common/wrap_ITKCommonBase.cxx:21:
/usr/include/pthread.h:163: error: syntax error before `__thread'
/usr/include/pthread.h:165: error: `pthread_create' declared as function
   returning a function
/usr/include/pthread.h:166: error: syntax error before `void'
/usr/include/pthread.h:591: error: storage class specifiers invalid in
   parameter declarations
/usr/include/pthread.h:591: error: storage class specified for parameter `
   parameter'
In file included from /usr/include/pthread.h:655,
                 from /usr/include/g++-3/stl_alloc.h:71,
                 from /usr/include/g++-3/alloc.h:21,
                 from /usr/include/g++-3/std/bastring.h:39,
                 from /usr/include/g++-3/string:6,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/string:4,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkMacro.h:36,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkSmartPointer.h:20,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkLightObject.h:27,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkObject.h:23,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkCommand.h:20,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Wrapping/CSwig/Common/wrap_ITKCommonBase.cxx:21:
/usr/include/bits/sigthread.h:36: error: storage class specifiers 
invalid in
   parameter declarations
/usr/include/bits/sigthread.h:36: error: storage class specified for 
parameter
   `parameter'
In file included from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Utilities/CableSwig/GCC_XML/Support/GCC/2.95/sstream:4,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkMacro.h:40,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkSmartPointer.h:20,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkLightObject.h:27,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkObject.h:23,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Code/Common/itkCommand.h:20,
                 from 
/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight/Wrapping/CSwig/Common/wrap_ITKCommonBase.cxx:21:
/usr/include/g++-3/sstream:260: error: default argument given for 
parameter 3
   of `streampos std::stringbuf::seekoff(long long int, ios::seek_dir, int)'
/usr/include/g++-3/sstream:83: error: after previous specification in 
`virtual
   streampos std::stringbuf::seekoff(long long int, ios::seek_dir, int)'
/usr/include/g++-3/sstream:278: error: default argument given for 
parameter 2
   of `streampos std::stringbuf::seekpos(long long int, int)'
/usr/include/g++-3/sstream:84: error: after previous specification in 
`virtual
   streampos std::stringbuf::seekpos(long long int, int)'
gmake[1]: *** 
[/home/hjohnson/src/brains2/iplFreeware/ix86/PROFILE/Insight-build/Wrapping/CSwig/Common/wrap_ITKCommonBase.xml] 
Error 1
gmake: *** [default_target] Error 2