svn commit: r460168 - head/graphics/darktable/files
Jean-Sébastien Pédron
dumbbell at FreeBSD.org
Sun Jan 28 12:34:40 UTC 2018
Author: dumbbell
Date: Sun Jan 28 12:34:39 2018
New Revision: 460168
URL: https://svnweb.freebsd.org/changeset/ports/460168
Log:
graphics/darktable: Include `stddef.h` when testing zError() symbol
The `CheckZlib.cmake` module uses `NULL` in the test source code to
check for the `zError()` symbol. This fails to build on FreeBSD 10.3
with the following error:
CheckPrototypeDefinition.c:15:10: error: use of undeclared identifier 'NULL'
return NULL;
^
I don't know the root cause for this failure, but including `stddef.h`
in this test source code fixes the problem.
PR: 225501
Reported by: cpm@
Added:
head/graphics/darktable/files/patch-src_external_rawspeed_cmake_Modules_CheckZLIB.cmake (contents, props changed)
Added: head/graphics/darktable/files/patch-src_external_rawspeed_cmake_Modules_CheckZLIB.cmake
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/darktable/files/patch-src_external_rawspeed_cmake_Modules_CheckZLIB.cmake Sun Jan 28 12:34:39 2018 (r460168)
@@ -0,0 +1,11 @@
+--- src/external/rawspeed/cmake/Modules/CheckZLIB.cmake.orig 2018-01-18 18:05:10 UTC
++++ src/external/rawspeed/cmake/Modules/CheckZLIB.cmake
+@@ -38,7 +38,7 @@ endif()
+ CHECK_PROTOTYPE_DEFINITION(zError
+ "const char* zError(int zErrorCode)"
+ "NULL"
+- "zlib.h"
++ "stddef.h;zlib.h"
+ HAVE_ZLIB_ZERROR_PROTOTYPE)
+ if(NOT HAVE_ZLIB_ZERROR_PROTOTYPE)
+ message(SEND_ERROR "Found unexpected prototype for zError() in <zlib.h>")
More information about the svn-ports-all
mailing list