Uploaded image for project: 'CernVM'
  1. CernVM
  2. CVM-2082

CVMFS 2.9.4 Build failure because of missing include in cvmfs/authz/helper_log.cc

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Fixed
    • CernVM-FS 2.9
    • CernVM-FS 2.10
    • CVMFS
    • None
    • Arch Linux 5.15.55-1-lts x86_64
      GCC 12.1.1 20220730
      CVMFS 2.9.4

       

       

    • Bug report
    • 3 - Normal
    • GNU/Linux
    • ANY

    Description

      The build fails because ctime is not included in helper_log.cc.

      Relevant error message in compile output (build directory replaced):

      In function ‘void LogAuthz(int, const char*, ...)’:
      /{BUILD_DIR}/cvmfs-2.9.4/cvmfs/authz/helper_log.cc:120:5: error: ‘time’ was not declared in this scope
        120 |     time(&rawtime);
            |     ^~~~
      /{BUILD_DIR}{}/cvmfs-2.9.4/cvmfs/authz/helper_log.cc:17:1: note: ‘time’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
         16 | #include <cstring>
        +++ |+#include <ctime>

      Attachments

        Activity

          People

            jblomer Jakob Blomer
            kstehle Kevin Franz Stehle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: