[Insight-users] Re: error msg got when installing ITK on IBM AIX 5.2 (Henry)

Henry nyhenry at gmail.com
Sat Sep 15 15:21:59 EDT 2007


Hi Luis,
Thanks a lot for your reply.
I downloaded cmake-2.4.7 (originnal one on the system is cmake-2.4.2/)
and then using the default setup, run
    ./bootstrap
    make
This is the error I got:
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/strerror.c", line
45.1: 1506-343 (S) Redeclaration of curl_easy_strerror differs from
previous declaration on line 1318 of
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/curl/curl.h".
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/strerror.c", line
45.1: 1506-050 (I) Return type "char*" in redeclaration is not
compatible with the previous return type "const char*".
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/strerror.c", line
254.1: 1506-343 (S) Redeclaration of curl_multi_strerror differs from
previous declaration on line 215 of
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/curl/multi.h".
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/strerror.c", line
254.1: 1506-050 (I) Return type "char*" in redeclaration is not
compatible with the previous return type "const char*".
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/strerror.c", line
283.1: 1506-343 (S) Redeclaration of curl_share_strerror differs from
previous declaration on line 1329 of
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/curl/curl.h".
"/users/columbia/edxguo/cmake-2.4.7/Utilities/cmcurl/strerror.c", line
283.1: 1506-050 (I) Return type "char*" in redeclaration is not
compatible with the previous return type "const char*".
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.
~~~~~~~~~~~~~~~
This is output from bootstrap
C compiler on this system is: cc
C++ compiler on this system is: xlC
Makefile processor on this system is: gmake
xlC is not GNU compiler
xlC has STL in std:: namespace
xlC has ANSI streams
xlC has streams in std:: namespace
xlC has sstream
xlC has operator!=(string, char*)
xlC has stl iterator_traits
xlC has standard template allocator
xlC has allocator<>::rebind<>
xlC does not have non-standard allocator<>::max_size argument
xlC has stl containers supporting allocator objects
xlC has header cstddef
xlC requires template friends to use <>
xlC supports member templates
xlC has standard template specialization syntax
xlC has argument dependent lookup
xlC does not have struct stat with st_mtim member
xlC has ANSI for scoping


Henry

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