drbd-utils icon indicating copy to clipboard operation
drbd-utils copied to clipboard

9.25.0: build errors

Open 1848 opened this issue 2 years ago • 0 comments

In file included from DrbdMonConsts.cpp:1:
./DrbdMonConsts.h:9:10: error: use of enum ‘run_action_type’ without previous declaration
    9 |     enum run_action_type : uint8_t
      |          ^~~~~~~~~~~~~~~
./DrbdMonConsts.h:9:28: error: ‘uint8_t’ was not declared in this scope
    9 |     enum run_action_type : uint8_t
      |                            ^~~~~~~
./DrbdMonConsts.h:5:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    4 | #include <string>
  +++ |+#include <cstdint>
    5 |
./DrbdMonConsts.h:10:5: error: default member initializer for unnamed bit-field
   10 |     {
      |     ^
make[1]: *** [<builtin>: DrbdMonConsts.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/e/packages/drbd-utils/src/drbd-utils-9.25.0/user/drbdmon'
make: *** [Makefile:90: tools] Error 2

Build worked fine for 9.24.0.

gcc (GCC) 13.2.1 20230801 Do you need additional information?

1848 avatar Aug 10 '23 08:08 1848