Skip to content

[Bug] stdbool.h not detected correctly #947

@yegorich

Description

@yegorich

Describe the bug

The configure script packged in a tar.gz release file seems to be generated with old autoconf. This prevents proper stdbool.h detection and leads to the following build error on GCC 15:

In file included from autoopts/project.h:30,
                 from libopts.c:2:
./compat/compat.h:188:19: error: cannot use keyword ‘false’ as enumeration constant
  188 |    typedef enum { false = 0, true = 1 } _Bool;
      |                   ^~~~~

To Reproduce

Steps to reproduce the behavior:

  1. download tcpreplay 4.5.1
  2. invoke ./configure (check for stdbool.h detection messages)
  3. invoke make

Expected behavior

stdbool.h is detected and the build is successful

System (please complete the following information):

  • OS: Linux
  • OS version: Rhino Linux 2025.1 all
  • Tcpreplay Version: 4.5.1

Additional context

If I invoke autoreconf -i prior to ./configure, the stdbool.h is detected correctly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions