[PATCH] multipath-tools test: add missing include for stdint.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When building multipath-tools with cmocka 1.1.8. it produces following error when make test:

In file included from test-log.c:6:
test-log.c: In function '__wrap_dlog':
test-log.c:24:20: error: 'uintptr_t' undeclared (first use in this function)
   24 |         expected = mock_ptr_type(char *);
      |                    ^~~~~~~~~~~~~
test-log.c:10:1: note: 'uintptr_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
    9 | #include "debug.h"
  +++ |+#include <stdint.h>
   10 |
test-log.c:24:20: note: each undeclared identifier is reported only once for each function it appears in
   24 |         expected = mock_ptr_type(char *);
      |                    ^~~~~~~~~~~~~
test-log.c:24:20: error: expected ')' before '_mock'
   24 |         expected = mock_ptr_type(char *);
      |                    ^~~~~~~~~~~~~
test-log.c:24:20: note: to match this '('
   24 |         expected = mock_ptr_type(char *);
      |                    ^~~~~~~~~~~~~
make[1]: *** [Makefile:74: test-log.o] Error 1
rm parser.o.wrap dmevents.o.wrap hwtable.o.wrap uevent.o.wrap blacklist.o.wrap util.o.wrap
make[1]: Leaving directory '/home/lkp/rpmbuild/BUILD/multipath-tools-0.9.5/tests'
make: *** [Makefile:121: test] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.7qc9Bd (%check)

The attached patch solved this issue. Thanks.

GitHub pull request: https://github.com/opensvc/multipath-tools/pull/117

Attachment: multipath-tools-add-missing-include-for-cmocka.patch
Description: Binary data


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux