Joachim Geiger wrote:
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
Strange we have dashboards that build on aix 5.3. Here is the build
script used:
http://public.kitware.com/CDash/viewNotes.php?buildid=35698
You can also see that it is green and has no test failures. We also
provide a CMake binary for aix found here:
http://www.cmake.org/HTML/Download.html
-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake