Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-25646

Clienttools build error on OS X 8.0.0.-rc3

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.0
    • 8.0.0
    • Dali
    • None

    Description

      15:12:43 /Users/hpccbuild/jenkins2/workspace/CE-Candidate-Clienttools-OSX-8.0.0-rc3/CE/mac_osx_x86_64-1/HPCC-Platform/dali/base/dautils.cpp:51:34: warning: ISO C++11 does not allow conversion from string literal to 'char *const' [-Wwritable-strings]
      15:12:43 constexpr char * lz_plane_path = "storage/planes[labels='lz']";
      15:12:43 ^
      15:12:43 /Users/hpccbuild/jenkins2/workspace/CE-Candidate-Clienttools-OSX-8.0.0-rc3/CE/mac_osx_x86_64-1/HPCC-Platform/dali/base/dautils.cpp:55:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
      15:12:43 VStringBuffer xpath(lz_plane_path);
      15:12:43 ^~~~~~~~~~~~~
      15:12:43 /Users/hpccbuild/jenkins2/workspace/CE-Candidate-Clienttools-OSX-8.0.0-rc3/CE/mac_osx_x86_64-1/HPCC-Platform/dali/base/dautils.cpp:55:25: note: treat the string as an argument to avoid this
      15:12:43 VStringBuffer xpath(lz_plane_path);
      15:12:43 ^
      15:12:43 "%s",
      15:12:43 /Users/hpccbuild/jenkins2/workspace/CE-Candidate-Clienttools-OSX-8.0.0-rc3/CE/mac_osx_x86_64-1/HPCC-Platform/dali/base/dautils.cpp:64:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
      15:12:43 VStringBuffer xpath(lz_plane_path);
      15:12:43 ^~~~~~~~~~~~~
      15:12:43 /Users/hpccbuild/jenkins2/workspace/CE-Candidate-Clienttools-OSX-8.0.0-rc3/CE/mac_osx_x86_64-1/HPCC-Platform/dali/base/dautils.cpp:64:25: note: treat the string as an argument to avoid this
      15:12:43 VStringBuffer xpath(lz_plane_path);
      15:12:43 ^
      15:12:43 "%s",
      15:12:43 1 warning and 2 errors generated.
      15:12:43 make[2]: *** [dali/base/CMakeFiles/dalibase.dir/dautils.cpp.o] Error 1
      15:12:43 make[2]: *** Waiting for unfinished jobs....
      15:12:44 2 warnings generated.
      15:12:45 make[1]: *** [dali/base/CMakeFiles/dalibase.dir/all] Error 2
      15:12:45 make: *** [all] Error 2

      This seems work on OS X: VStringBuffer xpath("%s", lz_plane_path);

      Attachments

        Activity

          People

            richardkchapman Richard Chapman
            xwang2713 Xiaoming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: