[Insight-users] Re: error msg got when installing ITK on IBM
AIX 5.2 (Henry)
Luis Ibanez
luis.ibanez at kitware.com
Sat Sep 15 18:40:12 EDT 2007
Hi Henry,
Looking at the source code of CMake,
/CMake/Utilities/cmcurl/strerror.c
in line 45 where you report the error, we find that there is
code specific for AIX:
#if defined(HAVE_STRERROR_R) && defined(HAVE_NO_STRERROR_R_DECL)
#ifdef HAVE_POSIX_STRERROR_R
/* seen on AIX 5100-02 gcc 2.9 */
extern int strerror_r(int errnum, char *strerrbuf, size_t buflen);
#else
extern char *strerror_r(int errnum, char *buf, size_t buflen);
#endif
#endif
Therefore, we are going to need your help to figure out what the
right code should be here for AIX and gcc 3.4, in your installation.
It seems that the function prototypes in
/CMake/Utilities/cmcurl/curl/curl.h
are not matching the actual implementations in
/CMake/Utilities/cmcurl/
In particular, the functions:
curl_easy_strerror()
curl_multi_strerror()
It is likely that many of the compile-time discovery
actions that CMake performs during configuration are
not returning the appropriate settings for your
platform (AIX+Gcc3.4).
You may want to start by posting a detailed description
of your CMake build to the CMake users list. They will
be better informed on how to find the right configuration
settings for your platform.
Once you get CMake to build in your platform, it should
be trivial to get ITK to build.
Regards,
Luis
----------------------
Xiaohui Zhang wrote:
> Hi Luis,
> Actually I am using the datastar at SDSC
> (http://www.sdsc.edu/us/resources/datastar/dsguide_toc.html) and I
> know little about the configuration of the system. But we did build
> some codes before...
>
> Henry
>
> On 9/15/07, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>>
>>Hi Henry,
>>
>>It seems that the installation of GCC in your computer is
>>misconfigured.
>>
>>
>>If CMake cannot be build in your machine, there is little
>>hope that ITK or VTK will build in the same environment.
>>
>>
>> Have you ever build a C++ project in that machine ?
>>
>>
>>[using the gcc compiler that is installed in /usr/local/bin] ?
>>
>>
>>E.g. even relatively small projects such as FLTK ?
>>(www.fltk.org)
>>
>>
>>
>>
>> Please let us know.
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>>
>>----------------------
>>Xiaohui Zhang wrote:
>>
>>>Hi Luis,
>>>I forgot to mention that I am trying to build with GCC, as it seems
>>>that the setup for old cmake (cmake-2.4.2) on the system is
>>>cmake_cxx_compiler: //usr/bin/g++
>>>cmake_c_compiler: //usr/bin/gcc
>>>
>>>Henry
>>>On 9/15/07, Henry <nyhenry at gmail.com> wrote:
>>>
>>>
>>>>Hi Luis,
>>>>This is what I get:
>>>>ds100 % echo $CC
>>>>/usr/local/bin/gcc
>>>>ds100 % echo $CXX
>>>>/usr/local/bin/g++
>>>>ds100 % which cc
>>>>/usr/bin/cc
>>>>ds100 % which xlC
>>>>/usr/bin/xlC
>>>>
>>>>ds100 % cd /usr/bin/
>>>>ds100 % ll xlC
>>>>lrwxrwxrwx 1 root system 16 Feb 05 2004 xlC@ ->
>>>>/usr/vac/bin/xlc*
>>>>ds100 % ll cc
>>>>lrwxrwxrwx 1 root system 15 May 30 2006 cc@ -> /usr/vac/bin/cc*
>>>>
>>>>Thanks a lot for your help!
>>>>Henry
>>>>
>>>
>>>
>
More information about the Insight-users
mailing list