MantisBT - CMake
View Issue Details
0014250CMakeCMakepublic2013-06-27 15:332013-12-02 08:51
John Ralls 
Brad King 
normalblockalways
closedfixed 
MacOSX10.9
CMake 2.8.11 
CMake 2.8.11.2CMake 2.8.11.2 
0014250: CMake build fails due to Curl bug 1192
The latest llvm headers define strlcat as a macro rather than as a function, producing the following error when building CMake:

Scanning dependencies of target cmcurl
[ 14%] Building C object Utilities/cmcurl/CMakeFiles/cmcurl.dir/cookie.c.o
In file included from /Users/john/Development/gtk-sources/cmake-2.8.11/Utilities/cmcurl/cookie.c:93:
/Users/john/Development/gtk-sources/cmake-2.8.11/Utilities/cmcurl/strequal.h:42:8: error:
      expected parameter declarator
size_t strlcat(char *dst, const char *src, size_t siz);
       ^
/Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note:
      expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note:
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_...
                                                             ^
/Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note:
      expanded from macro '_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
                               ^
This has already been fixed in curl:
http://sourceforge.net/p/curl/bugs/1192/ [^]
No tags attached.
patch 5dd8c014+0001-cmcurl-Backport-curl-bug-1192-fix-14250.patch (5,947) 2013-06-27 16:51
https://public.kitware.com/Bug/file/4804/5dd8c014%2B0001-cmcurl-Backport-curl-bug-1192-fix-14250.patch
Issue History
2013-06-27 15:33John RallsNew Issue
2013-06-27 16:51Brad KingFile Added: 5dd8c014+0001-cmcurl-Backport-curl-bug-1192-fix-14250.patch
2013-06-27 16:51Brad KingNote Added: 0033395
2013-06-28 18:49John RallsNote Added: 0033405
2013-06-28 18:56Brad KingNote Added: 0033406
2013-06-28 18:56Brad KingAssigned To => Brad King
2013-06-28 18:56Brad KingStatusnew => resolved
2013-06-28 18:56Brad KingResolutionopen => fixed
2013-06-28 18:56Brad KingFixed in Version => CMake 2.8.12
2013-06-28 18:56Brad KingTarget Version => CMake 2.8.12
2013-07-03 15:53Robert MaynardTarget VersionCMake 2.8.12 => CMake 2.8.11.2
2013-07-03 15:56Robert MaynardFixed in VersionCMake 2.8.12 => CMake 2.8.11.2
2013-12-02 08:51Robert MaynardNote Added: 0034631
2013-12-02 08:51Robert MaynardStatusresolved => closed

Notes
(0033395)
Brad King   
2013-06-27 16:51   
Please test "5dd8c014+0001-cmcurl-Backport-curl-bug-1192-fix-14250.patch".
(0033405)
John Ralls   
2013-06-28 18:49   
Yes, that fixes it. Thanks.
(0033406)
Brad King   
2013-06-28 18:56   
Applied, thanks for testing:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e643e025 [^]
(0034631)
Robert Maynard   
2013-12-02 08:51   
Closing resolved issues that have not been updated in more than 4 months.