[Insight-users] Re: error msg got when installing ITK on IBM AIX
5.2 (Henry)
Henry
nyhenry at gmail.com
Sat Sep 15 15:38:53 EDT 2007
Hi Luis,
I type
ds100 % setenv CXX /usr/local/bin/g++
ds100 % setenv CC /usr/local/bin/gcc
ds100 % ./bootstrap
then I got
CMake 2.4-7, Copyright (c) 2006 Kitware, Inc., Insight Consortium
C compiler on this system is: /usr/local/bin/gcc
C++ compiler on this system is: /usr/local/bin/g++
Makefile processor on this system is: gmake
/usr/local/bin/g++ is GNU compiler
/usr/local/bin/g++ has STL in std:: namespace
/usr/local/bin/g++ has ANSI streams
/usr/local/bin/g++ has streams in std:: namespace
/usr/local/bin/g++ has sstream
/usr/local/bin/g++ has operator!=(string, char*)
/usr/local/bin/g++ has stl iterator_traits
/usr/local/bin/g++ has standard template allocator
/usr/local/bin/g++ has allocator<>::rebind<>
/usr/local/bin/g++ does not have non-standard allocator<>::max_size argument
/usr/local/bin/g++ has stl containers supporting allocator objects
/usr/local/bin/g++ has header cstddef
/usr/local/bin/g++ requires template friends to use <>
/usr/local/bin/g++ supports member templates
/usr/local/bin/g++ has standard template specialization syntax
/usr/local/bin/g++ has argument dependent lookup
/usr/local/bin/g++ does not have struct stat with st_mtim member
/usr/local/bin/g++ has ANSI for scoping
---------------------------------------------
/usr/local/bin/g++ -I/users/columbia/edxguo/cmake-2.4.7/Source
-I/users/columbia/edxguo/cmake-2.4.7/Bootstrap.cmk -c
/users/columbia/edxguo/cmake-2.4.7/Source/cmake.cxx -o cmake.o
In file included from
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/powerpc-ibm-aix5.2.0.0/bits/c++locale.h:43,
from
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/iosfwd:46,
from
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/ios:44,
from
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/istream:45,
from
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/fstream:45,
from
/users/columbia/edxguo/cmake-2.4.7/Source/cmStandardIncludes.h:91,
from
/users/columbia/edxguo/cmake-2.4.7/Source/cmSystemTools.h:20,
from /users/columbia/edxguo/cmake-2.4.7/Source/cmake.h:43,
from /users/columbia/edxguo/cmake-2.4.7/Source/cmake.cxx:17:
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:108:
error: `::fgetpos' has not been declared
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:110:
error: `::fopen' has not been declared
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:115:
error: `::freopen' has not been declared
/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:118:
error: `::fsetpos' has not been declared
/users/columbia/edxguo/cmake-2.4.7/Source/cmake.cxx: In static member
function `static int
cmake::ExecuteCMakeCommand(std::vector<std::string,
std::allocator<std::string> >&)':
/users/columbia/edxguo/cmake-2.4.7/Source/cmake.cxx:1018: error:
`fopen' undeclared (first use this function)
/users/columbia/edxguo/cmake-2.4.7/Source/cmake.cxx:1018: error: (Each
undeclared identifier is reported only once for each function it
appears in.)
gmake: *** [cmake.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running gmake
---------------------------------------------
Log of errors: /users/columbia/edxguo/cmake-2.4.7/Bootstrap.cmk/cmake_bootstrap.log
On 9/15/07, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Henry,
>
>
> Let's start from the beginning....
>
>
> It seems that you are using gcc 3.4
> Is that what you intended ?
>
>
> We don't have Nightly Dashboard builds of ITK in AIX,
> so, in principle it is not surprising to find problems.
> However, the fact that you are using gcc should give us
> some hope that this build could work.
>
> You may want to start with the simplest configuration
> possible. In particular do not use any of the
> ITK_USE_SYSTEM libraries options, since each one of
> the is an opportunity for clashing with AIX configurations.
>
> Did you set the CC and CXX environment variables
> before running CMake ?
>
> What did you set them to ?
>
>
> ----
>
> It will be interesting to first build a smaller project
> such as CMake itself, and see how far your configuration
> of GCC under AIX can get.
>
> CMake is actually build Nightly under AIX.
>
> So this experiment would help to validate a bit your
> platform before we go further and probe what may be
> the problem for building ITK.
>
>
> Please let us know about the questions above,
> and if you have a chance to build CMake from
> its source code it will be great if you can
> report the results of that build to the list.
>
>
>
> Thanks
>
>
> Luis
>
>
>
> ---------------
> Henry wrote:
> > Forgot to mention that first I got a error like
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > In file included from
> > /users/columbia/edxguo/itk/InsightToolkit-3.2.0/Utilities/itktiff/tif_fax3.h:38,
> > from
> > /users/columbia/edxguo/itk/InsightToolkit-3.2.0/Utilities/itktiff/mkg3states.c:42:
> > /users/columbia/edxguo/itk/InsightToolkit-3.2.0/Utilities/itktiff/tiff.h:89:
> > error: conflicting types for 'int32'
> > /usr/include/sys/inttypes.h:620: error: previous declaration of 'int32' was here
> > make: 1254-004 The error code from the last command is 1.
> > Stop.
> > make: 1254-004 The error code from the last command is 2.
> > Stop.
> > make: 1254-004 The error code from the last command is 2.
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > then I choose to turn of use system tiff and then I got the cstdio
> > error when I build it.
> >
> > BTW, from the tiff.h, I found
> > * The so called TIFF types conflict with definitions from inttypes.h
> > * included from sys/types.h on AIX (at least using VisualAge compiler).
> > * We try to work around this by detecting this case. Defining
> > * _TIFF_DATA_TYPEDEFS_ short circuits the later definitions in tiff.h, and
> > * we will in the holes not provided for by inttypes.h.
> >
> > Anybody has the same error before? Is my error related to this?
> >
> > Thanks,
> > Henry
> >
> > On 9/15/07, insight-users-request at itk.org <insight-users-request at itk.org> wrote:
> >
> >>Send Insight-users mailing list submissions to
> >> insight-users at itk.org
> >>
> >>To subscribe or unsubscribe via the World Wide Web, visit
> >> http://www.itk.org/mailman/listinfo/insight-users
> >>or, via email, send a message with subject or body 'help' to
> >> insight-users-request at itk.org
> >>
> >>You can reach the person managing the list at
> >> insight-users-owner at itk.org
> >>
> >>When replying, please edit your Subject line so it is more specific
> >>than "Re: Contents of Insight-users digest..."
> >>
> >>Today's Topics:
> >>
> >> 1. error msg got when installing ITK on IBM AIX 5.2 (Henry)
> >> 2. 2007 Workshop on Open-source and Open-data for MICCAI
> >> (Stephen R. Aylward)
> >>
> >>
> >>---------- Forwarded message ----------
> >>From: Henry <nyhenry at gmail.com>
> >>To: insight-users at itk.org
> >>Date: Fri, 14 Sep 2007 13:34:43 -0400
> >>Subject: [Insight-users] error msg got when installing ITK on IBM AIX 5.2
> >>I am using cmake-2.4.2, InsightToolkit-3.2.0.
> >>Anybody know what is this about?
> >>
> >>Thanks!!
> >>
> >>Henry
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>Scanning dependencies of target itkzlib
> >>Target "Utilities/itkzlib/CMakeFiles/itkzlib.dir/depend" is up to date.
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/adler32.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/gzio.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/inftrees.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/uncompr.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/compress.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/infblock.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/infutil.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/zutil.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/crc32.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/infcodes.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/deflate.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/inffast.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/inflate.o
> >>Building C object Utilities/itkzlib/CMakeFiles/itkzlib.dir/trees.o
> >>Linking C shared library ../../bin/libitkzlib.so
> >>Target "Utilities/itkzlib/CMakeFiles/itkzlib.dir/build" is up to date.
> >>Scanning dependencies of target itkpng
> >>Target "Utilities/itkpng/CMakeFiles/itkpng.dir/depend" is up to date.
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngget.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngrio.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngwrite.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/png.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngmem.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngrtran.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngtrans.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngwtran.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngerror.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngpread.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngrutil.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngvcrd.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngwutil.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pnggccrd.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngread.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngset.o
> >>Building C object Utilities/itkpng/CMakeFiles/itkpng.dir/pngwio.o
> >>Linking C shared library ../../bin/libitkpng.so
> >>Target "Utilities/itkpng/CMakeFiles/itkpng.dir/build" is up to date.
> >>Scanning dependencies of target itkopenjpeg
> >>Target "Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/depend" is up to date.
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/bio.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/cio.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/dwt.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/event.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/image.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/j2k.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/j2k_lib.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/jp2.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/jpt.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/mct.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/mqc.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/openjpeg.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/pi.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/raw.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/t1.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/t2.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/tcd.o
> >>Building C object Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/tgt.o
> >>Linking C shared library ../../bin/libitkopenjpeg.so
> >>Target "Utilities/openjpeg/CMakeFiles/itkopenjpeg.dir/build" is up to date.
> >>Scanning dependencies of target itksys
> >>Target "Utilities/kwsys/CMakeFiles/itksys.dir/depend" is up to date.
> >>Building C object Utilities/kwsys/CMakeFiles/itksys.dir/ProcessUNIX.o
> >>Building C object Utilities/kwsys/CMakeFiles/itksys.dir/Base64.o
> >>Building C object Utilities/kwsys/CMakeFiles/itksys.dir/System.o
> >>Building CXX object Utilities/kwsys/CMakeFiles/itksys.dir/Directory.o
> >>In file included from
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/powerpc-ibm-aix5.2.0.0/bits/c++locale.h:43,
> >> from
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/iosfwd:46,
> >> from
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/bits/stl_algobase.h:70,
> >> from
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/bits/char_traits.h:46,
> >> from
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/string:47,
> >> from
> >>/users/columbia/edxguo/itk/itkbuild/Utilities/itksys/stl/string:38,
> >> from
> >>/users/columbia/edxguo/itk/InsightToolkit-3.2.0/Utilities/kwsys/Directory.cxx:19:
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:108:
> >>error: `::fgetpos' has not been declared
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:110:
> >>error: `::fopen' has not been declared
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:115:
> >>error: `::freopen' has not been declared
> >>/rmount/local/apps/gcc-3.4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.1/../../../../include/c++/3.4.1/cstdio:118:
> >>error: `::fsetpos' has not been declared
> >>make: 1254-004 The error code from the last command is 1.
> >>
> >>
> >>Stop.
> >>make: 1254-004 The error code from the last command is 2.
> >>
> >>
> >>Stop.
> >>make: 1254-004 The error code from the last command is 2.
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
>
More information about the Insight-users
mailing list