Skip to content

remctl doesn't build with automake 1.17+ #35

@dehnert

Description

@dehnert

When I try to build (with automake 1.18.1), I get:

automake: warnings are treated as errors
Makefile.am:82: warning: escaping \# comment markers is not portable
Makefile.am: installing 'build-aux/depcomp'
autoreconf: error: automake failed with exit status: 1

As of automake 1.17 (2024-07-11):

  - Variables using escaped \# will trigger portability warnings, but be
    retained when appended.  GNU Make & BSD Makes are known to support it.
    (bug#7610)

configure.ac has:

AM_INIT_AUTOMAKE([1.11 check-news dist-xz foreign silent-rules subdir-objects
    -Wall -Werror])

Makefile.am has:

        tests/data/acls/val\#id tests/data/acls/val.id                      \

The result of this combination is that the build fails. (Note that I haven't actually tested 1.17, but the error message, Makefile.am line, and NEWS entry seem very suggestive.)

The obvious approaches to me are:

  • Drop that test file
  • Figure out some other escaping scheme (the automake commit says "POSIX does not provide any way of retaining the # marker in variables." so I'm not sure there is one?)
  • drop -Wall -Werror (possibly by ignoring whatever the relevant warning type is, or removing -Werror)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions