[CMake] compiling cmake on aix 5.1 and 5.3

Joachim Geiger joachim.geiger at ipp.mpg.de
Tue Mar 25 13:20:41 EDT 2008


Hello,
I succeeded with compiling cmake-2.4.8 on aix-5.1 and 5.3. However, 
there are some changes I had to make to be successful. I used the 
bootstrap-script since no previous cmake was available. The changes I 
performed concern the following error messages that I got:
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmcurl/strerror.c", line 
45.1: 1506-343 (S) Redeclaration of curl_easy_strerror differs from 
previous declaration on line 1318 of 
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmcurl/curl/curl.h".
"/afs/ipp/home/g/geiger/cmake-2.4.8/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*".
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmcurl/strerror.c", line 
254.1: 1506-343 (S) Redeclaration of curl_multi_strerror differs from 
previous declaration on line 215 of 
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmcurl/curl/multi.h".
"/afs/ipp/home/g/geiger/cmake-2.4.8/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*".
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmcurl/strerror.c", line 
283.1: 1506-343 (S) Redeclaration of curl_share_strerror differs from 
previous declaration on line 1329 of 
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmcurl/curl/curl.h".
"/afs/ipp/home/g/geiger/cmake-2.4.8/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*".
gmake[2]: *** [Utilities/cmcurl/CMakeFiles/cmcurl.dir/strerror.o] Error 1
gmake[1]: *** [Utilities/cmcurl/CMakeFiles/cmcurl.dir/all] Error 2
gmake: *** [all] Error 2

To get rid of the error messages I removed the const in front of the 
declarations in strerror.c and in the corresponding declarations in the 
header files multi.h and curl.h. After that compilation was successful.

There were, however, two more warnings, but they did not prevent the 
compilation:
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmcurl/version.c", line 
222.3: 1506-196 (W) Initialization between types "const unsigned char**" 
and "unsigned char**" is not allowed.
"/afs/ipp/home/g/geiger/cmake-2.4.8/Utilities/cmtar/libtar.c", line 
109.15: 1506-068 (W) Operation between types "unsigned char**" and 
"unsigned char*" is not allowed.

Finally, I ran the test. Three of the 68 tests failed, namely:
  38/ 68 Testing complex                       ***Failed
  39/ 68 Testing complexOneConfig              ***Failed
  63/ 68 Testing kwsys                         ***Failed

The behaviour was the same for aix-5.1 and for aix-5.3.
I hope this helps to improve cmake.
Best regards,
Joachim

-- 
Joachim Geiger --------------------------------@\\
Max-Planck-Institute for Plasma Physics,        @\\
   Euratom Association                            \\\
Department Stellaratortheorie (ST)                \\\__
Wendelsteinstr. 1                                (  \\ \
D-17491 Greifswald, Germany                       \_ \\(_
Tel.: ++49 3834/88-2327   Fax: ++49 3834/88-2409    ) \\ \
e-mail: joachim.geiger at ipp.mpg.de                   \  -  |
---------------------------------------------------  \____/


More information about the CMake mailing list