Skip to content

Build failure with glibc 2.43 #522

Description

@micwoj92

Hello,
Trying to build naemon 1.5.0 (1.4.4 fails too) with gcc 15.2.1 20260209 fails with following error message:

src/naemon/checks.c: In function 'parse_output':
src/naemon/checks.c:114:19: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
  114 |                 p = strpbrk((const char *) tmp, "|");
      |                   ^
src/naemon/checks.c:141:19: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
  141 |                 p = strpbrk((const char *) tmp, "|");
      |                   ^
cc1: all warnings being treated as errors
make[1]: *** [Makefile:2009: src/naemon/checks.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/naemon/src/naemon-git'
make: *** [Makefile:1355: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions