Kent Boortz wrote:
Matthew Woehlke <[EMAIL PROTECTED]> writes:
I get the following failure building cmake 2.4.6 on IA64 HP-UX, due to
__attribute__ not being defined into nothingness:
<snip>
$ cc -V
cc: HP aC++/ANSI C B3910B A.05.50 [May 15 2003]
$ uname -srvmpio
HP-UX B.11.22 U ia64 unknown unknown HP-UX
...there is no gcc/g++ on this system.
The compile works for me, but I use a newer version of the compiler
and HP-UX 11.23. My setting is
CFLAGS="+O2 -g +DD64 +DSitanium2 -mt -AC99 -DPTHREAD_COMPAT_MODE"
CXXFLAGS="+O2 -g +DD64 +DSitanium2 -mt -Aa -DPTHREAD_COMPAT_MODE"
CC=cc
CXX=aCC
Isn't the point of something like cmake to *not* need to specify CFLAGS
by hand? :-)
Anyway, the problem seems to be in how ATTR_UNUSED is expanded. It
should be empty, and isn't.
I also had three test failures, and now build errors on AIX as well:
[ 31%] Building C object Utilities/cmcurl/CMakeFiles/cmcurl.dir/strerror.o
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/strerror.c", line
45.1: 1506-343 (S) Redeclaration of curl_easy_strerror differs from
previous declaration on line 1318 of
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/curl/curl.h".
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/strerror.c", line
45.1: 1506-050 (I) Return type "unsigned char*" in redeclaration is not
compatible with the previous return type "const unsigned char*".
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/strerror.c", line
254.1: 1506-343 (S) Redeclaration of curl_multi_strerror differs from
previous declaration on line 215 of
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/curl/multi.h".
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/strerror.c", line
254.1: 1506-050 (I) Return type "unsigned char*" in redeclaration is not
compatible with the previous return type "const unsigned char*".
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/strerror.c", line
283.1: 1506-343 (S) Redeclaration of curl_share_strerror differs from
previous declaration on line 1329 of
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/curl/curl.h".
"/home/install/gnu/src/cmake-2.4.6/Utilities/cmcurl/strerror.c", line
283.1: 1506-050 (I) Return type "unsigned char*" in redeclaration is not
compatible with the previous return type "const unsigned char*".
make[2]: *** [Utilities/cmcurl/CMakeFiles/cmcurl.dir/strerror.o] Error 1
make[1]: *** [Utilities/cmcurl/CMakeFiles/cmcurl.dir/all] Error 2
make: *** [all] Error 2
...I'll have more info tomorrow.
--
Matthew
"Have you tried that new mixed drink, 'GDR'"?
"What is it?"
"Gin, Duck and Rum. It tastes fowl."
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake