Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2780

Need to fix warnings from automake before deprecated features get retired

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Platform:
      Any

      Description

      All of our configure.ac produce the following (or equivalent) warnings:
      <pre>
      configure.ac:28: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
      configure.ac:28: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
      </pre>
      and many instances of
      <pre>
      warning: source file '$(srcdir)/../../libutils/statistics.c' is in a subdirectory,
      but option 'subdir-objects' is disabled
      </pre>
      for diverse files, not just the one mentioned here.
      The documentation overtly warns that support for the deprecated INIT may be retracted some day.
      We should aim to fix this sooner rather than later, so that we don't get caught out by that.

      See
      https://github.com/cfengine/core/pull/1998
      for the fix I came up with on reading the automake documentation; however, this changed lots of details in the generated Makefiles and broke the build.
      We'll need someone more familiar with automake to look into this if we're to fix it cleanly.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10050 Edward Welbourne (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel