[Bug 225501] graphics/darktable: release 2.4.1 fails to build on FreeBSD 10.3

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 28 12:28:51 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225501

            Bug ID: 225501
           Summary: graphics/darktable: release 2.4.1 fails to build on
                    FreeBSD 10.3
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: dumbbell at FreeBSD.org

On FreeBSD 10.3, darktable 2.4.1 fails to configure with the following error:

    -- Looking for ZLIB
    CMake Error at src/external/rawspeed/cmake/Modules/CheckZLIB.cmake:44
(message):
      Found unexpected prototype for zError() in <zlib.h>
    Call Stack (most recent call first):
      src/external/rawspeed/cmake/src-dependencies.cmake:117 (include)
      src/external/rawspeed/src/CMakeLists.txt:3 (include)

The error from CMakeError.log file is below:

    Determining if the prototype zError exists for HAVE_ZLIB_ZERROR_PROTOTYPE
failed with the following output:
    Change Dir: /usr/ports/graphics/darktable/work/.build/CMakeFiles/CMakeTmp

    Run Build Command:"/usr/local/bin/ninja" "cmTC_eeaba"
    [1/2] Building C object
CMakeFiles/cmTC_eeaba.dir/CheckPrototypeDefinition.c.o
    FAILED: CMakeFiles/cmTC_eeaba.dir/CheckPrototypeDefinition.c.o
    /usr/local/bin/clang50   -O2 -pipe  -fstack-protector -fno-strict-aliasing
-Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits
-Wvla -Wthread-safety -Wno-error=varargs -Wno-error=address-of-packed-member
-Wframe-larger-than=32768 -Wlarger-than=524288 -w  -fPIE -o
CMakeFiles/cmTC_eeaba.dir/CheckPrototypeDefinition.c.o   -c
CheckPrototypeDefinition.c
    CheckPrototypeDefinition.c:15:10: error: use of undeclared identifier
'NULL'
      return NULL;
             ^
    1 error generated.
    ninja: build stopped: subcommand failed.


    #include <zlib.h>


    static void cmakeRequireSymbol(int dummy, ...) {
      (void) dummy;
    }

    static void checkSymbol(void) {
    #ifndef zError
      cmakeRequireSymbol(0, &zError);
    #endif
    }

    const char* zError(int zErrorCode) {
      return NULL;
    }

    #ifdef __CLASSIC_C__
    int main() {
      int ac;
      char*av[];
    #else
    int main(int ac, char *av[]) {
    #endif
      checkSymbol();
      if (ac > 1000) {
        return *av[0];
      }
      return 0;
    }

This was reported directly to me by cpm at .

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list