[CMake] Re: IA64 HP-UX build failure

Kent Boortz kent at mysql.com
Mon Mar 5 20:27:13 EST 2007


Matthew Woehlke <mw_triad at users.sourceforge.net> writes:
>> 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? :-)

I don't know, I just got here :-)

> 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 
<snip>

I sent a patch for this AIX problem last week, but got no reaction. I
don't know the correct way to submit patches it seems.

It is more of a work around

  *** Utilities/cmzlib/zconf.h.ORIG       Fri Mar  2 02:58:17 2007
  --- Utilities/cmzlib/zconf.h    Fri Mar  2 03:04:27 2007
  ***************
  *** 89,100 ****
    #  endif
    #endif

  - #ifndef STDC
  - #  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
  - #    define const
  - #  endif
  - #endif
  - 
    /* Some Mac compilers merge all .h files incorrectly: */
    #if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
    #  define NO_DUMMY_DECL
  --- 89,94 ----

kent

-- 
Kent Boortz, Senior Software Developer
MySQL AB, www.mysql.com
Office: +46 18 174400 ext. 4450 (VoIP)
Office: +46 19 182931
Mobile: +46 70 2791171


More information about the CMake mailing list