[Insight-developers] Is it ITK or gcc that's broken?

Paul Hughett hughett@mercur.uphs.upenn.edu
Mon, 14 May 2001 17:16:10 -0400


I just upgraded my Linux installation to RedHat 7.1; I *think* that the
gcc version that it actually uses is the gcc 2.95.2 that I've been using
for the past six months rather than the new broken gcc 2.96 that comes with
RH 7.1.  Nevertheless, when I updated from the repository, configured, and
made, I got the following errors almost immediately.  

Is the code in the repository broken, or should I be looking for errors
in the new RedHat version?  For what it's worth, another package that I
am working on compiles without a hiccup.

Paul Hughett


[hughett@mercur Insight]$ make
cd /home/hughett/work/Insight/CMake/Source; make CMakeBuildTargets
make[1]: Entering directory `/home/hughett/work/Insight/CMake/Source'
c++  -Wall  -g -O2   -c cmSystemTools.cxx -o cmSystemTools.o
In file included from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/iostream.h:31,
                 from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/fstream.h:30,
                 from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/fstream:6,
                 from cmStandardIncludes.h:65,
                 from cmSystemTools.h:44,
                 from cmSystemTools.cxx:41:
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/streambuf.h: In method `struct streampos streambuf::pubseekoff(long long int, ios::seek_dir, int = 3)':
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/streambuf.h:362: conversion from `__off64_t' to non-scalar type `streampos' requested
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/streambuf.h: In method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/streambuf.h:364: `struct streampos' used where a `long long int' was expected
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/g++/streambuf.h:364: warning: control reaches end of non-void function `streambuf::pubseekpos(_G_fpos64_t, int)'
cmSystemTools.cxx: In function `static void cmSystemTools::GetArguments(string &, vector<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >,allocator<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > > > &)':
cmSystemTools.cxx:464: warning: `long int endpos' might be used uninitialized in this function
make[1]: *** [cmSystemTools.o] Error 1
make[1]: Leaving directory `/home/hughett/work/Insight/CMake/Source'
make: *** [/home/hughett/work/Insight/CMake/Source/CMakeBuildTargets] Error 2