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

replace popen/pclose with _popen/_pclose on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0
    • Component/s: ESP
    • Labels:
      None
    • Environment:
      Platform build on Windows

      Description

      Current HPCC Platform build on Windows has following erros:

      20:06:54 d:\Jenkins\workspace\CE-Platform-Libraries-Win64-6.0-test\CE\W2K8-x86_64-2\HPCC-Platform\esp\services\ws_machine\ws_machineService.cpp(1235): error C3861: 'popen': identifier not found [D:\Jenkins\workspace\CE-Platform-Libraries-Win64-6.0-test\CE\W2K8-x86_64-2\build\esp\services\ws_machine\ws_machine.vcxproj]

      20:06:54 d:\Jenkins\workspace\CE-Platform-Libraries-Win64-6.0-test\CE\W2K8-x86_64-2\HPCC-Platform\esp\services\ws_machine\ws_machineService.cpp(1255): error C3861: 'pclose': identifier not found [D:\Jenkins\workspace\CE-Platform-Libraries-Win64-6.0-test\CE\W2K8-x86_64-2\build\esp\services\ws_machine\ws_machine.vcxproj]

      20:06:54 d:\Jenkins\workspace\CE-Platform-Libraries-Win64-6.0-test\CE\W2K8-x86_64-2\HPCC-Platform\esp\services\ws_machine\componentstatus.cpp(335): error C2491: 'getComponentStatusFactory' : definition of dllimport function not allowed [D:\Jenkins\workspace\CE-Platform-Libraries-Win64-6.0-test\CE\W2K8-x86_64-2\build\esp\services\ws_machine\ws_machine.vcxproj]

      For the first two _popen/_pclose should be used on Windows:

      #ifdef _WINDOWS
      if( (fp = _popen( command_line, "r" )) == NULL )
      return -1;
      #else
      if( (fp = popen( command_line, "r" )) == NULL )
      return -1;
      #endif

      For the last error "extern COMPONENTSTATUS_API" should be removed in cpp file

        Attachments

          Activity

            People

            • Assignee:
              xwang2713 Xiaoming Wang
              Reporter:
              xwang2713 Xiaoming Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: