Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5678

Mixed up #includes in c++ files.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • build
    • None
    • Fedora 10, gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)

    Description

      src/c+/pipes/impl/HadoopPipes.cc, src/c/utils/impl/SerialUtils.cc, and src/c+/utils/impl/StringUtils.cc fail to compile due to some mixed up #includes.

      When running ant -Dcompile.c+=true clean compile-c+ on svn trunk, I get errors about undeclared functions in the above files, such as:

      [exec] /home/ricky/h/test/hadoop-0.18.3/src/c++/utils/impl/StringUtils.cc: In function 'uint64_t HadoopUtils::getCurrentMillis()':
      [exec] /home/ricky/h/test/hadoop-0.18.3/src/c++/utils/impl/StringUtils.cc:74: error: 'strerror' was not declared in this scope
      [exec] /home/ricky/h/test/hadoop-0.18.3/src/c++/utils/impl/StringUtils.cc: In function 'std::string HadoopUtils::quoteString(const std::string&, const char*)':
      [exec] /home/ricky/h/test/hadoop-0.18.3/src/c++/utils/impl/StringUtils.cc:103: error: 'strchr' was not declared in this scope
      [exec] /home/ricky/h/test/hadoop-0.18.3/src/c++/utils/impl/StringUtils.cc: In function 'std::string HadoopUtils::unquoteString(const std::string&)':
      [exec] /home/ricky/h/test/hadoop-0.18.3/src/c++/utils/impl/StringUtils.cc:144: error: 'strtol' was not declared in this scope

      Attachments

        1. hadoop-includes.patch
          2 kB
          Ricky Zhou
        2. hadoop-includes-2.patch
          2 kB
          Ricky Zhou

        Activity

          People

            Unassigned Unassigned
            ricky Ricky Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: